100% Disk space on OpenVZ

Discussion in 'Proxmox VE 1.x: Installation and configuration' started by SamTzu, Sep 1, 2010.

  1. SamTzu

    SamTzu Member

    Joined:
    Mar 27, 2009
    Messages:
    351
    Likes Received:
    4
    I did something stupid. (Ones again :()
    I deleted a big file within OpenVZ client straight from the Proxmox host.
    Now the Disk Space keeps showing 100% Disk Usage even though there is no sign of the two 16Gb files I deleted inside the Client.

    Any clues how to update the Disk Space data on the Host?

    Here is what the client shows...
    server:/var/www/testi1.mattila.local/web# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/simfs 50G 33G 18G 65% /
    tmpfs 1.3G 0 1.3G 0% /lib/init/rw
    tmpfs 1.3G 0 1.3G 0% /dev/shm
    server:/var/www/testi1.mattila.local/web# df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/simfs 10000000 27202 9972798 1% /
    tmpfs 323072 4 323068 1% /lib/init/rw
    tmpfs 323072 1 323071 1% /dev/shm
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,055
    Likes Received:
    257
    Attach an empty disk, and copy everything to that new disk. Then use that new (smaller) disk instead of the old one.

    EDIT: Oh, sorry - that is for KVM - ignore that.

    What kernel version do you use?
     
  3. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,055
    Likes Received:
    257
    I guess you need to restart the VM (to get quota fixed).
     
  4. SamTzu

    SamTzu Member

    Joined:
    Mar 27, 2009
    Messages:
    351
    Likes Received:
    4
    I restarted the OpenVZ client but it did not change the Disk Space on Proxmox.
    Do I need to restart Proxmox?
     
  5. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,055
    Likes Received:
    257
    maybe you need to re-init the quota system:

    # vzctl stop <vmid>
    # vzquota drop <vmid>
    # vzctl start <vmid>

    Does that help?
     
  6. SamTzu

    SamTzu Member

    Joined:
    Mar 27, 2009
    Messages:
    351
    Likes Received:
    4
    I didn't have time to try. The log files ballooned again and I now could remove them properly from the client. And suddenly the Proxmox Disk Space was showing correctly again.
     
  7. lucaferr

    lucaferr Member

    Joined:
    Jun 21, 2011
    Messages:
    35
    Likes Received:
    1
    I had the same problem in Proxmox 3.2-4 (I manually deleted some files from the private folder on the host) and running the following commands fixed the problem (thanks dietmar):
    # vzctl stop <vmid>
    # vzquota drop <vmid>
    # vzctl start <vmid>
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice