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.

/home/virtfs eating up space rapidly

Discussion in 'General Discussion' started by vpsstore, Nov 13, 2010.

  1. vpsstore

    vpsstore Member

    Joined:
    Nov 13, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi There,

    I have searched the internet and these forums and have also read the cpanel documentation. However, I am a little green on these things and am not sure of the exact steps I need to take in order to cure this problem.

    I had an email from cpanel saying:

    Drive Warning: /dev/sda1 (/var/named/chroot/var/run/dbus) is 81% full

    I then ran:

    Code:
    -bash-3.2# cat /proc/mounts
    rootfs / rootfs rw 0 0
    none /sys sysfs rw,nosuid,nodev,noexec 0 0
    none /proc proc rw,nosuid,nodev,noexec 0 0
    udev /dev tmpfs rw,relatime 0 0
    fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
    /dev/sda1 / ext3 rw,relatime,data=ordered,usrquota 0 0
    /dev/sda1 /dev/.static/dev ext3 rw,relatime,data=ordered,usrquota 0 0
    /proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
    none /dev/pts devpts rw,relatime 0 0
    none /dev/shm tmpfs rw,relatime 0 0
    none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
    /dev/loop0 /tmp ext3 rw,nosuid,noexec,data=ordered 0 0
    /dev/loop0 /var/tmp ext3 rw,nosuid,noexec,data=ordered 0 0
    /dev/sda1 /var/named/chroot/var/run/dbus ext3 rw,relatime,data=ordered,usrquota 0 0
    
    Code:
    umount /var/named/chroot/var/run/dbus
    Also, fixquotas and clear_orphaned_virtfs_mounts

    After following a few instructions this is where I am at:

    Code:
    -bash-3.2# du -sh /home/*
    345M	/home/cpeasyapache
    700K	/home/lampdesi
    4.0K	/home/MySQL-install
    4.0M	/home/virtfs
    476K	/home/wwwital
    12M	/home/wwwplea
    Previously /home/virtfs was using 6-7gb. So that looks good. The only problem is that cpanel/whm still thinks that space is taken! I have tried rebooting - no change.

    Do I need to remove /home/virtfs ? If so is it safe to just rm -rf it? I have already disabled Jail shell in Tweak settings and Manage shell access.

    Thank you!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    No, don't do that. Try this instead.
     
  3. vpsstore

    vpsstore Member

    Joined:
    Nov 13, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Thank you for the reply Infopro.

    Unfortunately that is about as clear as mud to me! Does it simply mean remove the home dirs under /home/virtfs?

    There don't seem to be any user dirs mounted.

    I think one of the Cpanel guys is going to SSH in and take a look - prob save me from annihilating the machine!

    I thought using jailshell was a simply way of allowing sftp/ssh access in place of ftp - how wrong I was ;)

    Thank you!
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Indeed, jailshell is not needed for SFTP.

    cPanel support will fix you up, those guys are the best. :)
     
  5. webdr

    webdr Member

    Joined:
    Jun 12, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Although du is not an issue, our quota on the remote backup service we use is based on usage. I noticed that we had hit our quota and backup was full so I began to poke around for the problem. I noticed the virtfs directory and did some research, fortunately not simply using rm.

    Although shell access is blocked for all accounts on the server except root, apparently SFTP is triggering virtfs.

    I have killed all active jailshell processes and ran umount on all virtfs mounts. Is it safe now to rm the virtfs directory? Will it recreate itself with further SFTP accesses? Is there a configuration value I need to reset?
     
Loading...

Share This Page