Home » General » Support » Diskspace filled with nothing in a VE
Diskspace filled with nothing in a VE [message #22301] |
Wed, 24 October 2007 15:47 |
gaper
Messages: 9 Registered: May 2007 Location: México
|
Junior Member |
|
|
I have a VE with debian and 6gb of disk space allocated, it runs a web server who dispatches static content (pictures only), the VE took 700mb more or less, but when it start to work the next day took 3 or 4 GB, after restart it back to 700mb, my HN has 182gb of free hard disk space.
This only happens on the VE where I use second level quotas.
This my HN df -h output:
[I][I][email]root@gribus[/email]:~# df -h
S.ficheros Tamaño Usado Disp Uso% Montado en
/dev/sda1 14G 1.8G 12G 14% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
udev 10M 64K 10M 1% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/md0 209G 16G 182G 9% /vz
[email]root@gribus[/email]:~#
This is my VE df -h output after 24 hours of work:
[email]root@anuncios[/email]:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 5.8G 2.9G 2.9G 51% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
tmpfs 2.0G 0 2.0G 0% /dev/shm
[email]root@anuncios[/email]:/#
This is my du -sh output in /
[email]root@anuncios[/email]:/# du -sh
841M .
this is my VE / fyle system output:
[email]root@anuncios[/email]:/# du -sh *
0 aquota.group
0 aquota.user
3.6M bin
4.0K boot
4.0K dev
1.9M etc
6.2M home
4.0K initrd
7.6M lib
0 lib64
4.0K media
4.0K mnt
32K opt
259M proc
14M root
3.7M sbin
4.0K srv
4.0K sys
8.0K tmp
195M usr
351M var
[email]root@anuncios[/email]:/#
Now Im going to reboot the VE:
[email]root@gribus[/email]:~# vzctl restart 104
Restarting VPS
Stopping VPS ...
VPS was stopped
VPS is not mounted
Starting VPS ...
vzquota : (warning) Quota is running for id 104 already
VPS is mounted
Deleting IP address(es): 132.248.10.53
ifdown: interface venet0:0 not configured
Adding IP address(es): 132.248.10.53
Setting CPU limit: 10
Setting CPU units: 1000
Set hostname: anuncios.jornada.com.mx
File resolv.conf was modified
Setting quota ugidlimit: 100
VPS start in progress...
[email]root@gribus[/email]:~# vzctl enter 104
entered into VPS 104
[email]root@anuncios[/email]:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 5.8G 584M 5.2G 10% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
tmpfs 2.0G 0 2.0G 0% /dev/shm
[email]root@anuncios[/email]:/#
can you help me please?
[Updated on: Mon, 29 October 2007 15:33] Report message to a moderator
|
|
|
|
|
|
|
Re: Diskspace filled with nothing in a VE [message #22580 is a reply to message #22468] |
Wed, 31 October 2007 09:21 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi,
1. You have forgotten to show the output of "lsof | grep delete" at THAT moment (after 3 days of work without reboot). Please attach the output of "lsof" command at THAT time too.
2. Also can you show the output of "uname -a" and version vzctl you use?
3. Try to do following:
a)stop VE
b)vzquota drop <veid>
c) vzctl start <veid>
Thank You!
[Updated on: Wed, 31 October 2007 09:23] Report message to a moderator
|
|
|
|
Re: Diskspace filled with nothing in a VE [message #22740 is a reply to message #22622] |
Fri, 02 November 2007 14:05 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi,
Sorry for delay. It seems that some file from ve private area is in use. May be some process uses the file or somebody has current dir /vz/private/<veid> or /vz/root/<veid>.
Check that during the VE stoping nobody uses any file from ve private area. I hope "lsof" (on hardware node) helps us (may be somebody has a ssh session with current dir /vz/private/<veid>).
Please show the output:
a) vzctl stop 104
b) vzquota off 104
c) vzquota drop 104
d) vzctl start 104
Thank You!
[Updated on: Fri, 02 November 2007 14:17] Report message to a moderator
|
|
|
|
Re: Diskspace filled with nothing in a VE [message #22871 is a reply to message #22740] |
Tue, 06 November 2007 15:57 |
gaper
Messages: 9 Registered: May 2007 Location: México
|
Junior Member |
|
|
Hi maratrus, and sorry for the delay too, this is my df and du taked from the VE, they are diferents right now:
droot@anuncios:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 5.8G 1.2G 4.7G 20% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
tmpfs 2.0G 0 2.0G 0% /dev/shm
root@anuncios:/# du -sh
724M .
root@anuncios:/# du -sh *
0 aquota.group
0 aquota.user
3.6M bin
4.0K boot
4.0K dev
1.9M etc
6.6M home
4.0K initrd
7.6M lib
0 lib64
4.0K media
4.0K mnt
32K opt
259M proc
14M root
3.7M sbin
4.0K srv
4.0K sys
8.0K tmp
196M usr
234M var
root@anuncios:/#
The lsof output at this time in the VE its:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
init 1 root cwd DIR 0,30 4096 10291083 /
init 1 root rtd DIR 0,30 4096 10291083 /
init 1 root txt REG 0,30 37720 10485851 /sbin/init
init 1 root mem REG 9,0 10485851 /sbin/init (path dev=0,30)
init 1 root mem REG 0,0 0 [heap] (stat: No such file or directory)
init 1 root mem REG 9,0 10457850 /lib/ld-2.3.6.so (path dev=0,30)
init 1 root mem REG 9,0 10456554 /lib/libsepol.so.1 (path dev=0,30)
init 1 root mem REG 9,0 10456658 /lib/libselinux.so.1 (path dev=0,30)
init 1 root mem REG 9,0 10457854 /lib/libc-2.3.6.so (path dev=0,30)
init 1 root mem REG 9,0 10457856 /lib/libdl-2.3.6.so (path dev=0,30)
init 1 root 10u FIFO 0,30 10456901 /dev/initctl
syslogd 15742 root cwd DIR 0,30 4096 10291083 /
syslogd 15742 root rtd DIR 0,30 4096 10291083 /
syslogd 15742 root txt REG 0,30 33368 10485814 /sbin/syslogd
syslogd 15742 root mem REG 9,0 10485814 /sbin/syslogd (path dev=0,30)
syslogd 15742 root mem REG 0,0 0 [heap] (stat: No such file or directory)
syslogd 15742 root mem REG 9,0 10457850 /lib/ld-2.3.6.so (path dev=0,30)
syslogd 15742 root mem REG 9,0 10457854 /lib/libc-2.3.6.so (path dev=0,30)
syslogd 15742 root mem REG 9,0 10457839 /lib/libnss_files-2.3.6.so (path dev=0,30)
syslogd 15742 root 0u unix 0xffff81002873e6c0 93623677 /dev/log
syslogd 15742 root 2w REG 0,30 1579 10485791 /var/log/auth.log
syslogd 15742 root 3w REG 0,30 247188 10485894 /var/log/syslog
syslogd 15742 root 4w REG 0,30 427 10485775 /var/log/daemon.log
syslogd 15742 root 5w REG 0,30 245918 10486019 /var/log/kern.log
syslogd 15742 root 6w REG 0,30 0 10485796 /var/log/lpr.log
syslogd 15742 root 7w REG 0,30 0 10485778 /var/log/mail.log
syslogd 15742 root 8w REG 0,30 143 10485792 /var/log/user.log
syslogd 15742 root 9w REG 0,30 0 10485800 /var/log/uucp.log
syslogd 15742 root 10w REG 0,30 0 10485799 /var/log/mail.info
syslogd 15742 root 11w REG 0,30 0 10485774 /var/log/mail.warn
syslogd 15742 root 12w REG 0,30 0 10485771 /var/log/mail.err
syslogd 15742 root 13w REG 0,30 0 10485780 /var/log/news/news.crit
syslogd 15742 root 14w REG 0,30 0 10485781 /var/log/news/news.err
syslogd 15742 root 15w REG 0,30 0 10485782 /var/log/news/news.notice
syslogd 15742 root 16w REG 0,30 0 10485770 /var/log/debug
syslogd 15742 root 17w REG 0,30 246150 10486016 /var/log/messages
syslogd 15742 root 18u FIFO 0,30 10456844 /dev/xconsole
klogd 15756 root cwd DIR 0,30 4096 10291083 /
klogd 15756 root rtd DIR 0,30 4096 10291083 /
klogd 15756 root txt REG 0,30 28240 10485881 /sbin/klogd
klogd 15756 root mem REG 9,0 10485881 /sbin/klogd (path dev=0,30)
klogd 15756 root mem REG 0,0 0 [heap] (stat: No such file or directory)
klogd 15756 root mem REG 9,0 10457850 /lib/ld-2.3.6.so (path dev=0,30)
klogd 15756 root mem REG 9,0 10457854 /lib/libc-2.3.6.so (path dev=0,30)
klogd 15756 root 0r REG 0,31 0 4026531850 /proc/kmsg
klogd 15756 root 1u unix 0xffff81002873e3c0 93623701 socket
nginx 15760 root cwd DIR 0,30 4096 10291083 /
nginx 15760 root rtd DIR 0,30 4096 10291083 /
nginx 15760 root txt REG 0,30 386224 10457613 /usr/sbin/nginx
nginx 15760 root mem REG 9,0 10457613 /usr/sbin/nginx (path dev=0,30)
nginx 15760 root mem REG 0,0 0 [heap] (stat: No such file or directory)
nginx 15760 root mem REG 9,0 10457850 /lib/ld-2.3.6.so (path dev=0,30)
nginx 15760 root mem REG 9,0 10457861 /lib/libcrypt-2.3.6.so (path dev=0,30)
nginx 15760 root mem REG 9,0 10457601 /usr/lib/libpcre.so.3.12.0 (path dev=0,30)
nginx 15760 root mem REG 9,0 10456053 /usr/lib/libz.so.1.2.3 (path dev=0,30)
nginx 15760 root mem REG 9,0 10457854 /lib/libc-2.3.6.so (path dev=0,30)
nginx 15760 root mem REG 9,0 10457855 /lib/libnss_compat-2.3.6.so (path dev=0,30)
nginx 15760 root mem REG 9,0 10457859 /lib/libnsl-2.3.6.so (path dev=0,30)
nginx 15760 root mem REG 9,0 10457843 /lib/libnss_nis-2.3.6.so (path dev=0,30)
nginx 15760 root mem REG 9,0 10457839 /lib/libnss_files-2.3.6.so (path dev=0,30)
nginx 15760 root 0u CHR 1,3 10456887 /dev/null
nginx 15760 root 1u CHR 1,3 10456887 /dev/null
nginx 15760 root 2u REG 0,30 96117 10650353 (deleted) /var/log/nginx/error.log.1
nginx 15760 root 3u REG 0,30 96117 10650353 (deleted) /var/log/nginx/error.log.1
nginx 15760 root 4u REG 0,30 715186487 10651251 (deleted) /var/log/nginx/access.log.1
nginx 15760 root 5u IPv4 93623712 TCP *:www (LISTEN)
nginx 15760 root 6u unix 0xffff8100ba6056c0 93623716 socket
nginx 15760 root 7u unix 0xffff8100ba6050c0 93623717 socket
nginx 15760 root 8u unix 0xffff8100a49b76c0 93623720 socket
nginx 15760 root 9u unix 0xffff8100a49b70c0 93623721 socket
nginx 15761 www-data cwd DIR 0,30 4096 10291083 /
nginx 15761 www-data rtd DIR 0,30 4096 10291083 /
nginx 15761 www-data txt REG 0,30 386224 10457613 /usr/sbin/nginx
nginx 15761 www-data mem REG 9,0 10457613 /usr/sbin/nginx (path dev=0,30)
nginx 15761 www-data mem REG 0,0 0 [heap] (stat: No such file or directory)
nginx 15761 www-data mem REG 9,0 10457850 /lib/ld-2.3.6.so (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10457861 /lib/libcrypt-2.3.6.so (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10457601 /usr/lib/libpcre.so.3.12.0 (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10456053 /usr/lib/libz.so.1.2.3 (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10457854 /lib/libc-2.3.6.so (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10457855 /lib/libnss_compat-2.3.6.so (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10457859 /lib/libnsl-2.3.6.so (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10457843 /lib/libnss_nis-2.3.6.so (path dev=0,30)
nginx 15761 www-data mem REG 9,0 10457839 /lib/libnss_files-2.3.6.so (path dev=0,30)
nginx 15761 www-data 0u CHR 1,3 10456887 /dev/null
nginx 15761 www-data 1u CHR 1,3 10456887 /dev/null
nginx 15761 www-data 2u REG 0,30 96117 10650353 (deleted) /var/log/
...
|
|
|
|
|
|
Re: Diskspace filled with nothing in a VE [message #23021 is a reply to message #22987] |
Fri, 09 November 2007 15:55 |
gaper
Messages: 9 Registered: May 2007 Location: México
|
Junior Member |
|
|
Hi maratrus, you are right, the problem was in nginx, when you use log-rotate, the solution where adding this options to the /etc/logrotate.d/nginx file that I create to rotate the nginx logs:
postrotate
if [ -f /var/run/nginx.pid ]; then
kill -USR1 `cat /var/run/nginx.pid`
fi
It kill one instance of nginx and the zombies files. Nginx open another instance when it got another request.
Maratrus, really tnks for your time, the problem its solved =)
|
|
|
Goto Forum:
Current Time: Thu Oct 17 08:43:42 GMT 2024
Total time taken to generate the page: 0.05321 seconds
|