This is for the guys that follow: situation: software raid 1 (sda and sdb )and lvm setup during install. no problems once I made a separate raid partition for a non LVM /
Then, since I had no prior experience with software raid and the box is headed to wisconsin for a client. I thought "Hey I wonder what happens when you pull on of these hot swap drives out of this HP netserver?" so I pulled sda out. box still ran. cool. then I dug around for way more time than I care to admit, looking for how to run raidhotadd to get it back. of course it would not boot from sdb either with or without the first drive installed. After some considerable dinking and booting from a floppy, (Thanks be to all the higher powers everywhere I made that floppy) I managed to wipe the partition table from the drive. Not sure how. I got the partition table back using fdisk but still coul bot get the frigging thing to add the drive to the array. I could see via cat /proc/mdstats that sda was still unused. I found references to the following syntax: raidhotadd /dev/md0 /dev/sda seemed to work but then no way to add md1 BTW now that I think about it this is probably where the partition table got hosed. the correct incantation is obvious now raidhotadd /dev/md0 /dev/sda1 raidhotadd /dev/md1 /dev/sda2 FWIW raidhotadd returns pretty quick but there is still stuff happening. I could watch the progress of the rebuild process by repeated cat /proc/mdstats. Actually gives a pretty nice estimate of the time remaining for the process to complete. "Cool" I says to myself. finally figured it out. reboot and ... nada *&%^# (* % ^&(*$#^ [EMAIL PROTECTED] (*^#$^ (That part was out loud) anyway at least I am not the only poor sap that has tried to figure out how to get grub to write itself to a raid1 drive since I read so many google hits and maillist postings that talked of the problem. The solution was to NOT use frigging grub-install although now that I did it from the grub command line I might could make it work. what I did was this: grub> device (hd0) /dev/sda grub> root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) the setup command spit out a lot of stuff that looked good and after quitting out of grub and rebooting I am now booting off the hard drive again. BTW I found this nugget at: http://mail.gnu.org/archive/html/bug-grub/2002-11/msg00005.html If I had not spent all damn day dinking with this I would probably try it again after doing the grub thing on sdb and seeing if it would boot from that drive too but I be tired. I hope this helps someone in the future. Bret here is the environment. [EMAIL PROTECTED] root]# fdisk -l /dev/sda Disk /dev/sda: 18.2 GB, 18210037760 bytes 64 heads, 32 sectors/track, 17366 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 500 511984 fd Linux raid autodetect /dev/sda2 501 17366 17270784 fd Linux raid autodetect [EMAIL PROTECTED] root]# fdisk -l /dev/sdb Disk /dev/sdb: 18.2 GB, 18210037760 bytes 64 heads, 32 sectors/track, 17366 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 500 511984 fd Linux raid autodetect /dev/sdb2 501 17366 17270784 fd Linux raid autodetect [EMAIL PROTECTED] root]# cat /etc/fstab /dev/md0 / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 /dev/Volume00/LogVol00 /home ext3 defaults 1 2 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/Volume00/LogVol02 /tmp ext3 defaults 1 2 /dev/Volume00/LogVol01 /usr ext3 defaults 1 2 /dev/Volume00/LogVol04 /usr/local ext3 defaults 1 2 /dev/Volume00/LogVol03 /var ext3 defaults 1 2 /dev/Volume00/LogVol05 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 [EMAIL PROTECTED] root]# cat /etc/raidtab raiddev /dev/md1 raid-level 1 nr-raid-disks 2 chunk-size 64k persistent-superblock 1 nr-spare-disks 0 device /dev/sda2 raid-disk 0 device /dev/sdb2 raid-disk 1 raiddev /dev/md0 raid-level 1 nr-raid-disks 2 chunk-size 64k persistent-superblock 1 nr-spare-disks 0 device /dev/sda1 raid-disk 0 device /dev/sdb1 raid-disk 1 [EMAIL PROTECTED] root]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,0) # kernel /boot/vmlinuz-version ro root=/dev/md0 # initrd /boot/initrd-version.img #boot=/dev/sda default=0 timeout=10 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Red Hat Linux (2.4.20-18.9) root (hd0,0) kernel /boot/vmlinuz-2.4.20-18.9 ro root=/dev/md0 initrd /boot/initrd-2.4.20-18.9.img title Red Hat Linux (2.4.20-6) root (hd0,0) kernel /boot/vmlinuz-2.4.20-6 ro root=/dev/md0 initrd /boot/initrd-2.4.20-6.img -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
