OpenVZ Forum


Home » General » Support » CentOS Disk space usage (df command) output is empty
CentOS Disk space usage (df command) output is empty [message #697] Sat, 07 January 2006 02:15 Go to next message
phpfreak is currently offline  phpfreak
Messages: 47
Registered: January 2006
Member
When I login to the VE I run 'df -h' and the output is empty such as:

Here's an output from a few of my VEs:

VPS 200
Filesystem Size Used Avail Use% Mounted on
simfs 1.0G 314M 711M 31% /

VPS 201
Filesystem Size Used Avail Use% Mounted on

VPS 202
Filesystem Size Used Avail Use% Mounted on

VPS 203
Filesystem Size Used Avail Use% Mounted on
simfs 4.8G 1.4G 3.4G 30% /

That's the 'df -h' command. Notice 201 and 202 don't present anything.


Here's some more output:

[root@vz1 ~]# vzctl exec 200 mount
simfs on / type simfs (rw,noatime)
proc on /proc type proc (rw,nodiratime)
devpts on /dev/pts type devpts (rw)


[root@vz1 ~]# vzctl exec 204 mount
none on /dev/pts type devpts (rw)


Kind of odd. Anyone got any ideas?

Thanks,



[Updated on: Sat, 07 January 2006 02:16]

Report message to a moderator

Re: CentOS Disk space usage (df command) output is empty [message #700 is a reply to message #697] Sat, 07 January 2006 02:45 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

Just a guess but try this from inside the VPS:

mount -t proc proc /proc

Also, did you do this:

ln -s /proc/mounts /etc/mtab

Good Luck!


Just Because You Have One, Doesn't Mean You Have To Be One!
Re: CentOS Disk space usage (df command) output is empty [message #704 is a reply to message #700] Sat, 07 January 2006 03:04 Go to previous messageGo to next message
phpfreak is currently offline  phpfreak
Messages: 47
Registered: January 2006
Member
Awesome, thanks Smile

I actually ended up doing this:

vzctl exec 201 "cat /proc/mounts > /etc/mtab"

Then the disk came up in df.

Awesome Smile



[Updated on: Sat, 07 January 2006 03:05]

Report message to a moderator

Re: CentOS Disk space usage (df command) output is empty [message #724 is a reply to message #704] Sat, 07 January 2006 14:17 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can just link /etc/mtab to /proc/mounts to achieve the same Smile

vzctl enter XXX
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: CentOS Disk space usage (df command) output is empty [message #731 is a reply to message #724] Sun, 08 January 2006 05:43 Go to previous message
phpfreak is currently offline  phpfreak
Messages: 47
Registered: January 2006
Member
Thanks!

It would be cool if we could find someone to do a FAQ on these types of technical things, maybe a knowledgebase or something Smile


Previous Topic: network failure when running man ve
Next Topic: what sripts runs when you vzctl into a ve?
Goto Forum:
  


Current Time: Sun Nov 03 06:54:35 GMT 2024

Total time taken to generate the page: 0.03711 seconds