PDA

View Full Version : Disk usage display wrong values


atabernero
04-02-2006, 06:58 AM
du shows 359M used in the root partition, but really there is 1.3G used


vps1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 15G 359M 15G 3% /
tmpfs 4.0G 0 4.0G 0% /dev/shm
tmpfs 10M 32K 10M 1% /tmp

vps1:~# du -khs /
1.3G /
vps1:~#

alexr
04-02-2006, 07:12 AM
Hmm just read over your post again, you have me confused. I think you mean "df shows 359M in the division of root..." and du -khs

I've only ever known about df -h, not du anyway.... Perhaps it just isn't updating as often as you think? Hmm I'd think it would be instant though

What OS is this?

atabernero
04-02-2006, 07:31 AM
vps1:~# cat /etc/debian_version
3.1
vps1:~# uname -r
2.6.9

atabernero
04-02-2006, 07:33 AM
vps1:~# uname -srv
Linux 2.6.9 #1 SMP Mon Feb 20 19:31:28 MSK 2006

stonedge
04-03-2006, 03:12 AM
du shows 359M used in the root partition, but really there is 1.3G used


vps1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 15G 359M 15G 3% /
tmpfs 4.0G 0 4.0G 0% /dev/shm
tmpfs 10M 32K 10M 1% /tmp

vps1:~# du -khs /
1.3G /
vps1:~#



I wondered about quota myself.

Could this be due to the way Virtuozzo works?
I seem to recall somewhere I read that the OS doesn't count against our quota?? Could the missing 1Gig be the OS and the 359M be your actual data/apps?

atabernero
04-04-2006, 10:03 AM
/backup directory is data (tar.gz archives) and is 495M
/root directory is 106M
/opt directory is 170M (java jsdk and tomcat)

vps1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 15G 360M 15G 3% /
tmpfs 4.0G 0 4.0G 0% /dev/shm
tmpfs 32M 32K 32M 1% /tmp

vps1:~# du -khs /
1.3G /

vps1:~# du -khs /*
0 /aquota.group
0 /aquota.user
495M /backup
2.7M /bin
4.0K /boot
148K /dev
4.8M /etc
21M /home
4.0K /initrd
6.3M /lib
4.0K /media
4.0K /mnt
170M /opt
2.5M /proc
106M /root
2.5M /sbin
4.0K /srv
4.0K /sys
32K /tmp
318M /usr
176M /var
vps1:~#

Mr.Loge
04-04-2006, 10:39 AM
have same, backup is it?