Skip to main content
We are aware of an issue after updating to cPanel versions 11.110.0.65, 11.126.0.21, or 11.128.0.11, some cPanel plugins or features are no longer functioning properly including WP Toolkit. Please see the following article for more information and updates:
Update to latest cPanel 110, 126, or 128 versions removes "addonfeatures" directory.

Huge /home/virtfs folders (185Gb!)

Comments

6 comments

  • nisamudeen97
    Hi, As you have enabled jailed shell for users you are coming across this issue. /home/virtfs/cpaneluser : This directory structure is created when user access jail shell. You can enable and disable shell access for each users via whm WHM >> Manage Shell Access and enable/disable Jailed Shell for users. When any capnel usr which have access to jail shell for his account login to shell and failed to properly logout from his session this issue occur. because the bind (virtual) mount for his directory are recreated and not properly release. [Mod Edit - Removed unsafe instructions]
    0
  • postcd
    Hi, thank You for advices. In WHM, Manage Shell Access i had shell "Disabled" for all accounts. When i do: # cat /proc/mounts | grep mycpanelusername i see numerous mount points when i do: # ps aufx | grep mycpanelusername |grep jailshell" i see nothing, even when i do "ps aufx | grep mycpanelusername" there is nothing shown But Your unmounting command returns "device is bussy" errors:
    # for i in `cat /proc/mounts |grep virtfs |grep pr*****|awk '{print$2}'`; do umount $i; done umount: /home/virtfs/pr*****/usr: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /home/virtfs/pr*****/var: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /home/virtfs/pr*****/usr/local/cpanel/3rdparty/mailman: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
    # fuser pr***** shows:
    Cannot stat file /proc/13302/fd/0: Permission denied Cannot stat file /proc/13302/fd/1: Permission denied Cannot stat file /proc/13302/fd/2: Permission denied Cannot stat file /proc/13302/fd/3: Permission denied Cannot stat file /proc/13302/fd/4: Permission denied Cannot stat file /proc/13302/fd/7: Permission denied Cannot stat file /proc/13302/fd/10: Permission denied
    please what do you suggest to check/do?
    0
  • cPanelNick
    Please use # /scripts/clear_orphaned_virtfs_mounts --help Unmount any virtfs mounts whose users no longer exist or whose shell is not currently jailshell/noshell /scripts/clear_orphaned_virtfs_mounts [--help] [--errorsonly] [--inactiveonly] [--clearall] [--user=] /scripts/clear_orphaned_virtfs_mounts --help - this screen /scripts/clear_orphaned_virtfs_mounts --user= - Only cleanup the specified user /scripts/clear_orphaned_virtfs_mounts --errorsonly - Do not have any output unless there are errors /scripts/clear_orphaned_virtfs_mounts --inactiveonly - Only cleanup for users with no running processes /scripts/clear_orphaned_virtfs_mounts --clearall - Unmount all virtfs mounts regardless of user's jailshell/noshell status
    0
  • postcd
    cPanelNick: thx, i did: # /scripts/clear_orphaned_virtfs_mounts --user=pr*****
    -- Begin user 'pr*****' -- No action needed -- End user 'pr*****' --
    (instead of ***** i used valid account name) then: # du -h /home/virtfs/pr***** --max-depth=0
    du: cannot access `/home/virtfs/pr*****/proc/18134': No such file or directory du: cannot access `/home/virtfs/pr*****/proc/18403/task/18403/fd/4': No such file or directory du: cannot access `/home/virtfs/pr*****/proc/18403/task/18403/fdinfo/4': No such file or directory du: cannot access `/home/virtfs/pr*****/proc/18403/fd/4': No such file or directory du: cannot access `/home/virtfs/pr*****/proc/18403/fdinfo/4': No such file or directory 25G /home/virtfs/pr*****
    tried also ---clearall switch, but did not cleared anything..
    0
  • postcd
    Here is the reply of the server admin who taken a look on that: VirtFS is provided by cPanel and is a core functionality of the jailed system. Whether or not you provide shell access, VirtFS is still required to allow those users without full shell access the ability to use autoresponders, cron jobs, etc. These VirtFS directories are simply mirrors of the actual user's paths on the server, and should not take up space other then the actual space used by the actual files in /home. The following is the accurate disk usage of the server: /dev/simfs 235G 181G 55G 77% / I am not seeing that VirtFS is actually using space. It was previously reported as : 86G /home/virtfs Which is not the true space, as clearing the mounts brings down the reported usage: 46G /home/virtfs However it does not lower or increase the disk space available: [09:43:49 hostname root@6329935 ~]***# df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 235G 181G 55G 77% /
    0
  • cPanelMichael
    Hello, The following thread explains this is more detail:
    0

Please sign in to leave a comment.