Troubleshoot - by Hostrare
VirtFS
VirtFS gives a jailed shell environment for users who compare to a server via SSH. The confined shell acts as a container for the user and does not permit the user to access other users’ home directories on the server. Unlike a normal shell environment, a jailed shell environment prevents access to data outside of the user’s home directory.
Consuming a lot of disk space?
Most of the servers got huge disk space due to these virtues. You can Disable VirtFS, Remove VirtFS and Unmount the bind mounts. CPanel gives a script to remove the virtfs mounts. Remove virtfs and Disable for users in your cpanel server
Do not delete /home/virtfs/username folder directly because its a hard link with the user account.
To damage VirtFS, system administrators can disable jailed shell access through WHM’s Tweak Settings interface (Home >> Server Configuration >> Tweak Settings) and Manage Shell Access interface for that cpanel user account WHM >> Account Functions >> Manage Shell Access.
Then use the following commands whether its still available.
# grep username /etc/passwd
If it does, you’ll want to change it to Bash or some other shell.
# crontab -l -u username
If you notice SHELL=”/usr/local/cpanel/bin/jailshell” in the output, you’ll need to edit the user’s crontab and remove that line.
#w | grep -i username
If it is, you should notify him to log out or, if you feel the same, 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.