Re: Debian Raid Crash Repair
On 11/14/05, Alvin Oga <aoga@mail.linux-consulting.com> wrote:
>
>
> - if your raid is configured properly ..
> - you will be able to pull any single disk out and it will
> still boot and operate ( but you dont have the redundancy anymore)
>
You may need to remove the failed drive from the array:
mdadm /dev/md0 -r /dev/hda1
Do the above for each respective raid partition. Assuming hda is the
failed physical device.
> - you will be able to install a new disk, partition it the
> same as the disk you're replacing, and "the raid" should
> start syncing the new disk into the raid array
>
Actually, you'll need to run the following command for each raid partition:
mdadm /dev/md1 -a /dev/hda2
Where hda2 is the new disk, and md1 is the raid partition. To view
the rebuild progress:
mdadm --detail /dev/md1
You'll probably want to install grub on the new drive:
device (hd0) /dev/hda
root (hd0,0)
install /grub/stage1 (hd0,0) /grub/stage2 0x8000 (hd0,0)/grub/menu.lst
install /grub/stage1 d (hd0) /grub/stage2 0x8000 (hd0,0)/grub/menu.lst
Refer to http://lists.gnu.org/archive/html/bug-grub/2002-03/msg00047.html
for more details about installing grub on the other drive.
--
Jiann-Ming Su
"I have to decide between two equally frightening options.
If I wanted to do that, I'd vote." --Duckman
"The system's broke, Hank. The election baby has peed in
the bath water. You got to throw 'em both out." --Dale Gribble
Reply to: