/home/virtfs consuming a lot of space?
May 2, 2011 by: Akhthar Parvez/home/virtfs is the directory created by cpanel to provide a restricted data access to jailshell users. When a user is logged in via jailshell, a virtual fileystem is created for the cpanel user by mounting only the selected filesystems under /home/virtfs/
Since the data in /home/virtfs/
Sometimes, system wouldn’t unmount some or all of the filesystems properly from /home/virtfs/
even if the user is logged out from jailshell. And you can guess what would happen in such cases; du would show that directory is consuming a lot of space.
Check if there’s any jailshell process running and if so, kill the process. If none, you may run the following bash one liner in order to fix this issue:
for i in `cat /proc/mounts|awk '/virtfs/ {print $2}'`; do umount $i;done
Run du again and you should see that /home/virtfs is hardly consuming any space at all. 🙂