On Thu, 4 Oct 2007, Andrea Righi wrote: > Frank Corrao wrote: >> Greetings, >> >> I'm currently using systemimager 3.8.2 and would like to take advantage >> of the lvm support that has been added. I've defined 2 partitions on >> the disk and used the size="*" statement to specify that the second >> partition should use all of the remaining space since I won't know the >> size of the disk in advance. This partition will make up VolGroup00. >> Within VolGroup00 I want to define a 2GB logical volume for swap and >> use the remaining space in the volume group to create a logical volume >> for /. Unfortunately the lv statement doesn't seem to recognize >> size="*" as the part statement does. Omitting the size= definition >> doesn't seem to work either. Is there any other way to accomplish this >> without knowing the size of the physical disk? >> > > No, at the moment you can specify only a fixed size for logical > volumes. But patches or suggestions are welcome... :-) > > -Andrea
It seems recent versions of the lvcreate command support the %FREE flag when specifying volume size by extent. If there were a way to configure autoinstallscript.conf to define the lv size by extent rather than only by the raw size, we could pass 100%FREE: i.e. <lv name="LogVol01" extents="100%FREE" /> This would generate the following lvcreate command: lvcreate -l100%FREE -n LogVol01 VolGroup00 || shellout Frank ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ sisuite-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sisuite-users
