Friday, March 22, 2013

virtfs showing high disk usage


Some times you see virtfs showing as using high disk usage in a cpanel server.

/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/ .Sometimes, system wouldn’t unmount some or all of the filesystems properly from /home/virtfs/ even if the user is logged out from jailshell.So the disk usage is showing as incorrect at that time.

You can unmount it using the command for i in `cat /proc/mounts|awk '/virtfs/ {print $2}'`; do umount $i;done.


No comments:

Post a Comment