- 论坛徽章:
- 0
|
原帖由 platinum 于 2006-2-9 15:01 发表
hdb 是新添加的硬盘,当然没有同步数据和 superblock
我认为应该先把 hdb 拿走,之后先让另外两块硬盘的 array 起来,最后再上这块新的硬盘再同步
我觉得如果你 mkraid 的话,有可能会破坏原有数据(重新做 RAI ...
mkraid这个命令有很多种用法的,其中有一种是只同步superblock,我估计只有这法能让我的RAID跑起来啊,但我不敢试,我也怕万一啊,万一真的把我的数据搞坏了,我就完了,
另外,sfdisk这个命令我试成功了,
# sfdisk -d /dev/hdc > hdc.bak
#sfdisk /dev/hdb < hdc.bak
成功后,我运行fdisk -l ,从显示信息证明分区信息已经同步成功。。。
[root@appfs /]# fdisk -l
Disk /dev/hdc: 255 heads, 63 sectors, 9964 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 9964 80035798+ fd Linux raid autodetect
Disk /dev/hdd: 255 heads, 63 sectors, 9964 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 9964 80035798+ fd Linux raid autodetect
Disk /dev/hda: 255 heads, 63 sectors, 9964 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1288 10241437+ 83 Linux
/dev/hda3 1289 2563 10241437+ 83 Linux
/dev/hda4 2564 9964 59448532+ f Win95 Ext'd (LBA)
/dev/hda5 2564 3838 10241406 83 Linux
/dev/hda6 3839 3969 1052226 82 Linux swap
/dev/hda7 3970 9964 48154806 83 Linux
Disk /dev/hdb: 255 heads, 63 sectors, 9964 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 9964 80035798+ fd Linux raid autodetect
成功后,我知道此时运行raidhotadd 命令是不会成功的,于是我运行了,
[root@appfs /]# raidstart /dev/md0
/dev/md0: Invalid argument
[root@appfs /]# raidhotadd /dev/md0 /dev/hdb1
/dev/md0: can not hot-add disk: array not running!
证明了sfdisk不是太可行,不过我的linux没有重启,不知道是否要重启电脑,
我真的不是太肯定mkraid能否真能同步三个盘的superblock,谁能给我信心啊 :( |
|