PLDWWW: Vserver
patrys
patrys at pld-linux.org
Fri Jun 27 13:53:41 CEST 2008
Author: patrys Date: Fri Jun 27 11:53:41 2008 GMT
Module: PLDWWW URL: http://pld-linux.org/Vserver?action=diff&rev2=119&rev1=118
---- Log message:
---- Page affected: Vserver
---- Diffs:
================================================================
bash-3.1# rm -f /var/lib/rpm/__db.*
bash-3.1# rpm --rebuilddb
}}}
+
+
- == quota in vserver ==
+ == Using quota in vservers ==
+
- To enable quota in vserver you need:
+ To enable quota in a vserver you need to:
+
- * enable quota on "real" device mounted in vserver (in /etc/fstab):
+ * enable quota on the "real" device mounted in vserver (in /etc/fstab):
- {{{
+ {{{
- /dev/space/vserver1_home /vservers/vserver1/home xfs defaults,usrquota 0 0
+ /dev/space/vserver1_home /vservers/test/home xfs defaults,usrquota 0 0
}}}
- * load module vroot (echo vroot >> /etc/modules)
- * you can optionaly increase max vroot devices number by:
+ * load the {{{vroot}}} module and add it to your {{{/etc/modules}}}
+ * you can optionaly increase max vroot number of devices by putting the limit in your {{{/etc/modprobe.conf}}}:
+ {{{
+ options vroot max_vroot=64 >>
+ }}}
+ * assing a free vroot node for the device in question:
- {{{
+ {{{
- echo options vroot max_vroot=64 >> /etc/modprobe.conf
+ # vrsetup /dev/vroot3 /dev/space/vserver1_home
}}}
- * assing for this device vroot (/etc/sysconfig/vrootdevices)
+ * copy the vroot device to the guest:
- {{{
+ {{{
- 3 /dev/space/vserver1_home
+ # cp -af /dev/vroot3 /vservers/test/dev/
}}}
- * restart vrootdevices (service vrootdevices restart)
- * copy /dev/vroot{number} to /vservers/vserver1/dev/ (where number is 3 in previously example)
- * add to /etc/vservers/vserver1/apps/init/mtab line:
+ * add to {{{/etc/vservers/test/apps/init/mtab}}}:
- {{{
+ {{{
- /dev/vroot{number} /home/ xfs defaults,usrquota 0 0
+ /dev/vroot3 /home/ xfs defaults,usrquota 0 0
}}}
+ * add {{{quota_ctl}}} to {{{/etc/vservers/test/ccapabilities}}}:
- * add to file /etc/vservers/vserver1/ccapabilities:
- {{{
- echo quota_ctl >> /etc/vservers/vserver1/
- }}}
- * restart vserver and use edquota inside him ;)
+ * restart your vserver and run {{{edquota}}} inside
- note - in many howtos is bug in filename - ccapabilites is used instead of ccapabilities.
-
More information about the pld-cvs-commit
mailing list