[opensuse] RAID1 boot problems
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream... /dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard. Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x? I don't understand why this doesn't work, why this has changed in 11.x since it worked so well up to 10.3, and what I should be doing instead? Thanks, jim -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Good to know I'm not alone out there ! :)
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
I'd also like to know why this has changed !
I don't understand why this doesn't work, why this has changed in 11.x since it worked so well up to 10.3, and what I should be doing instead?
If you really want to do it, install it as you always did but, on the Grub configuration change it to load on the the first Hard Drive MBR. The system will then boot but, only if that 1st HD exists... In order to circumvent it, also install grub on the other HD's MBR I'm also a bit frustrated with this Regression, if it is a regression at all.
Thanks,
jim
Rui -- Rui Santos http://www.ruisantos.com/ Veni, vidi, Linux! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
No, it works fine - with lilo at least. /Per -- Per Jessen, Zürich (4.68°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Feb 4, 2009 at 7:09 PM, Per Jessen <per@opensuse.org> wrote:
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
No, it works fine - with lilo at least.
I'm starting with two blank hard drives and the openSUSE-11.1-NET-x86_64 install CD. Please can someone give me a vaguely step-by-step process of how to achieve my "/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap", the configuration I've been using sucessfully for so many years with previous version of (open)suse. Thanks, jim -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sbs Bofh wrote:
I'm starting with two blank hard drives and the openSUSE-11.1-NET-x86_64 install CD.
Please can someone give me a vaguely step-by-step process of how to achieve my "/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap", the configuration I've been using sucessfully for so many years with previous version of (open)suse.
Disclaimer - I don't use grub, and lilo is no longer supported in YaST, so some familiarity with lilo is probably needed. It's straight forward - I installed a system like that just the other day. I prefer creating the RAIDs ahead of time, it's faster and easier than using YaST, but it'll also work very well with YaST. Step-by-step - - boot your system from CD, select an installation source. - once you're in YaST, create your RAIDs, select mount points and go. - lilo installation will fail, but swap to a console and correct the /mnt/etc/lilo.conf file (comment out the line with message=), - chmod /mnt, rerun lilo - swap back, and you're done with stage1. /Per -- Per Jessen, Zürich (4.25°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sbs Bofh wrote:
On Wed, Feb 4, 2009 at 7:09 PM, Per Jessen <per@opensuse.org> wrote:
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
No, it works fine - with lilo at least.
I'm starting with two blank hard drives and the openSUSE-11.1-NET-x86_64 install CD.
Please can someone give me a vaguely step-by-step process of how to achieve my "/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap", the configuration I've been using sucessfully for so many years with previous version of (open)suse.
If you use Grub, install openSUSE as you usually do, but instruct Grub to be installed on MBR. After the install process is complete, openSUSE WILL boot. However it only continue to do so only if /dev/sda exists. In order to correct it, do the following as root grub device (hd0) /dev/sda root (hd0,0) setup (hd0) device (hd0) /dev/sdb root (hd0,0) setup (hd0) After this you should be working as you've always been.
Thanks,
jim
Rui -- Rui Santos http://www.ruisantos.com/ Veni, vidi, Linux! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
hi,
After the install process is complete, openSUSE WILL boot. However it only continue to do so only if /dev/sda exists. In order to correct it, do the following as root grub device (hd0) /dev/sda root (hd0,0) setup (hd0) device (hd0) /dev/sdb root (hd0,0) setup (hd0)
i am new to md and software-raid and have never used it before. i have a cleaninstall of opensuse 11.1 x86 and two sata disks sda and sdb, same size, same model. all attached to same sata controller. i have created sda1=2gig and sdb1=1gig for swap and rest of harddisk sda2 and rest of other disk too sdb2. all during install time. then created the raid1 stuff during the yast2 gui all during setup time while booting from the 11.1 install dvd. system booted up fine when using both disks. im trying raid1 (md0 = swap on sda1 and sdb1, md1=/ on sda2 and sdb2) with opensuse 11.1 how do i check these grub settings to verify if grub has been installed properly. do the above grub commands also apply to my setup, and when/where to i enter them? during runtime of my 11.1 system (runlevel3 runlevel5)? or do i need to boot from install dvd or runlevel1 or something? thanks for hints and explanations. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2009/02/04 19:25 (GMT) Sbs Bofh composed:
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
I'm starting with two blank hard drives...
Please can someone give me a vaguely step-by-step process of how to achieve my "/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap", the configuration I've been using sucessfully for so many years with previous version of (open)suse.
I never used RAID until a couple of months ago, and spent a lot of time evaluating how I should do it beforehand. I chose mdraid because I have a long history of multibooting, and for mdraid it is not necessary to use whole disks as RAID devices. Long ago I learned need to repair was inevitable, and that repairs from HD boots were almost always easier than booting from removable media. So, I started by doing all my partitioning in advance of beginning installation anything. Next I booted a Knoppix CD, and installed Grub on hd0,0 and hd1,0. I then put OS/2 on hd0,1 and DOS on hd0,2, after which I installed 11.0, followed by 11.1. During 11.0 installation I created md0-md7 on hd0,6-hd0,13 and hd1,6-hd1,13. The details you can see on http://fm.no-ip.com/tmp/Linux/f965-02.txt . I directed the SUSE installers to put Grub on /, which failed in all cases, leading to: https://bugzilla.novell.com/show_bug.cgi?id=463033 Still, in spite of that bug, because I put Grub on hd0,0, I am able to boot both 11.0 and 11.1. Note that I do not mount hd0,0 as /boot in any case, so upgrades do not disturb what is working for booting. There's little significant benefit for a real /boot partition to live on RAID. Its contents infrequently needs to be changed. It if works that way, fine, but it is not necessary. I've never seen a benefit to putting Grub on MBR either. Usually it's just an opportunity for some installer to break an installation one wishes to keep intact. It usually isn't necessary, and I've never done it yet. http://en.opensuse.org/Bugs/grub#How_does_a_PC_boot_.2F_How_can_I_set_up_a_w... -- "Do not let any unwholesome talk come out of your mouths, but only what is helpful for building others up." Ephesians 4:29 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
NO that is the way I run 11.0 and it runs fine.
I don't understand why this doesn't work, why this has changed in 11.x since it worked so well up to 10.3, and what I should be doing instead?
I think you have either grub or BIOS issues. First if you are using any type of bios raid, check your BIOS and make sure you have your raid array set as bootable. (it can be hard to find, so check each bios page carefully). Next check grub. On 11.0 I have sda and sdb in RAID1 with /boot / and /home partitions. Here is how I am setup: 00:01 ecstasy:~> cat /proc/partitions major minor #blocks name 8 0 488386584 sda 8 1 1 sda1 8 5 72229 sda5 8 6 2104483 sda6 8 7 20972826 sda7 8 8 465234336 sda8 8 16 488386584 sdb 8 17 1 sdb1 8 21 72229 sdb5 8 22 2104483 sdb6 8 23 20972826 sdb7 8 24 465234336 sdb8 8 32 488386584 sdc 8 33 20972826 sdc1 8 34 467411175 sdc2 253 0 488386583 dm-0 253 1 488384001 dm-1 253 2 72229 dm-2 253 3 2104483 dm-3 253 4 20972826 dm-4 253 5 465234336 dm-5 11:22 ecstasy:~> df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/nvidia_fdaacfde_part7 20G 15G 4.7G 76% / udev 2.0G 160K 2.0G 1% /dev /dev/mapper/nvidia_fdaacfde_part5 69M 19M 47M 29% /boot /dev/mapper/nvidia_fdaacfde_part8 437G 121G 294G 30% /home 11:23 ecstasy:~> sudo cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Wed Jan 21 23:25:10 CST 2009 default 0 timeout 6 gfxmenu (hd0,4)/message ##YaST - activate ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 11.0 - 2.6.25.20-0.1 root (hd0,4) kernel /vmlinuz-2.6.25.20-0.1-default root=/dev/mapper/nvidia_fdaacfde_part7 resume=/dev/mapper/nvidia_fdaacfde_part6 splash=silent showopts vga=0x31a initrd /initrd-2.6.25.20-0.1-default ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 11.0 - 2.6.25.20-0.1 root (hd0,4) kernel /vmlinuz-2.6.25.20-0.1-default root=/dev/mapper/nvidia_fdaacfde_part7 showopts ide=nodma apm=off acpi=off noresume edd=off x11failsafe vga=0x31a initrd /initrd-2.6.25.20-0.1-default ###Don't change this comment - YaST2 identifier: Original name: floppy### title Floppy rootnoverify (hd0,4) chainloader (fd0)+1 11:23 ecstasy:~> sudo cat /etc/grub.conf setup --stage2=/boot/grub/stage2 (hd0) (hd0,4) quit -- 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
David C. Rankin wrote:
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
NO that is the way I run 11.0 and it runs fine.
Are you sure ? Are you using Grub ? Have you tried to unplug the first HD to see if it boots ? In my case, in all installs I did, the YaST system did not install itself on the second HD. -- Rui Santos http://www.ruisantos.com/ Veni, vidi, Linux! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rui Santos wrote:
David C. Rankin wrote:
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
NO that is the way I run 11.0 and it runs fine.
Are you sure ? Are you using Grub ? Have you tried to unplug the first HD to see if it boots ?
In my case, in all installs I did, the YaST system did not install itself on the second HD.
I haven't unplugged a drive to check, but I would expect raid errors if the drives weren't mirrored: 12:43 ecstasy:~> sudo dmraid -r /dev/sdb: nvidia, "nvidia_fdaacfde", mirror, ok, 976773166 sectors, data@ 0 /dev/sda: nvidia, "nvidia_fdaacfde", mirror, ok, 976773166 sectors, data@ 0 No errors to date. A pull test will be a good experiment though. If it fails, I'll report back, but if I was a betting man, I'd bet it boots fine on either sda or sdb -- 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
David C. Rankin wrote:
Rui Santos wrote:
David C. Rankin wrote:
Sbs Bofh wrote:
For years I've been setting up (open)suse machines with three (or more) partitions - each one using software RAID1, all partitions created and RAID set up during the installation. Has worked (at least up to 10.3) like a dream...
/dev/md0 as /boot, /dev/md1 as /, and /dev/md2 as swap is(was) my current standard.
Is it true that you simply can't do this (at least the /boot bit) with opensuse 11.x?
NO that is the way I run 11.0 and it runs fine.
Are you sure ? Are you using Grub ? Have you tried to unplug the first HD to see if it boots ?
In my case, in all installs I did, the YaST system did not install itself on the second HD.
I haven't unplugged a drive to check, but I would expect raid errors if the drives weren't mirrored:
That is correct... The problem is that the MBR on the HD's are not mirrored. The Grub loader is copied only onto the MBR's first disk, and not the second. This will turn the system "unbootable" in case the first HD fails. However you use dm-raid... It may not apply to you...
12:43 ecstasy:~> sudo dmraid -r /dev/sdb: nvidia, "nvidia_fdaacfde", mirror, ok, 976773166 sectors, data@ 0 /dev/sda: nvidia, "nvidia_fdaacfde", mirror, ok, 976773166 sectors, data@ 0
No errors to date. A pull test will be a good experiment though. If it fails, I'll report back, but if I was a betting man, I'd bet it boots fine on either sda or sdb
-- Rui Santos http://www.ruisantos.com/ Veni, vidi, Linux! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
cagsm
-
David C. Rankin
-
Felix Miata
-
Per Jessen
-
Rui Santos
-
Sbs Bofh