Re: rebuilding raided root partition
Miles Fidelman wrote:
> Emanoil Kotsev wrote:
>> Miles Fidelman wrote:
>>
>> my root partition is raided, and is now running only on its single spare
>> drive:
>>
>> -----
>> server1:~# more /proc/mdstat
>> md2 : inactive sdd3[0] sdb3[2]
>> 195318016 blocks
>>
>> You may try using the --run option.
>>
>> I do following
>>
>> 1) start the array with the healthy partition
>> let's say md0 with sda1 sdb1
>> and sdb1 is faulty
>>
>> mdadm -A /dev/md0 --add /dev/sda1 --run
>>
> I get: device /dev/md2 already active - cannot assemble it
>> 2) add the faulty partition to the array for syncing
>>
>> mdadm /dev/md0 --add /dev/sdb1
>>
>> 3) check /proc/mdstat
>>
>> cat /proc/mdstat
>>
>> you can also stop the array at any time
>>
>> mdadm -S /dev/md0
>>
>>
> well, I really can't - since it's my root volume
>
>
I would boot with init=/bin/sh and do it from the initrd if you have mdadm
in it. At this point of time root is not mounted, so -S should work.
perhaps you can do it from a usb boot or live-cd
didn't understand it's your root, sorry
actually one could move root on the run as far as I know but I've never
tried it
regards
Reply to: