I've read the DiskLimits documentation on http://linux-vserver.org/Disk+Limits
and I've able to set-up one disk limit on a guest vserver without problem.
But I'm wondering how multiple disk limits within the same context are
supposed to work. It seems that you can configure multiple limit within the
mkdir -p /etc/vservers/test1/dlimits/site1
echo $(( 50 * 1024 )) > /etc/vservers/test1/dlimits/site1/space_total
mkdir -p /etc/vservers/test1/dlimits/site2
echo $(( 50 * 1024 )) > /etc/vservers/test1/dlimits/site2/space_total
I was hoping that would limit the context to 50M inside the /var/www/site1
directory and 50M inside the /var/www/site2 directory. But it doesn't seem to
work that way. It seems that the overall limit for the context is 50M and
that the size of both directory is accounted toward that limit. (Running df
inside the guest shows 50M of total space and 30M used because there is 20M
in one directory and 10M in another.)
Also, I've noticed that if I fill the space inside the /var/www/site1
directory. I cannot create file anywhere else inside the guest.
So can someone explain to me how multiple dlimits inside the same guest should
Thanks for all the help you can provide!
P.S. I'm using the stable vserver 2.0.2-rc20 with then 220.127.116.11 kernel and
-- Francis J. Lacoste francis@Contre.COM
Vserver mailing list