Hi list, I am installing SLES9 SP1 on on p615 and OpenPower using software raid. I am using md0 for / (root) and md1 for LVM and usrlv, varlv, homelv etc. on it. This is how my partitioning looks like: Device Boot Start End Blocks Id System /dev/sda1 * 1 12 24560 6 FAT16 /dev/sda2 18 118 206848 fd Linux raid autodetect /dev/sda3 119 17357 35305472 fd Linux raid autodetect Device Boot Start End Blocks Id System /dev/sdb1 * 1 12 24560 6 FAT16 /dev/sdb2 18 118 206848 fd Linux raid autodetect /dev/sdb3 119 17357 35305472 fd Linux raid autodetect After the base installation the system is not bootable: "Config file error: Syntax error near line 2 in file yaboot.cnf ". So I need to start a rescue system, mount the /dev/sda1 and remove the line "partition= " in the yaboot.cnf . This line is produced by /sbin/lilo script, line 397: echo "partition = ${yaboot_part##*:}" Changing the line to test -z "${yaboot_part##*:}" || echo "partition = ${yaboot_part##*:}" would help, unfortunately I only can do it in the autoyast or remove the "partition=" line in the postinstall script. Do you have any ideas how to correct this during manual installation without using a rescue system? Mit freundlichen Gruessen / Best regards, Tomas Baublys IBM Germany, Godesberger Allee 115, 53175 Bonn
On Fri, Mar 11, Tomas Baublys wrote:
This line is produced by /sbin/lilo script, line 397: echo "partition = ${yaboot_part##*:}" Changing the line to test -z "${yaboot_part##*:}" || echo "partition = ${yaboot_part##*:}" would help, unfortunately I only can do it in the autoyast or remove the "partition=" line in the postinstall script.
Do you have any ideas how to correct this during manual installation without using a rescue system?
You can probably workaround it by using one of the pre,post scripts http://www.suse.de/~nashif/autoinstall/9.1/html/createprofile.scripts.html mount the partition and remove the partition= line from yaboot.cnf.
Hi
I am installing SLES9 SP1 on on p615 and OpenPower using software raid. I am using md0 for / (root) and md1 for LVM and usrlv, varlv, homelv etc. on it.
Do you have any ideas how to correct this during manual installation without using a rescue system?
Try this one, was written for SLES 8 should still apply, works on SLES8: Using root on RAID or LVM with SLES8 for PowerPC pSeries systems need one small partition to load the bootloader yaboot. This is typically a 4-6mb partition of the type '41 PReP boot partition'. The booloader itself must load the kernel from a supported filesystem. It can not load the kernel from a LVM or RAID partition, so you need yet another small partition which holds only the kernel. iSeries systems can load the kernel from a slot, a '41 PReP boot partition' or via a stream file, so there is no extra partition required. There is one thing to keep in mind with RAID level 1 and 5, see below. Installation on pSeries is a three step process. In the first run, configure the hard drives and install the software packages. In the second run, boot into the installed system with the raid drivers loaded. In the third run, update the kernel to get the fixed RAID drivers. Example installation for RAID level 1 on pSeries First step: - boot from CD1 and start the installation - go to the custom partitioner, create at least 4 partitions. 1 primary partition of type '41 PReP boot partition', size 6mb, no mount point 1 primary partition of type '83 Linux', size 100mb, mount point '/kernel', filesystem type ext2 or reiserfs do NOT use mount point '/boot' for this partition 2 primary partitions of type 'FD Linux RAID', no mount point Note: iSeries systems do not need the '83 Linux' partition, the kernel can be loaded from STMF or a kernel slot. If booting from NWSTG is desired, create an 30mb '41 PReP boot partition' - In the 'Raid' pulldown menu, choose 'create RAID'. - choose the RAID level 1 - add the 2 RAID partitions to the RAID setup - in the next screen, assign the mount point '/' and format the filesystem - leave the partitioner - go to the boot configuration and make sure the bootloader is written to the correct '41 PReP boot partition'. - if everything looks ok, start the installation. - YaST will now repartition your drives, create the filesystems and install the packages - after the package installation, a reboot is required. Second step: - go to the SMS menu and set the drive that contains the '41 PReP boot partition' as primary boot device. - boot from CD1, and go to the first YaST screen there is an option to do a fresh installation, and another one to boot into an already installed system. Choose the latter. There will be one entry with '/dev/md0', use this as the root filesystem. Finish the installation, configure the network etc. Third step: - copy the updated kernel to the system and install it. If you use RAID level 1 or 5, you MUST upgrade the kernel now: You need at least kernel-ppc64-2.4.19-219.ppc.rpm or newer. iSeries systems need kernel-iseries64-2.4.19-229.ppc.rpm or newer. Install the kernel with rpm -Uvh kernel-ppc64-2.4.19-219.ppc.rpm run 'mk_initrd' to recreate an initrd with the raid or lvm drivers. On pSeries, copy the bootfile and the boot config manually: run 'lilo' to recreate a socalled 'zImage.initrd', the bootfile. It will create a file named '/boot/vmlinuz.initrd' and a boot config named '/etc/yaboot.conf' Copy this file and the boot data to the /kernel partition: mkdir /kernel/boot mkdir /kernel/etc cp -a /boot/vmlinuz.initrd /kernel/boot cp -a /etc/yaboot.conf /kernel/etc/ yaboot will now find its config file on the readable filesystem, it will also find the kernel and load it. On iSeries, write the kernel to slot B or generate a stream file. kernel slot B is the default location, just run 'lilo', it will write the kernel to slot B -- Rolf Schmidt
participants (3)
-
Olaf Hering
-
Rolf Schmidt
-
Tomas Baublys