From: Stephan Sachse (listen_at_nugmbh.de)
Date: Tue 09 Sep 2003 - 13:26:25 BST
i try out the per Context Quota and do the following steps.
* vanilla kernel 2.4.22 with alle patches from Herbert
after reboot i setup the vroot with "vrsetup /dev/vroot/0 /dev/hda3"
(must i do that after every reboot??)
hda3 is mounted on /mnt/vserversa and alle vServer are linked to
/vservers. A second hd is mounted on /dec/vserversb.
now i use this command "chcontext --ctx 100 cqhadd -v /dev/hda3" to
activate the quota for vServer "v01" and start the vServer "v01"
"quotacheck -avgu" and "quotaon -avgu" all works fine.
now i setup a second vserver "v02" with the same userids and do the same
things for v02. Quota works fine ;)
I make some test an got many crashes (i make a Photo from that ;)) when
i do the "chcontext --ctx 100 cqhadd -v /dev/hda3" after i start the
vServer. Now i must wroth a script that adds the quota before the
vServer starts. But the Problem is the /dev/real/block/device. How can i
find out die real block device like /dev/hda3 for a vServer on demand
when the vServer starts.
-- "Communication with an engineer is only slightly more difficult than communication with the dead." -Lorren 'Rus' Stiles, Sr.