Mike,
I've been able to reproduce the problem. The cloning of swap partitions
over LVM logical volumes was not correctly supported. Now I've fixed the
bug in the trunk, it'll be available in the next release (maybe 3.7.5 or
maybe we'll release a 3.7.4.1 including some the recent fixes).
For now you can use the code from the trunk or apply the following
patch.
Thanks for reporting,
-Andrea
Index: lib/SystemImager/Common.pm
===================================================================
--- lib/SystemImager/Common.pm (revision 3766)
+++ lib/SystemImager/Common.pm (revision 3767)
@@ -64,7 +64,11 @@
while (<FH>) {
my ($dev, $type, $size, $used, $priority) = split;
next if ($dev eq 'Filename');
- $active_swaps_by_dev{$dev}=1;
+ $active_swaps_by_dev{$dev} = 1;
+ # If swap is over LVM add also the standard device name. -AR-
+ if ($dev =~ /^\/dev\/mapper\/([^-]+)-(.*)$/) {
+ $active_swaps_by_dev{"/dev/$1/$2"} = 1;
+ }
}
close(FH);
return %active_swaps_by_dev;
Mike Brady wrote:
> I have been having a problem with swap not being created on new
> installations.
>
> I think that I have tracked it down to the si_prepareclient command
> creating the autoinstallscript.conf file with swap partitions with a
> setting of format="no".
>
> The loop that creates the commands in the master scripts (in Server.pm)
> skips all fsinfo lines in the autoinstallscript.conf file if they have
> format="no", which means that the mkswap and swapon lines never get put
> in the master script.
>
> Manually changing the format="no" to format="yes" seems to resolve the
> problem. Well the mkswap and swapon commands are now in the master
> script like they should be, I haven't actually done an install to test
> it yet.
>
> My swap is on an LVM partion as is my root partition. The LVM Volume
> Groups and Logical Volumes are all created correctly, as is fstab and
> all other file systems. The OS is Centos 4.4.
>
> What is the intended logic here?
>
> Should the prepareclient script be creating entries for swap partitions
> with a format="yes"
>
> or
>
> should the mkautoinstallscript script not be skipping swap partitions
> with a format="no" entry?
>
>
> Regards
>
> Mike
-------------------------------------------------------------------------
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