Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3013207
  • 博文数量: 535
  • 博客积分: 15788
  • 博客等级: 上将
  • 技术积分: 6507
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 09:11
文章分类

全部博文(535)

文章存档

2016年(1)

2015年(1)

2014年(10)

2013年(26)

2012年(43)

2011年(86)

2010年(76)

2009年(136)

2008年(97)

2007年(59)

分类: LINUX

2010-04-19 13:47:12

使用3个容量为71G的vol创建了1组raid 0,并为这3个磁盘分别作了快照。
使用快照创建3个磁盘,容量为130G,即创建的磁盘容量与原始磁盘容量不符,在执行mdadm --assemble重新组合raid时报错,“不存在 superblock”
解决:
使用下面的命令:(With these arrays there is no different between initially creating the array and subsequently assembling the array, except that hopefully there is useful data there in the second case.)

mdadm --verbose --build /dev/md1 --level=0  --raid-devices=3 /dev/sdi /dev/sdj /dev/sdk

但是:
[root@dom-1 ~]# mdadm --detail /dev/md1
/dev/md1:
        Version : 00.90.03
  Creation Time : Mon Apr 19 13:49:57 2010
     Raid Level : raid0
     Array Size : 468713472 (447.00 GiB 479.96 GB)
   Raid Devices : 3
  Total Devices : 3
Preferred Minor : 1
    Persistence : Superblock is not persistent

    Update Time : Mon Apr 19 13:49:57 2010
          State : clean
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

     Chunk Size : 64K

    Number   Major   Minor   RaidDevice State
       0       8      128        0      active sync   /dev/sdi
       1       8      144        1      active sync   /dev/sdj
       2       8      160        2      active sync   /dev/sdk

如何重建superblock呢?似乎除了mdadm --create 可以重建以为没有其他办法?
--create会清楚所有原数据啊...
阅读(1749) | 评论(0) | 转发(0) |
0

上一篇:关于tr

下一篇:关于nginx的无缝升级

给主人留下些什么吧!~~