{"id":547,"date":"2011-09-21T14:30:23","date_gmt":"2011-09-21T07:30:23","guid":{"rendered":"http:\/\/whplus.com\/blog\/?p=547"},"modified":"2011-09-21T14:43:34","modified_gmt":"2011-09-21T07:43:34","slug":"never-delete-any-files-from-homevirtfs-2","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2011\/09\/21\/never-delete-any-files-from-homevirtfs-2.html","title":{"rendered":"Never Delete Any Files From \/home\/virtfs\/"},"content":{"rendered":"<p>\/home\/virtfs folder is used to chroot the user into jailed shell. Cpanel will hard link files into this directory so deleting files in \/home\/virtfs will also delete the files on the server in the actual location. (example: rm \/home\/virtfs\/user\/etc\/exim.pl will delete \/etc\/exim.pl)<\/p>\n<p>If a user is reporting double the quota and it is from \/home\/virtfs then we need to umount or kill and hanging jailshell process. To do this run<\/p>\n<p>ps aufx |grep user |grep jailshell<\/p>\n<p>If there are no jailshell processes then run<\/p>\n<p>cat \/proc\/mounts<\/p>\n<p>It will show,<br \/>\n\/dev\/root \/home\/virtfs\/user\/lib ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/lib ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/sbin ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/share ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/bin ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/man ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/X11R6 ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/kerberos ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/libexec ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/local\/bin ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/local\/share ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/local\/Zend ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/include ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda2 \/home\/virtfs\/user\/usr\/local\/lib ext3 rw,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda3 \/home\/virtfs\/user\/var\/spool ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda3 \/home\/virtfs\/user\/var\/lib ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda3 \/home\/virtfs\/user\/var\/run ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda3 \/home\/virtfs\/user\/var\/log ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0<br \/>\n\/dev\/sda6 \/home\/virtfs\/user\/tmp ext3 rw,nosuid,nodev,noexec,data=ordered 0 0<br \/>\n\/dev\/root \/home\/virtfs\/userbin ext3 rw,data=ordered,usrquota 0 0<\/p>\n<p>You will need to unmount each of these by running<br \/>\numount \/home\/virtfs\/user\/tmp and so on<\/p>\n<p>You can also run<\/p>\n<p>for i in `cat \/proc\/mounts |grep virtfs |grep user |awk &#8216;{print$2}&#8217;`; do umount $i; done<\/p>\n<p>Make sure to replace user with the cpanel username in the above command. This will then clear up the files in \/home\/virtfs and the quota should return to normal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/home\/virtfs folder is used to chroot the user into jailed shell. Cpanel will hard link files into this directory so deleting files in \/home\/virtfs will also delete the files on the server in the actual location. (example: rm \/home\/virtfs\/user\/etc\/exim.pl will delete \/etc\/exim.pl) If a user is reporting double the quota and it is from \/home\/virtfs\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2011\/09\/21\/never-delete-any-files-from-homevirtfs-2.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-547","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=547"}],"version-history":[{"count":2,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/547\/revisions"}],"predecessor-version":[{"id":550,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/547\/revisions\/550"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}