Re: FYI: How do i enable btrfs AND quota within an autoyast autoinst.xml file / btrfs configuration for autoyast
Thomas Fehr <[email protected]>
| Newsgroups | gmane.linux.suse.autoinstall |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Dec 10, Hans-Joachim Ehlers wrote: > Answer i got from the support. > > Regarding a btrfs configuration for autoyast. Here is a example of a minimal configuration section for a btrfs partition > > <partitioning config:type="list"> > <drive> > <device>/dev/sda</device> > <use>all</use> > <initialize config:type="boolean">true</initialize> > <partitions config:type="list"> > <partition> > <filesystem config:type="symbol">ext3</filesystem> > <mount>/boot</mount> > <size>100M</size> > </partition> > <partition> > <filesystem config:type="symbol">swap</filesystem> > <mount>swap</mount> > <size>2G</size> > </partition> > <partition> > <filesystem config:type="symbol">btrfs</filesystem> > <mount>/</mount> > <size>auto</size> > <subvolumes config:type="list"> > <listentry>@</listentry> > <listentry>tmp</listentry> > <listentry>opt</listentry> > <listentry>srv</listentry> > <listentry>var/crash</listentry> > <listentry>var/spool</listentry> > <listentry>var/log</listentry> > <listentry>var/run</listentry> > <listentry>var/tmp</listentry> > <listentry>.snapshots</listentry> > </subvolumes> > </partition> > </partitions> > </drive> > </partitioning> > > During installation the btrfs and subvolumes will already be prepared for quota, however per default quotas are not enabled on btrfs. > You need to do it once with command > > btrfs quota enable <path> > > and rescan the quota stats > > btrfs quota rescan <path> > > To have this during auto installation you could add following post- install script To my knowledge quota support for btrfs is still more or less broken. Might be interesting to play around, but not yet suited for serious usage. Bye, Thomas Fehr -- Thomas Fehr, SuSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Tel: +49-911-74053-0, Fax: +49-911-74053-482, Email: [email protected] GPG public key available. -- To unsubscribe, e-mail: [email protected] To contact the owner, e-mail: [email protected]