Fredrik Eriksson wrote:
So, I've updated our production ready system to 3.4.7 and installed 4.0~beta2+experimental49 on a test server. Both seem to work fine with our current config.The following mail concerns tests made with the 4.0~beta2+experimental49 FAI.
I'll get back on this subject tomorrow.
Or today.We have made some progress, we are now able to preserve vg0-home of a pre installed system with the following disk_config
disk_config sda bootable:1 preserve_lazy:1,2 primary - 512 - - primary - 0- - - disk_config sdb bootable:1 preserve_lazy:1,2 primary - 512 - - primary - 0- - - disk_config raid preserve_lazy:0,1 always_format:0 raid1 /boot sda1,sdb1 ext3 rw,errors=remount-ro raid1 - sda2,sdb2 - default disk_config lvm preserve_lazy:vg0-home vg vg0 md1 vg0-root / 4096 ext3 rw vg0-swap swap 4096 swap rw vg0-var /var 10240 ext3 rw vg0-tmp /tmp 2048 ext3 rw vg0-usr /usr 10240 ext3 rw vg0-src /usr/src 10240 ext3 rw vg0-local /usr/local 10240 ext3 rw vg0-home /home 102400 ext3 rw when using these modifications--- /srv/fai/lennyroot64/live/filesystem.dir/usr/sbin/setup-storage 2010-12-23 23:21:37.000000000 +0100 +++ /srv/fai/squeezeroot64/live/filesystem.dir/usr/sbin/setup-storage 2011-01-05 14:47:11.000000000 +0100
@@ -135,8 +135,12 @@ # read the sizes and partition tables of all disks listed in $FAI::disks &FAI::get_current_disks; +# if they are on top of RAID we have to start mdadm first +system "/sbin/mdadm-startall"; # see whether there are any existing LVMs &FAI::get_current_lvm; +# and stop mdadm +system "/etc/init.d/mdadm-raid stop"; # see whether there are any existing RAID devices &FAI::get_current_raid; @@ -177,7 +181,11 @@ $FAI::debug and print Dumper \%FAI::configs; # generate the command script -&FAI::build_disk_commands; +# build_disk_commands won't leave our partitions alone +#&FAI::build_disk_commands; +&FAI::push_command( "true", "" , "pt_complete_/dev/sda"); +&FAI::push_command( "true", "" , "pt_complete_/dev/sdb"); + &FAI::build_raid_commands; &FAI::build_lvm_commands; &FAI::build_cryptsetup_commands;This seem to work as for preserving vg0-home and its contents and everything gets installed, but makes the system unbootable, it cannot find vg0 although the installation does.
Loading, please wait... Volume group "vg0" not found Skipping volume group vg0 Unable to find LVM volume vg0/root Perhaps the disk config is not saved correctly after our changes. I'll be off again until Monday and continue the tests when I get back. Regards -- Fredrik
<<attachment: fredrike.vcf>>
