Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unable to Remove User from virtfs

Discussion in 'General Discussion' started by HostCenter IL, Nov 28, 2013.

  1. HostCenter IL

    HostCenter IL Active Member
    PartnerNOC

    Joined:
    Nov 22, 2011
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    A user that doesn't even have shell access anymore is located in the /home/virtfs directory on one of my servers, and that directory takes up 20 GB, including what looks like a copy of the entire server configuration and binaries, like /var, /usr, /etc.

    I'm trying to unmount the user with this guide.

    And indeed it apparently unmounted successfully and cleared the records with:
    /scripts/clear_orphaned_virtfs_mounts --clearall

    However, the offending folder is still there and I don't want to just delete it for the fear of causing damage to the user's website.

    What should I do in this situation?
     
  2. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    352
    Likes Received:
    7
    Trophy Points:
    168
    Location:
    Disillusioned in England
    cPanel Access Level:
    Root Administrator
    Note that since 11.38 the jailed environment will still be created / recreated by things like cron jobs, exim filters etc. I'd think that if you were to delete it the damage would potentially be to the server as well as the user's site, so definately something you want to avoid doing...

    Per the docs is anything for the user still mounted?

    grep -i 'username' /proc/mounts
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 ThinIce, Nov 28, 2013
    Last edited: Nov 28, 2013
  3. HostCenter IL

    HostCenter IL Active Member
    PartnerNOC

    Joined:
    Nov 22, 2011
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    It does show that it's mounted now, this is kind of weird—I got it to be removed from there twice and it's there again. Probably doing something wrong.

    Code:
    /dev/root /home/virtfs/[username]/lib ext3 rw,nosuid,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/bin ext3 rw,nosuid,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/sbin ext3 rw,nosuid,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/opt ext3 rw,nosuid,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/lib64 ext3 rw,nosuid,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/usr ext3 rw,nosuid,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/var ext3 rw,nosuid,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/var/spool ext3 rw,nosuid,noexec,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/var/log ext3 rw,nosuid,noexec,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/etc/mail ext3 rw,nosuid,noexec,data=ordered,usrquota 0 0
    /dev/loop0 /home/virtfs/[username]/tmp ext3 rw,nosuid,noexec,data=ordered 0 0
    /dev /home/virtfs/[username]/dev tmpfs rw,nosuid,noexec 0 0
    /dev/root /home/virtfs/[username]/usr/sbin ext3 rw,data=ordered,usrquota 0 0
    /dev/root /home/virtfs/[username]/home/[username] ext3 rw,data=ordered,usrquota 0 0
    Right now when I run umount /home/virtfs/username/usr/bin, it says "umount: /home/virtfs/[username]/usr/bin: not mounted".
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Is there a specific reason you prefer to remove this virfs mount? For instance, the space used is likely calculated from the hard link to the actual file, and not from the virfs mount itself. Is this causing any specific problems that we can troubleshoot?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. HostCenter IL

    HostCenter IL Active Member
    PartnerNOC

    Joined:
    Nov 22, 2011
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    When I run du on the virtfs folder, the space that this specific folder appears to take is about 20GB, compared to the others which take up less than 1MB. From everything I've been able to gather so far, this space usage is real and not virtual.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you open a support ticket so we can take a closer look?

    Submit A Ticket

    You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice