| 
		
			| *SOLVED* Disk space issue [message #8919] | Mon, 11 December 2006 11:18  |  
			| 
				
				
					|  dagr Messages: 83
 Registered: February 2006
 | Member |  |  |  
	| for 1 of my VPS - disk space  is shown wrong . 
 
 [dagr@ssw2-ca dagr]$ sudo vzctl enter php4_base
 entered into VE 10411
 [root@10 /]# df -h
 Filesystem            Size  Used Avail Use% Mounted on
 simfs                 1.0G  827M  198M  81% /
 ext3                  485M  431M   29M  94% /vps_static
 [root@10 /]# du -ms /
 460     /
 [root@10 /]#
 //////////////////////////////////////
 Why 827Mb used ? Usually it happens when some processes keeps inodes but its not this case
 
 [root@10 /]# ps -ef
 UID        PID  PPID  C STIME TTY          TIME CMD
 root         1     0  0 14:03 ?        00:00:00 init [3]
 root     14128     1  0 14:03 ?        00:00:00 syslogd -m 0
 root     14196     1  0 14:03 ?        00:00:00 crond
 root     16487     1  0 14:06 ?        00:00:00 vzctl: pts/0
 root     17512 16487  0 14:06 pts/0    00:00:00 -bash
 root     18242 17512  0 14:09 pts/0    00:00:00 ps -ef
 
 
 //////////////////////////////////////////////////////
 I have very similar VPS and its ok  - at least 486Mb and 563Mb are quite close.
 
 [dagr@ssw2-ca dagr]$ sudo vzctl enter php5_base
 entered into VE 10511
 [root@10 /]# df -h
 Filesystem            Size  Used Avail Use% Mounted on
 simfs                 1.0G  563M  462M  55% /
 ext3                  485M  431M   29M  94% /vps_static
 [root@10 /]# du -ms ./
 486     ./
 ////////////////////////////////////////////////////////
 Mounts  are the same. Confs - identical except ips. From HN it looks like this
 
 [dagr@ssw2-ca dagr]$ sudo cat /proc/vz/vzquota
 qid: path            usage      softlimit      hardlimit       time     expire
 10411: /u03/vz/private/10411
 1k-blocks         846132        1048576        1153434          0          0
 inodes          30717         200000         220000          0          0
 10511: /u03/vz/private/10511
 1k-blocks         575760        1048576        1153434          0          0
 inodes          27783         200000         220000          0          0
 
 [dagr@ssw2-ca dagr]$ sudo du -ms /vz/private/10411/
 37      /vz/private/10411
 [dagr@ssw2-ca dagr]$ sudo du -ms /vz/private/10511/
 63      /vz/private/10511
 [dagr@ssw2-ca dagr]$ sudo du -ms /vz/root/10411/
 460     /vz/root/10411
 [dagr@ssw2-ca dagr]$ sudo du -ms /vz/root/10511/
 486     /vz/root/10511
 
 
 (vzctl 3.0.13 kernel  2.6.9-023stab032.1-smp and 2.6.18-028test007-smp , RHEL4 x86 )
 
 
 
 [Updated on: Tue, 12 December 2006 14:18] by Moderator Report message to a moderator |  
	|  |  | 
	|  | 
	|  | 
	|  | 
	|  |