Troubleshoot - by Hostrare
VirtFS
VirtFS provides a confined shell situation for users who attach to a server via SSH. The detained shell acts as a box for the user and does not support the user to obtain other users’ home records on the server. Unlike a standard shell situation, a confined shell environment restricts the introduction to data outside of the user’s home register.
Consuming lot of disk space ?
Most of the servers got big disk space due to these virtues. You can Damage VirtFS, Remove VirtFS and Unmount the bind mounts. CPanel gives a script to remove the virtfs mounts. Remove virtfs and Damage for users in your Cpanel server
Do not delete /home/virtfs/username folder directly because its hard link with user account.
Do not remove /home/virtfs/username folder straight because it's a hard link with a user account.
To disable VirtFS, policy managers can damage confined shell way through WHM’s Tweak Settings interface (Home >> Server Configuration >> Tweak Settings) and Guide Shell Access interface for that Cpanel user account WHM >> Account Functions >> Command Shell Access.
Then use the following commands whether its still available.
# grep username /etc/passwd
If it does, you’ll need to change it to Bash or any other shell.
# crontab -l -u username
If you notice SHELL=”/usr/local/cpanel/bin/jailshell” in the output, you’ll need to edit user’s crontab and delete that line.
#w | grep -i username
If it is, you should inform him to log out or, if you feel like it, you can log him out by yourself.
You can unmount all active VirtFS mounts
#/scripts/clear_orphaned_virtfs_mounts –clearall
You can verify mount point for particular account
#grep -i username /proc/mounts
you will some thing like this
root@cpanel# cat /proc/mounts | grep username
/dev/xvda1 /home/virtfs/username/lib ext3 ro,nosuid,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/xvda1 /home/virtfs/username/bin ext3 ro,nosuid,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/loop0 /home/virtfs/username/var/tmp ext3 rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=ordered 0 0
devtmpfs /home/virtfs/username/dev devtmpfs rw,nosuid,noexec,relatime,size=1002360k,nr_inodes=250590,mode=755 0 0
/dev/xvda1 /home/virtfs/username/usr/sbin ext3 ro,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/xvda1 /home/virtfs/username/home/username ext3 rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
then you should unmount and then remove it
#/scripts/clear_orphaned_virtfs_mounts
#for i in `cat /proc/mounts | grep /home/virtfs | cut -d ‘ ‘ -f 2 ` ; do umount $i ; done
That’s all!!
our suuport team here for you 24/7
+8801977507015support@hostrare.comsend a leter Whether you are looking for a personal website hosting plan or a business website hosting plan, We are the perfect solution for you. Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform.