The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I remove VirtFS folder after umounting it ?

Discussion in 'General Discussion' started by egyption, Oct 29, 2013.

  1. egyption

    egyption Registered

    Joined:
    May 2, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have removed all Jailed Shell permissions for all accounts
    And I have umounted all jailed folders, by using this command

    Code:
    for i in `cat /proc/mounts | grep /home/virtfs | cut -d ' ' -f 2 ` ; do umount $i ; done
    
    And with this command
    Code:
    /scripts/clear_orphaned_virtfs_mounts
    
    Now, Can I remove /home/virtfs, Or should I let it ?

    Thanks a lot
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I recommend reading the following document in full:

    cPanel - VirtFS

    In particular, this warning message is important:

    Warning: If you run the rm command on any file or directory within /home/virtfs that is still mounted, you will also delete all of the files stored in the directory to which it is mounted. This will render your server nonfunctional. We do not recommend that you attempt to remove any of these files or directories in this way.


    Thank you.
     
Loading...

Share This Page