Mailinglist Archive: opensuse-autoinstall (51 mails)

< Previous Next >
[opensuse-autoinstall] Wrong disk-id with hw raid
  • From: Tomas Rosenthal <tomasl@xxxxxxxxx>
  • Date: Wed, 8 Jul 2009 16:59:53 +0200 (CEST)
  • Message-id: <Pine.LNX.4.64.0907081657500.12570@xxxxxxxxxxxxxx>
Hi

I'm having a problem with hardware raid and autoyast.

First some background, I have the following setup:

* HP ProLiant DL380
* SLES11 autoinstaller - all in one DVD
* HP HW raid controller to set up hardware raid 5 on the system.
* The software to set up hardware raid is put into the initrd of the SLES
DVD

A precondition is to be able to install without network and to bundle
everything in one install DVD.

The autoyast installer launches a pre-install script that sets up the
hardware Raid.

Now the actual problem:
The data in /dev/disk/by-id is read and memorized by yast before raid is
set up. After the raid setup script has completed all values have changed
in /dev/disk/by-id. This causes the installer to crash when it later tries
to set up Grub. Yast inserts the incorrect values it remembers into
/boot/grub/device.map.

The installer crashes with this error in y2log_bootloader:
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,0)

Error 21: Selected disk does not exist
grub> quit

Is it possible to make the yast bootloader re-read the values from
/dev/disk/by-id before setting up grub? I tried to simply override the
values in the files it touches in a chroot script, but yast simply removes
my changes and creates a new incorrect file in its place.

I have also tried to add the raid script to /etc/init.d/ inside initrd of
the SLES installer, but I can't link it like I would on debian. Googling
this I found that I need to run 'insserv' but I can't chroot into the
initrd in any way to do this. I'm not even sure running it in a runlevel
really early would be enough, but this is an option I have not been able
to test fully, so some pointers or a link on where I can find info on
setting up init-scripts in suse without insserv would be greatly
appreciated.

Warm regards,
Tomas



Ps.
Thanks Uwe for solving the issue '[opensuse-autoinstall] Rule based auto-installation without network' for me
Ds.
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups