Missing space on mount

Discussion in 'Server Operation' started by Tomislav Aurednik, Jun 11, 2024.

Tags:
  1. Have strange problem...
    findmnt shows that mountpoint is present
    ─/var/www/clients/client26/web330/log /dev/vdc1[/ispconfig/httpd/xxxxxx]

    but when I try to unmount it
    umount /var/www/clients/client26/web330/log
    umount: /var/www/clients/client26/web330/log: not mounted

    The core issue is that I have mounted 20GB HDD partition on /var/log, used is 4GB, but free 0. I can unmount /dev/vdc1, but fsck is telling me that partition is mounted. Where is this missing space ? On deleted files, which are still in use ?

    What to do except reboot (no chance for doing it during day)
     
  2. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    did you check your current mounts?
    $mount
    no argument, just type mount to see all your mounts.
    you could filter for vdc
    $mount | grep vdc
    to see vdc related mounts in use.

    Also check your
    $df -h

    to help us understand your situation better, too.

    Usually /var/log should not have unlinked files still in use, though I do not the current state of your system and
    everything is possible.
    Lets start with an overview, do not try to unmount things that will be in use. Especially the log folder for your websites.
    You can check the services accessing var log using
    $lsof /var/log

    those would need to be stopped in order to be able to unmount and... that might be pretty much everything, unfortunally
     
  3. Unfortunately nothing new is shown...
    root@pro1:/var/log# mount | grep vdc
    /dev/vdc1 on /var/www/clients/client26/web330/log type ext3 (rw,relatime,data=ordered)
    /dev/vdc1 on /var/www/clients/client3/web327/log type ext3 (rw,relatime,data=ordered)
    /dev/vdc1 on /var/www/clients/client106/web328/log type ext3 (rw,relatime,data=ordered)
    /dev/vdc1 on /var/log type ext3 (rw,relatime,data=ordered)

    root@pro1:/var/log# umount /var/www/clients/client106/web328/log
    umount: /var/www/clients/client106/web328/log: not mounted

    Obviuosly have no other choice but to reboot later in the night
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You did not show what
    Code:
    df -hT
    reveals. Also
    Code:
    df -hi
    I think those are bind mounts, see in /etc/fstab. But still mystery what is going on.
     
  5. df -hT
    /dev/vdc1 ext3 20G 19G 89M 100% /var/log

    df -hi
    /dev/vdc1 1.3M 5.8K 1.3M 1% /var/log

    true, these are bind logs, found in fstab. But still cannot unmount them. Will try to reboot later in the evening
     
  6. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    in /var/log, try
    du -sh * | sort -h

    i suspect you may have a very large journal file.
     
    Last edited: Jun 12, 2024
  7. Unforunately not
    /var/log# du -sh | sort -h
    4.7G .

    Out of ideas
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The command should have been
    Code:
    cd /var/log
    du -shc * | sort -h
    or
    Code:
     du -shc /var/log/* | sort -h
    The asterisk character is important.
     
  9. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    oops... i always end up forgetting that * :oops: corrected my post now..

    was the contents of /var/log removed before you mounted the /dev/vdc1 partition there?
    if not.. the files that were already there will still be counted as used space... although, from memory, i think they were still counted as using space on the system partition, not the mounted volume.
     

Share This Page