使用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会清楚所有原数据啊...
阅读(1856) | 评论(0) | 转发(0) |