OpenVZ Forum


Home » General » Support » Quota shows more usage than its really being used.
Quota shows more usage than its really being used. [message #35036] Mon, 23 February 2009 13:15 Go to next message
zega is currently offline  zega
Messages: 3
Registered: February 2008
Junior Member
Hi there,

Its a weird issue with FS usage inside VE.

Take a look:
sovm103:/# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 2.0G 2.0G 0 100% /

It shows my FS totally full inside VE (100%, using 2GB).

But the real usage is:
sovm103:/# du -hs /
335M /

Someone knows what can be happening here ? Where can I check for "ghosts files" ?
Re: Quota shows more usage than its really being used. [message #35037 is a reply to message #35036] Mon, 23 February 2009 13:36 Go to previous messageGo to next message
zega is currently offline  zega
Messages: 3
Registered: February 2008
Junior Member
Nevermind.

vzquota drop did the trick.

Re: Quota shows more usage than its really being used. [message #35051 is a reply to message #35037] Tue, 24 February 2009 08:52 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

this also could happen if you've deleted some file but somebody is actually using it, so "du" would not see that file but "df" would do.
for example
http://forum.openvz.org/index.php?t=msg&goto=34091&& amp;srch=lsof+deleted#msg_34091
http://forum.openvz.org/index.php?t=msg&goto=22871&& amp;srch=lsof+deleted#msg_22871
Re: Quota shows more usage than its really being used. [message #35056 is a reply to message #35051] Tue, 24 February 2009 12:05 Go to previous messageGo to next message
zega is currently offline  zega
Messages: 3
Registered: February 2008
Junior Member
Actually, I had a "Clean up routine" doing the following:

- Stop VE container
- Remove some old huge log files from $VZHOME/private/{VE}/var/log folder
- Start VE container again.

I think vzquota use some file in VE0 to store quota information and when I removed those logs with that VE down this info was not updated. Is that correct?

Thanks for your suppport.
Re: Quota shows more usage than its really being used. [message #35068 is a reply to message #35056] Wed, 25 February 2009 07:31 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

firstly it worth checking
"lsof | grep deleted" output
then if
- Stop VE container
- Start VE container again
solves the problem.
Previous Topic: Simfs POSIX translation for VE
Next Topic: VENET vs Bridging?
Goto Forum:
  


Current Time: Sat Nov 16 17:18:36 GMT 2024

Total time taken to generate the page: 0.03050 seconds