Subject: Issue with space_total
From: "srtt.be - Michel Lombart" <subs@srtt.be>
Date: Mon, 24 Mar 2008 15:01:10 +0100
Mon, 24 Mar 2008 15:01:10 +0100
Hello everybody,
I'm facing this issue.
On a new server, a classical Debian Etch, I've a root partition of 71G
and a /home partition of 750G.
I build virtual servers in a directory /home/vservers/|<servername>/|
without any problem.
Meanwhile I can't allow any virtual server to use more than 71G of disk
space.
I followed http://flakey.info/linux/vservers-on-debian-linux.html :
| mkdir -p /etc/vservers/<servername>/dlimits/0
echo /home/vservers/<servername> > /etc/vservers/<servername>/dlimits/0/directory
echo $(( 200 * 1024 * 1024 )) > /etc/vservers/<servername>/dlimits/0/space_total
echo 100000 > /etc/vservers/<servername>/dlimits/0/inodes_total
echo 5 > /etc/vservers/<servername>/dlimits/0/reserved
I can limit total allowed space to smaller value like 10G but never more then 71G.
It seems that the size of the root partition is the limit, even if the virtual server
is contained in a larger one.
Do you have any idea on how to solve that issue.
Thank for your help.
Michel|
Hello everybody,
I'm facing this issue.
On a new server, a classical Debian Etch, I've a root partition of 71G
and a /home partition of 750G.
I build virtual servers in a directory /home/vservers/
<servername>/
without any problem.
Meanwhile I can't allow any virtual server to use more than 71G of disk
space.
I followed
http://flakey.info/linux/vservers-on-debian-linux.html :
mkdir -p /etc/vservers/<servername>/dlimits/0
echo /home/vservers/<servername> > /etc/vservers/<servername>/dlimits/0/directory
echo $(( 200 * 1024 * 1024 )) > /etc/vservers/<servername>/dlimits/0/space_total
echo 100000 > /etc/vservers/<servername>/dlimits/0/inodes_total
echo 5 > /etc/vservers/<servername>/dlimits/0/reserved
I can limit total allowed space to smaller value like 10G but never more then 71G.
It seems that the size of the root partition is the limit, even if the virtual server is contained in a larger one.
Do you have any idea on how to solve that issue.
Thank for your help.
Michel
["text/x-vcard" not shown]