Re: Debian Raid Crash Repair
Thankyou so much Jiann for your info :-)
On 11/15/05, Jiann-Ming Su <sujiannming@gmail.com> wrote:
> 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.
>
The disk was totally removed because it will no boot up.
> > - 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
>
Yes did that :-)
> 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
>
I set up grub the following way. Hope its right. Is there some benifit
to do it your way??
srv:~# grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /grub/stage1
(hd0,1)
(hd1,1)
grub> device (hd0) /dev/hda
grub> root (hd0,1)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,1)/grub/stage2
/grub/menu.lst"... succeeded
Done.
grub> quit
Hope this is alright?
Also RAID is fine now. Thankyou so much for all who helped.
devsrv:~# grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /grub/stage1
(hd0,1)
(hd1,1)
grub> device (hd0) /dev/hda
grub> root (hd0,1)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,1)/grub/stage2
/grub/menu.lst"... succeeded
Done.
grub> quit
Thankyou soo much once again :-)
Kind Regards
Siju
Reply to: