HostCenter IL

Active Member
PartnerNOC
Nov 22, 2011
30
0
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?
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
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
 
Last edited:

HostCenter IL

Active Member
PartnerNOC
Nov 22, 2011
30
0
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".
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,910
2,233
363
cPanel Access Level
DataCenter Provider
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.
 

HostCenter IL

Active Member
PartnerNOC
Nov 22, 2011
30
0
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.