Unable to Remove User from virtfs
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 [url=http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/VirtFS#Clear VirtFS (Jailed Shell orphaned bind mounts]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?
-
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 0 -
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. /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".0 -
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. 0 -
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. 0 -
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. 0
Please sign in to leave a comment.
Comments
5 comments