Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 12-30-2004, 02:36 PM   #1
LQ Newbie
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
Unhappy Lilo fails with root on raid 1 device

I've successfully installed SuSE Linux Enterprise Server on a IBM p655 LPAR with root on /dev/md0 (Raid 1) but for some reason Lilo just doesn't appreciate it.

/etc/lilo.conf looks like this:

# Generated by YaST2


image = /boot/vmlinuz
label = linux
root = /dev/md0
initrd = /boot/initrd
append = ""

The system will not boot. Complains about no Prepboot partition or something like that. I can boot and access the installed system from the network. However, when I run the lilo command, I get the following output:

running on chrp
install on /dev/sdb
Installing /boot/yaboot.chrp onto /dev/sdb1
519+1 records in
519+1 records out
check the image files
ERROR: image /boot/vmlinuz is not on bootdevice /dev/sdb
`/tmp/ppc_lilo/yaboot.conf' -> `/etc/yaboot.conf'

The vmlinuz file is in the /boot directory (remember root is on /dev/md0) so I'm not certain what exactly lilo is looking for.

Anybody have any ideas?

Old 06-15-2010, 03:04 PM   #2
LQ Newbie
Registered: Mar 2010
Location: Pittsburgh
Distribution: Debian 6
Posts: 28

Rep: Reputation: 17
software raid on a powerpc machine

"Over 6 months" but better late than never; and, albeit 5 and a half years later (i.e. one would think newer kernel and open firmware might help), there is still trouble getting software RAID to work on a powerpc machine (e.g. seems to install but on reboot, you get an error about "unknown or corrupt filesystem").

The new Debian 5 installer totally helps set up RAID *as a part of the* installation (and I'm assuming other flavors do as well). In the partitioning step: 1) leave the 32KB apple partition (which won't be there if you have a non-Mac powerpc), 2) make a 1MB "NewWorld Apple partition" and bootable (or PReP for non-Mac), 3) whatever size "physical volume for RAID", 4) repeat the same thing for the second drive, 5) then setup RAID.

When you reboot at the end of the installer, boot back to the CDROM and "rescue" install, then get into a shell from your /dev/md0 so that we can fix the yaboot process (but not sure about cjcone's lilo, as non-Mac also have yaboot, at least for Debian):

ofpath /dev/sda
ofpath /dev/sdb
# note the output of both
vi /etc/yaboot.conf
# change "partition=0" to "partition=3" (or "2" if non-Mac powerpc)
# insert "append="md=0,/dev/sda3,/dev/sdb3"" (or "2"s for non-Mac powerpc)
# insert "device=/pci@80000000/pci-bridge@d/ADPT,2940U2B@4/@0:" (my output)
cp /etc/yaboot.conf /etc/yaboot.sda.conf
cp /etc/yaboot.conf /etc/yaboot.sdb.conf
vi /etc/yaboot.sdb.conf
# change "boot=/dev/sda2" to "boot=/dev/sdb2" (or "1" for non-Mac powerpc)
# change the "device=" line to reflect the second output above)
ybin -C /etc/yaboot.sdb.conf
ybin -C /etc/yaboot.sda.conf

Reboot and you should be fine and note: if you use IDE (and not SCSI), you can just use "hd:" for both devices, which is a generic reference to the first IDE hard drive the open firmware finds (as opposed to the output from the ofpath command), which will work for both .conf files (and the sda and sdb will be hda and hdb).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Block device /dev/sda3 is not a valid root device.. rincewind Linux - Hardware 7 06-09-2006 04:47 AM
RAID 1 on boot/root: LILO error hamish Linux - Software 2 06-28-2005 02:47 AM
Lilo or Grub, RAID or not RAID? raxxal Linux - Software 1 09-24-2004 06:15 AM
Raid Fails on upgrade deangeloni Red Hat 0 02-22-2004 12:33 AM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 04:50 PM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration