Mailinglist Archive: opensuse-autoinstall (50 mails)

< Previous Next >
Re: [opensuse-autoinstall] How to configure LVM in AutoYast?
  • From: Lars Stavholm <stava@xxxxxxxxxxx>
  • Date: Tue, 27 May 2008 20:54:02 +0200
  • Message-id: <20080527185402.GD21136@xxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxx

--- 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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References