Subject: Setting up Disk Limits but getting errors on stopping vservers
From:Marcus Mülbüsch <m.muelbuesch@googlemail.com>
Date: Tue, 17 May 2011 15:25:29 +0200

Hello all,

    I've set up Disk Limits following the guide in 
http://linux-vserver.org/Disk_Limits_and_Quota. Everything works as 
expected, except that when I stop a vserver I get a

 >vdlimit: vc_get_dlimit(): No such file or directory
 >vdlimit: vc_rem_dlimit(): No such file or directory

This does not happen with the /vserver/<vs_name> dir, but with an 
external dir that is mounted into the vserver, i.e. /srv/vsdata/<vs_name>

However, the disk limits work when the vserver is running: I cannot 
overfill the vsdata directory.

After the vserver is stopped, the /etc/vservers/<vs_name>/cache/dlimits 
has two entries; the working one the "61125_vservers_<vs_name>_" 
containing entries for "space_used" and "inodes_used".

There is another 0-byte entry of "61125_srv__vsdata_<vs_name>_" This is 
the one producing the error.

Both directories have identical entries under 
/etc/vserver/<vs_name>/dlimits (except of course that directory once 
points to "/vservers/<vs_name>/" and the other to"/srv/vsdata/<vs_name>/".

Using Kernel: 2.6.35-vs2.3.0.36.32-gentoo and util-vserver: 
0.30.216-pre2935; May 16 2011, 14:35:01

What am I missing?

Marcus