[opensuse-autoinstall] How to configure LVM in AutoYast?
Hello, 1. In the AutoYast docs, http://www.suse.com/~ug/autoyast_doc/CreateProfile.Partitioning.html, the Description for attribute("is_lvm_vg"), says "DEPRECATED since SLES10SP1 and SL10.2 - use type instead. Must be true if this device is a LVM volume group. The default is false." The examples on that page only use the old "<is_lvm_vg config:type="boolean">true</is _lvm_vg>" and not the new "type". Can someone give an example of the correct, new usage? 2. I want to make an LVM created by autoyast "grow-able". All of the examples I found for doing this in autoconfiguration talk about using "--grow" in Red Hat Kickstart. How do I define "grow-able" in Autoyast? Wil -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Tue, May 27, 2008 at 11:35:13AM -0700, Wil Decius wrote:
Hello,
1. In the AutoYast docs, http://www.suse.com/~ug/autoyast_doc/CreateProfile.Partitioning.html, the Description for attribute("is_lvm_vg"), says
"DEPRECATED since SLES10SP1 and SL10.2 - use type instead. Must be true if this device is a LVM volume group. The default is false."
The examples on that page only use the old "<is_lvm_vg config:type="boolean">true</is _lvm_vg>" and not the new "type".
Can someone give an example of the correct, new usage?
See below an excerpt from a fully functioning autoinst.xml for OpenSuSE 10.3.
2. I want to make an LVM created by autoyast "grow-able". All of the examples I found for doing this in autoconfiguration talk about using "--grow" in Red Hat Kickstart.
How do I define "grow-able" in Autoyast?
Not sure what you mean there? I'm guessing you are looking for... <partition> ... <size>max</size> ... </partition Hope this helps /Lars.Stavholm@linadd.org --- Begin Included Message --- [snip] <partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">1</partition_nr> <partition_type>primary</partition_type> <filesystem config:type="symbol">ext2</filesystem> <format config:type="boolean">true</format> <mount>/boot</mount> <size>100MB</size> </partition> <partition> <lvm_group>sys</lvm_group> <partition_id config:type="integer">142</partition_id> <partition_nr config:type="integer">2</partition_nr> <partition_type>primary</partition_type> <size>$3</size> </partition> </partitions> <use>max</use> </drive> <drive> <device>/dev/sys</device> <lvm2 config:type="boolean">true</lvm2> <partitions config:type="list"> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <lv_name>swap</lv_name> <mount>swap</mount> <size>@SWAP@</size> <fstopt>defaults</fstopt> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>root</lv_name> <mount>/</mount> <size>2GB</size> <fstopt>acl,user_xattr</fstopt> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>tmp</lv_name> <mount>/tmp</mount> <size>1GB</size> <fstopt>acl,user_xattr</fstopt> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>home</lv_name> <mount>/home</mount> <size>1GB</size> <fstopt>acl,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0</fstopt> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>srv</lv_name> <mount>/srv</mount> <size>1GB</size> <fstopt>acl,user_xattr</fstopt> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>opt</lv_name> <mount>/opt</mount> <size>1GB</size> <fstopt>acl,user_xattr</fstopt> </partition> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <lv_name>usr</lv_name> <mount>/usr</mount> <size>3GB</size> <fstopt>acl,user_xattr</fstopt> </partition> </partitions> <pesize>4M</pesize> <type config:type="symbol">CT_LVM</type> <use>all</use> </drive> </partitioning> [snip] --- End Included Message --- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hello Lars, On Tue, May 27, 2008 at 11:54 AM, Lars Stavholm <stava@telcotec.se> wrote:
See below an excerpt from a fully functioning autoinst.xml for OpenSuSE 10.3.
That helps a lot. Thanks very much.
How do I define "grow-able" in Autoyast?
Not sure what you mean there? I'm guessing you are looking for...
<partition> ... <size>max</size> ... </partition
I'm really not sure if that's the same thing or not. Could be. Here's an example of what I'm trying to do that I pulled together from the many Red Hat example on the net, logvol swap --vgname=VolGroup00 --name=SwapPart --fstype swap --size=272 --grow --maxsize=544 The Red Hat manual defines "grow" and "maxsize" as --grow= — Tells the logical volume to grow to fill available space (if any), or up to the maximum size setting. --maxsize= — The maximum size in megabytes when the logical volume is set to grow. Specify an integer value here, and do not append the number with MB. I suppose AutoYast's <size>max</size> Tells it to be "grow-able", expanding to fill space, but doesn't limit it. Am I on the right track? Wil -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Tue, 27 May 2008 12:15:59 -0700, "Wil Decius" <wilson.decius@gmail.com> wrote:
Hello Lars,
On Tue, May 27, 2008 at 11:54 AM, Lars Stavholm <stava@telcotec.se> wrote:
See below an excerpt from a fully functioning autoinst.xml for OpenSuSE 10.3.
That helps a lot. Thanks very much.
How do I define "grow-able" in Autoyast?
Not sure what you mean there? I'm guessing you are looking for...
<partition> ... <size>max</size> ... </partition
I'm really not sure if that's the same thing or not. Could be.
Here's an example of what I'm trying to do that I pulled together from the many Red Hat example on the net,
logvol swap --vgname=VolGroup00 --name=SwapPart --fstype swap --size=272 --grow --maxsize=544
The Red Hat manual defines "grow" and "maxsize" as
--grow= — Tells the logical volume to grow to fill available space (if any), or up to the maximum size setting.
--maxsize= — The maximum size in megabytes when the logical volume is set to grow. Specify an integer value here, and do not append the number with MB.
I suppose AutoYast's
<size>max</size>
Tells it to be "grow-able", expanding to fill space, but doesn't limit it.
Am I on the right track?
I'd say so, yes. And <size>544MB</size> is the restricted one. /L -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hello Lars, On Tue, May 27, 2008 at 12:21 PM, stava <stava@telcotec.se> wrote:
Am I on the right track?
I'd say so, yes.
Ok.
And <size>544MB</size> is the restricted one.
IIUC, "--size=272 --grow --maxsize=544" means: use a minumum of 272MB, and, if space is available, grab up to but not more than 544MB. I'm still unclear as to how to specify all that in AutoYast. Sorry if I'm being dense! Also, in your configuration you use "<size>$3</size>" and "<use>max</use>". What's the "$3" mean? And, the Docs don't list "max" as a <use> parameter. Is it new and undocumented? Thanks. Wil -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Wil Decius wrote:
Hello Lars,
On Tue, May 27, 2008 at 12:21 PM, stava <stava@telcotec.se> wrote:
Am I on the right track? I'd say so, yes.
Ok.
And <size>544MB</size> is the restricted one.
IIUC, "--size=272 --grow --maxsize=544" means:
use a minumum of 272MB, and, if space is available, grab up to but not more than 544MB.
OK, I see, no I've never seen that particular combination being used for anything. I guess you have a good reason for looking for it.
I'm still unclear as to how to specify all that in AutoYast. Sorry if I'm being dense!
Can't be done, as far as I know. Either you use 'max' or a size.
Also, in your configuration you use "<size>$3</size>" and "<use>max</use>".
Typo, was ment to be 2GB or something like that, i.e. a size specification.
What's the "$3" mean? And, the Docs don't list "max" as a <use> parameter. Is it new and undocumented?
Documented or not, I don't really know, but we do use it and it works. Actually, I'm quite sure it's documented somewhere, you just have to look for it. R /Lars -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hello Lars, Thanks for the help. This will get me going. Wil -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Tuesday 27 May 2008, Wil Decius wrote:
IIUC, "--size=272 --grow --maxsize=544" means:
use a minumum of 272MB, and, if space is available, grab up to but not more than 544MB.
not possible with autoyast
Also, in your configuration you use "<size>$3</size>" and "<use>max</use>".
What's the "$3" mean? And, the Docs don't list "max" as a <use> parameter. Is it new and undocumented?
<use>max</use> is not allowed. Autoyast might change that to <use>all</use> but I'd check that in the code. "max" can only be used in <size> -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (4)
-
Lars Stavholm
-
stava
-
Uwe Gansert
-
Wil Decius