I just wanted to post the solution to this issue:
I had to add the -M1 option to the pvcreate and vgcreate commands to force them to use LVM1 instead of LVM2. My golden client has LVM1 logical volumes and for some reason, it was trying to create LVM2 volumes on the new system. Maybe because my SI server is RedHat 4 which uses LVM2?

Amanda


Andrea Righi wrote:

Amanda,

are you trying to use lvm over software raid? In this case have you
already seen the following howto?

http://wiki.sisuite.org/SoftwareRAID#head-8a021864a4988ace0b6ba383018a982dd6f8f103

SystemImager is able to automatically generates the autoinstall script,
so try to modify the autoinstallscript.conf (looking at the howto) and
recreate the script with si_mkautoinstallscript...

Moreover if the root filesystem is on a lvm over raid volume the initrd
in the image must contain both lvm and raid modules.. in the following
output it seems that no raid module is loaded during the boot...

Regards,
-Andrea

Amanda Holloway wrote:
I am using SI 3.6.3 to image a redhat linux machine using raid & lvm. I added the following to the golden client master script to create the
volume group and logical volumes:
### BEGIN LVM initialization commands -AR- ###
pvcreate -ff -y /dev/sda3
### END LVM initialization commands ###

### BEGIN LVM groups creation commands -AR- ###
vgscan
vgcreate -s 8MB -v Volume00 /dev/sda3
### END LVM groups creation commands ###

### BEGIN LVM volumes creation commands -AR- ###
lvcreate --verbose --size 2.5G --name LogVol00 Volume00
lvcreate --verbose --size 3.0G --name LogVol03 Volume00
lvcreate --verbose --size 1008M --name LogVol05 Volume00
lvcreate --verbose --size 8.0G --name LogVol04 Volume00
lvcreate --verbose --size 5.0G --name LogVol01 Volume00
lvcreate --verbose --size 6.0G --name LogVol02 Volume00
### END LVM volumes creation commands ###

The install process completes (and I see the volume group and logical
volumes being created), but when I reboot, the kernel does not find the
volume group Volume00.  Since my root filesystem is on a logical volume,
the server will not boot and I get the following messages:
...
Partition check:
 sda: sda1 sda2 sda3
Loading lvm-mod.o module
LVM version 1.0.8-2 (26/05/2004) module loaded
Loading jbd.o module
Creating block devices
Scanning logical volumes
vgchange -- no volume groups found
Mounting root filesystem
mount: error 2 mounting ext3
pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 232k freed
kernel panic: No init found. Try passing init= option to kernel.
-------------
I tried reimaging with "vgchange -y a" added into the install script
after the vgcreate command, but the volume group was still not found by
the kernel when rebooting.

I would appreciate any suggestions!

Thanks!


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to