[opensuse] Removing a failed disk from a dmraid array
Listmates, After recently having a bit of fun with a dmraid array, I thought I would pass along the information in case anyone else may need it in the future. REMOVING A FAILED DISK FROM A DMRAID ARRAY To remove a failed disk from a dmraid array, the easy approach is to first deactivate the raid array in the raid bios setup during the boot sequence to disable dmraid functionality. (usually done by pressing F10 within 4 seconds of the bios POST completing) If you have more that one set of disk arrays created in the bios, just deactivate the array containing the failed disk. Then, use a boot disk (your install CD/DVD) to boot your installed system on the good disk. (The suse 11.2 DVD worked fine to boot my 10.3 system. Note: If you have another Linux system installed, you do not need your install disk, just boot from it) The install disk will search for the available boot partitions and you should be able to choose to boot from the good disk. NOTE: for my raid installs, I always mirror /, /boot, /home, any other partitions AND swap for just this purpose. When a disk fails, I have a complete system to boot on either disk. After successfully booting the installed system on the good disk, then: (1) edit and configure /boot/grub/device.map (to change hd0 and add hd1 reference to /dev/sda and /dev/sdb, respectively. When done it will look something like: (hd0) /dev/sda (hd1) /dev/sdb (fd0) /dev/fd0 then; (2) /boot/grub/menu.lst to change the references from your /dev/mapper raid array to your remaining good disk (hd1,4). You are now ready to reinstall grub on the good disk with: # grub grub> find /boot/grub/stage1 (hd1,4) (this will return your "grub root" for the single disk setup, e.g. (hd0,4) (hd1,4), etc..) grub> root (hd1,4) # or whatever was returned as your grub root Filesystem type is ext2fs, partition type 0x83 grub> setup (hd1) # or whatever your good disk was (e.g. (hd0) ) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd1,4)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. grub> quit Grub is now installed in the mbr of the remaining good disk. Now go get a replacement for the failed disk and recreate your array. (your remaining disk may be the next to go... ;-) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
David C. Rankin