Re: RAID-1 (mirroring) disk failed; now what?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 30, 2005 at 02:21:11PM +0100, Will Partain wrote:
> * Getting the right partitioning on the replacement disk.
> 
>   Seems straightforward:
> 
>   # sfdisk -d /dev/sdb > /tmp/my-disk-partitioning
>   # edit /tmp/my-disk-partitioning, replacing 'sdb' with 'sda'
>   # sfdisk /dev/sda < /tmp/my-disk-partitioning
 
You need to install GRUB stage1 in the first 448 byte of the MBR.

Also, the device name in the sfdisk input does not seem to matter,
since you specify the device on the command line.

This should do the trick:

    dd if=/dev/sdb of=/dev/sda count=1
    sfdisk -d /dev/sdb | sed -e 's!/dev/sdb!/dev/sda!g' | sfdisk /dev/sda

[The 'sed' is optional.]

> * Telling the RAID gubbins of its new friends:
> 
>   This should be plain sailing...
> 
>   # mdadm /dev/md0 --add /dev/sda1
>   # mdadm /dev/md1 --add /dev/sda2
>   # mdadm /dev/md2 --add /dev/sda5
>   # mdadm /dev/md3 --add /dev/sda6
> 
> Any looming disasters in all of that?  Assuming non-trivial feedback,
> I will summarize back to the list.  Thanks!

I'm superstitious, so I "sleep 1" between md adds.

	-Bill


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux