logo       

Re: I have a failed disk need help!: msg#00140

linux.raid

Subject: Re: I have a failed disk need help!

On Thursday March 27, danfisher@xxxxxxxxx wrote:
> We were preforming system updates on the system and had pulled the master
> out to keep a backup incase of disaster. And so disaster hit and we want
> to reraid the master to the slave - Not so easy. The kernel keeps wanting
> to use hdb but we want to mark hdb as failed and get it to boot to hda when
> hdb is in the mirror.

boot with kernel parameters:
raid=noautodetect md=0,/dev/hda1 root=/dev/md0

(I assume /dev/hda1 is mirrored with /dev/hdb1 to form /dev/md0. If
not, give more details, or just make obvious changes).

Then once you have booted, you can

mdadm /dev/md0 -a /dev/hdb1
to add in /dev/hdb1.

If normally autodetect several partitions, you might want:

raid=noautodetct md=0,/dev/hda1 md=1,/dev/hda2 md=2,/dev/hda3 ....
root=/dev/md0

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise