We currently migrate to MediaWiki from our old installation, but not all content has been migrated yet. Take a look at the Wiki Team page for instructions how to help or browse through our new wiki at wiki.linux-vserver.org to find the information already migrated.

Per Context Quota

(for 2.4.22 as Test for 2.6.x)

you will need ...

what should be tested?

after activation, independently tracks the quota for a specific
context ...

how to start?

tar xvjf linux-2.4.22.tar.bz2
mv linux-2.4.22 linux-2.4.22-test
cd linux-2.4.22-test
bzcat ../patch-2.4.22-c17e.diff.bz2 | patch -p1
bzcat ../patch-2.4.22-c17e-mq0.11.diff.bz2 | patch -p1
bzcat ../patch-2.4.22-c17e-mq0.10-cx0.06.diff.bz2 | patch -p1
bzcat ../patch-2.4.22-c17e-mq0.11-cx0.06-cq0.11.diff.bz2 | patch -p1
bzcat ../patch-2.4.22-ctx17a-vr0.13.diff.bz2 | patch -p1
  • select the VROOT device and quota (old & new)
  • select the Persistent Context ID method of your choice
  • compile and install kernel and tools (vr/cq)
after reboot ...
(do not use remount, as it won't work)
mount -o tagctx,usrquota,grpquota /dev/shared/device /vservers
(as described in the INSTALL and on my pages) and use the folowing
commands to activate quota for context N = 100
  • create a vroot device
mknod /dev/vroot/device b 4 device
  • copy the vroot device to the virtual server, or create an
apropriate block device node there ...
cp -va /dev/vroot/device /vservers/<name>/dev/hdv1
  • add a context quota hash for the new context
cqhadd -v -x 100 /dev/vroot/device
(result will be success, if everything is okay)
  • make sure that your vserver mtab entry looks like this
/dev/hdv1 / ufs rw,usrquota,grpquota 0 0
  • change to vserver TEST (context = 100) and do quotacheck -vaug
(the quota files should be created)
  • enable quota with quotaon -vaug ...

thats it ...


you can use [patch-e2fsprogs-1.34-cti0.01.diff.bz2] to patch the tools

to show and change the context information for files ...