Closed Thread
Results 1 to 7 of 7

Thread: /home/virtfs 11gb?

  1. #1
    Wanch Guest

    /home/virtfs 11gb?

    I was browsing around my server and noticed a directory named virtfs in /home. I did a du -sh on it and realized it was taking up 11GB . Why? Is it safe to delete this directory? What is the purpose of this directory?

  2. CODECALL Circuit advertisement

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143
    Do you have a virtual machine installed on your computer? That would be consistent with a massive file.

  4. #3
    phpforfun's Avatar
    phpforfun is offline Speaks fluent binary
    Join Date
    Feb 2008
    Posts
    1,232
    Blog Entries
    17
    Rep Power
    24
    /home/virtfs contains hard links to your system resources for jailshell settings. Thought it will display it takes 11 gigs, you do not need to worry. It takes up no more than a simple link or folder.

    DO NOT TOUCH IT!


    Removing the folder will take your system down, for good. You will need to reimage your server.

    Virtfs is actually created by cpanel, and the space represents the destination it links to.

    Think of the WWW link in your directory for a website, its actually public_html. Only difference is, if you remove www, you remove a link, if you remove virtfs, you delete needed system files.

    Edit: Also, if you are running a backup, you should exclude this, as it will back up files you dont need, unless you delete them.

    If you delete it, you will instantly realize cpanel/whm goes down, all your accounts go to 500 server errors, you get kicked out of ssh, and wont be able to get back in, and there is no way to fix it.
    Checkout my new forum! http://adminreference.com/

  5. #4
    Jordan Guest
    I've seen this directory before and wondered specifically what its purpose was. So Justin, what you are saying is that it is a bunch of symbolic links to other files and directories?

  6. #5
    phpforfun's Avatar
    phpforfun is offline Speaks fluent binary
    Join Date
    Feb 2008
    Posts
    1,232
    Blog Entries
    17
    Rep Power
    24
    /home/virtfs is used to chroot users into a jailed shell. Cpanel hard links system files to it, they are all real live files.

    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
    ps aufx |grep user |grep jailshell
    If there are no jailshell processes then run
    cat /proc/mount
    It will show,
    /dev/root /home/virtfs/user/lib ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/lib ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/sbin ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/share ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/bin ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/man ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/X11R6 ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/kerberos ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/libexec ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/local/bin ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/local/share ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/local/Zend ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/include ext3 rw,data=ordered,usrquota 0 0
    /dev/sda2 /home/virtfs/user/usr/local/lib ext3 rw,data=ordered,usrquota 0 0
    /dev/sda3 /home/virtfs/user/var/spool ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0
    /dev/sda3 /home/virtfs/user/var/lib ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0
    /dev/sda3 /home/virtfs/user/var/run ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0
    /dev/sda3 /home/virtfs/user/var/log ext3 rw,noatime,nodiratime,data=ordered,usrquota 0 0
    /dev/sda6 /home/virtfs/user/tmp ext3 rw,nosuid,nodev,noexec,data=ordered 0 0
    /dev/root /home/virtfs/userbin ext3 rw,data=ordered,usrquota 0 0
    You will need to unmount each of these by running
    umount /home/virtfs/user/tmp
    and so on

    You can also run
    for i in `cat /proc/mounts |grep virtfs |grep user |awk ‘{print$2}’`; do umount $i;
    done
    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.
    Checkout my new forum! http://adminreference.com/

  7. #6
    Jordan Guest
    Excellent explanation.

  8. #7
    Wanch Guest
    Wow, excellent explanation. Thanks!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how do i run php on my web server or at home
    By iscofield in forum PHP Development
    Replies: 18
    Last Post: 06-04-2011, 07:46 PM
  2. Far from home
    By Jaan in forum The Lounge
    Replies: 19
    Last Post: 09-27-2008, 09:06 AM
  3. Looking for a new home
    By MrGamma in forum Introductions
    Replies: 8
    Last Post: 09-24-2008, 01:05 PM
  4. Working from home
    By Void in forum Business and Legal
    Replies: 11
    Last Post: 08-04-2006, 01:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts