Thus spoke Martin Bene ([EMAIL PROTECTED]):
>>My problem is that I can't recover the original full config.
>>No matter how I change the order of the raidtab, the disconnected-
>>and-later-reconnected disk is not included in the raid config.
>>
>>The appended is my raidtab.  The reconnected disk is /dev/sdd1.
>>Do I have to rerun mkraid to use /dev/sdd1 again?
> 
> I'd try 
>   raidhotremove /dev/md0 /dev/sdd1
>   raidhotadd /dev/md0 /dev/sdd1
> 
> to get the disk included again. (in case you don't  see the above programs:
> should both be links to raidstart)

Thank you very much!
I guess "raidhotadd /dev/md0 /dev/sdd1" is the right command.

lsdp:/home/sysuh# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] 
read_ahead 1024 sectors
md0 : active raid5 sdc1[2] sdb1[1] sda1[0] 12578496 blocks level 5, 32k chunk, 
algorithm 2 [4/3] [UUU_]
unused devices: <none>

and then I tried "raidhotadd":
lsdp:/home/sysuh# /sbin/raidhotremove /dev/md0 /dev/sdd1
/dev/md0: can not hot-remove disk: disk not in array!
lsdp:/home/sysuh# /sbin/raidhotadd /dev/md0 /dev/sdd1
lsdp:/home/sysuh# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] 
read_ahead 1024 sectors
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0] 12578496 blocks level 5, 32k chunk, 
algorithm 2 [4/3] [UUU_] recovery=0% finish=70.6min
unused devices: <none>

The disks will be busy for the next 70 minutes.
BTW, the above mdstat writes:

  md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0] 12578496 blocks ...
                     ^^^^^^^
Before the disconnection, it was sdd1[3].
Hope that can be chnaged to sdd1[3], after the recovery finishes.

Again, thank you very much for he help.
--
sysuh

Reply via email to