OpenVZ Forum


Home » General » Support » Disk Quota Not Showing
Disk Quota Not Showing [message #101] Thu, 15 September 2005 20:43 Go to next message
iConch is currently offline  iConch
Messages: 1
Registered: September 2005
Junior Member
I am following the PDF User Guide and have set up for example VPSID 101. I have set --diskspace --diskinodes, and --quotatime. When I perform:

# vzctl exec 101 df
Filesystem 1K-blocks Used Available Use% Mounted on
[root@redhat /]#

If I perform:

# df /vz
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 74714332 2161532 68757444 4% /

If I do df inside VPS 101 it is empty also. I have tried restarting VPS 101 with the same results.

What am I missing or doing wrong?
Re: Disk Quota Not Showing [message #102 is a reply to message #101] Fri, 16 September 2005 04:14 Go to previous messageGo to next message
fenster is currently offline  fenster
Messages: 4
Registered: August 2005
Junior Member

Try to add

simfs / simfs rw 0 0


into your /etc/mtab on the VPS (probably in rc.local or somewhere else). It helped me when I had similar issue Smile


--alex
Re: Disk Quota Not Showing [message #103 is a reply to message #101] Fri, 16 September 2005 07:47 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Which OS template do you use?
Please, check vzctl exec 101 ls -al /etc/mtab output
By default, it should be symlink to /proc/mounts


http://static.openvz.org/openvz_userbar_en.gif
Re: Disk Quota Not Showing [message #170 is a reply to message #101] Sun, 25 September 2005 23:57 Go to previous messageGo to next message
rpatrick is currently offline  rpatrick
Messages: 3
Registered: September 2005
Junior Member
After creating a CentOS-4 VPS by following the steps outlined in the PDF userguide, mtab was a regular file with this content:

none /dev/pts devpts rw 0 0

We don't get df output with that, so removing that file and creating the symlink fixes things up.

rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab

Once the symlink is created, df from inside the VPS correctly displays the amount of disk space free.

Example:

[root@vps ~]# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 1.0G 413M 612M 41% /

Re: Disk Quota Not Showing [message #220 is a reply to message #170] Wed, 12 October 2005 09:40 Go to previous messageGo to next message
Tellerdreher is currently offline  Tellerdreher
Messages: 13
Registered: October 2005
Junior Member
You could add

# set /etc/fstab
$VZCTL exec2 $VEID 'echo "simfs / simfs rw 0 0" >> /etc/fstab'

to the install-post script in the /vz/template/<DIST>/config so that the cache repository is adjusted and every new initialized VPS is configured correctly.
Re: Disk Quota Not Showing [message #221 is a reply to message #101] Wed, 12 October 2005 10:24 Go to previous messageGo to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

This is a known bug which Bugzilla has been filed. To correct the problem and your template see this post:

http://forum.openvz.org/index.php?t=msg&th=42&start= 0&

Good Luck!


Just Because You Have One, Doesn't Mean You Have To Be One!
Re: Disk Quota Not Showing [message #228 is a reply to message #221] Thu, 13 October 2005 07:54 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Just for info:
it will be fixed in the upcoming updated OS templates this or next week when we plan to release x86-64 version also.


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: SIOCADDRT: No such device -- when adding IP's
Next Topic: laptop support
Goto Forum:
  


Current Time: Sat Oct 05 17:38:40 GMT 2024

Total time taken to generate the page: 0.03708 seconds