Further to last post I see that I can boot if I edit boot/grub and set root(hd0,0) instead of how it was coming up (hd1,0) (the "failed" drive)
That boots and advises me that the md's are degraded and to add a spare. I tried the instructions on a help page on evms but the options they are saying to use (ie. ADD do not show up!) -----Original Message----- From: PF [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 11:14 PM To: 'Brian Wilson'; [EMAIL PROTECTED] Cc: [email protected] Subject: RE: Help a newbie with software RAID? Thanks a lot Brian! I'll try and work through this and hopefully you still have some time to reply. I am doing my test install(s) in a VM so not too hard to experiment. A few questions off the bat (I did say newbie!) a) I am up and running but I am not sure if I have done things correctly. I am using only 4GB X 2 drives in this VM for testing so I had to trim some partition sizes and didn't use any of your "extras." I issued every relevant command I know and the outputs are at the end of this post. Does everything look OK? -after preparing this post I did some testing with unpleasant results: Removed one of the 2 drives (in VM) and could not boot TSL = error 21 selected disk does not exist. Added a drive back (blank) and could not boot TSL = error 5 partition table invalid or corrupt Did something else (forget exactly what but involved using the orginal VM disks) and got a rebuild of one partition happening. a) What was I supposed to do for primary partitions? If I recall correctly any other linux installs I have done have only 3 partitions and all are primarys. I get an error/warning when trying to add the 4th primary when I tried the following layout but I clicked "YES" and continued: hda1 = /boot, hda2 = /, hda3 = SWAP, but when I go to hda4 = /home b) Duhhhh how come when I enter MB values the results or so far off (ie. I put in 100MB for boot and end up with 94?) c) Is there any significance in the partition numbers? I notice you skip hda4 in your configuration. When I do this I have no choice I just get the next available #'s automatically... I end up with hda1 = /boot, hda2 = /, hda3 = SWAP, had4 = /home d) What's the swap on/swap off option on all partitions about? e) What up with monitoring health/failures? Do I need to write/find my own script that monitors mdstat and e-mails me alerts? f) How does the spare drive advanced option work? Thanks again Brian! cat /etc/fstab /dev/evms/md/md0 /boot ext2 defaults 0 0 /dev/evms/md/md1 / ext3 defaults 1 1 /dev/evms/md/md2 swap swap defaults 0 0 /dev/evms/md/md3 /home ext3 defaults 0 0 none /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=620 0 0 none /sys sysfs defaults 0 0 /dev/hdc /mnt/cdrom udf,iso9660 noauto,user 0 0 cat /proc/mdstat Personalities : [raid1] md3 : active raid1 dm-7[1] dm-6[0] 2008000 blocks [2/2] [UU] md2 : active raid1 dm-5[1] dm-4[0] 1044160 blocks [2/2] [UU] md1 : active raid1 dm-3[1] dm-2[0] 1044160 blocks [2/2] [UU] md0 : active raid1 dm-1[1] dm-0[0] 96256 blocks [2/2] [UU] sfdisk -l /dev/sda Device Boot Start End #cyls #blocks Id System /dev/sda1 0+ 11 12- 96358+ 83 Linux /dev/sda2 12 141 130 1044225 83 Linux /dev/sda3 142 271 130 1044225 83 Linux /dev/sda4 272 521 250 2008125 83 Linux sfdisk -l /dev/sdb Device Boot Start End #cyls #blocks Id System /dev/sdb1 0+ 11 12- 96358+ 83 Linux /dev/sdb2 12 141 130 1044225 83 Linux /dev/sdb3 142 271 130 1044225 83 Linux /dev/sdb4 272 521 250 2008125 83 Linux df Filesystem 1K-blocks Used Available Use% Mounted on /dev/evms/md/md1 1027736 642740 332788 66% / /dev/evms/md/md0 93207 5306 83089 7% /boot /dev/evms/md/md3 1976400 34296 1841704 2% /home -----Original Message----- From: Brian Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 12:38 PM To: [EMAIL PROTECTED] Cc: [email protected] Subject: Re: Help a newbie with software RAID? > Greetings! I would like to know how to do a software RAID-1 setup. If you are working with a fresh install from CDROM you can do it from the installer. I can't give you a step-by-step from memory. I wish that they'd describe it in the manual. You really don't want to do a conversion once the system is running, it's a hack. (It is the way I do it because all my installs are done remotely.) It's a pain... Sorry I dont have access to try it right now... my recollection is that you do a manual partition and specify type RAID-1. Is this vague enough for you? Get to the manual partition page (select manual instead of auto partition) Delete all existing partitions by selecting each one and deleting it, create pairs of new partitions on each drive (I suggest /boot on hda1/hdc1, / on hda2/hdc2, and swap on hda5/hdc5 for example) Make boot around 100M, / around 2 GB, and swap around 1 GB. Put the rest of the space in /home on hda6/hdc6 (Actually I usually create another partition that is not RAID on hda3 and hdc3 around 2GB and use it as a 'rescue' partition or to allow reinstalling later without touching the existing / partition but that is another story. I usuallly also put /var on a separate RAID pair at hda6/hdc6 and home goes in partition 7. If you leave /var/ on / then make it bigger than 2GB. Partitioning is a religious topic.) I think that once you have the pairs of paritions set up you can edit each one and say it is type RAID and select a filesystem for it. I use ext2 on /boot, ext3 on /, and these days am trying xfs on /var and /home It is either in the EDIT menu or in a separate RAID buttton, can't quite remember. Hope this is some help... Once the system is running it will be hidden away in EVMS volumes so I suggest you might make a note on paper and keep it around to make it easier on yourself later. Brian _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
