OpenVZ Forum


Home » General » Support » Wrong quota
Wrong quota [message #34065] Fri, 28 November 2008 21:18 Go to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
Hello,
I'm experiencing some quota issues since my last kernel+vzquota upgrade.

» The main node has enough space (60G+)
» Container is using 1.1G
» vzquota stat / df (inside container) shows the entire space is used

Any ideas how can I track what's causing it?

[root@ovz1 ~]# rpm -qa | grep vzquota
vzquota-3.0.12-1

[root@ovz1 ~]# uname -a
Linux ovz1.public-network.com 2.6.18-92.1.13.el5.028stab059.3 #1 SMP Wed Oct 15 13:33:44 MSD 2008 x86_64 x86_64 x86_64 GNU/Linux


[root@ovz1 ~]#  df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     471016352 376320572  70383564  85% /
/dev/sda1               101086     36301     59566  38% /boot
tmpfs                  4037644         0   4037644   0% /dev/shm

[root@ovz1 ~]# vzquota stat 300039
   resource          usage       softlimit      hardlimit    grace
  1k-blocks        6291456         6291456        6291456
     inodes          40923         2621440        2621440

[root@ovz1 ~]# vzctl enter 300039
entered into CT 300039
[root@www2 /]# du -s
1122788 .


http://static.openvz.org/userbars/openvz-user.png
Re: Wrong quota [message #34087 is a reply to message #34065] Mon, 01 December 2008 11:21 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

could you please show:

"lsof | grep deleted" from inside the container.
Re: Wrong quota [message #34091 is a reply to message #34087] Mon, 01 December 2008 13:50 Go to previous message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
There's the list of open files (deleted).

[root@www2 /]# lsof | head -1 && lsof | grep deleted
COMMAND    PID    USER   FD      TYPE             DEVICE       SIZE       NODE NAME
rinetd    1562  futirc    0u      CHR              136,1                     3 (deleted) /dev/pts/1
rinetd    1562  futirc    1u      CHR              136,1                     3 (deleted) /dev/pts/1
rinetd    1562  futirc    2u      CHR              136,1                     3 (deleted) /dev/pts/1
perl      9371   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl      9371   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl      9371   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     11463   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     11463   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     11463   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     12123   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     12123   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     12123   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
httpd    13888    root    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13888    root    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13983  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13983  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13984  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13984  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13985  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13985  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13986  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13986  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13987  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13987  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13989  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13989  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13990  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13990  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13991  apache    2w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
httpd    13991  apache    7w      REG               0,74 1734792567   42631638 (deleted) /var/log/httpd/error_log
perl     14085   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     14085   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     14085   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     15854   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     15854   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     15854   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     16237   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     16237   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     16237   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     18221   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     18221   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     18221   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     19944   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     19944   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     19944   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     21950   devil    0u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     21950   devil    1u      CHR              136,2                     4 (deleted) /dev/pts/2
perl     21950   devil    2u      CHR              136,2                     4 (deleted) /dev/pts/2
psybnc   31764   brpub    0u      CHR              136,0                     2 (deleted) /dev/pts/0
psybnc   31764   brpub    1u      CHR              136,0                     2 (deleted) /dev/pts/0
psybnc   31764   brpub    2u      CHR              136,0                     2 (deleted) /dev/pts/0



Restarting apache seems to fix the problem


http://static.openvz.org/userbars/openvz-user.png

[Updated on: Mon, 01 December 2008 13:53]

Report message to a moderator

Previous Topic: AFP or CSF on vzID
Next Topic: [SOLVED] iptables: Unknown error 18446744073709551615 (and yes, I've googled)
Goto Forum:
  


Current Time: Thu Nov 07 22:32:30 GMT 2024

Total time taken to generate the page: 0.03307 seconds