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)
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
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
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.
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
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.
oops... i always end up forgetting that * 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.