Archive for November, 2009

How do I safely remove the /home/virtfs directory?

Wednesday, November 18th, 2009

The virtfs directory contains hard links to all the system binaries to help with security via jailshelled accounts.

If you remove the virtfs system without unmounting the directories under it, you will completely break the system.

The procedure you need to do is the following:

cd /home/virtfs
find . -regex ‘^.*[How do I safely remove the virtfs directory?^.]‘ -type d > t1
for i in $(cat t1); do umount $i; done

After this is ran, you can safely recursively remove the /home/virtfs directory.

Cannot change ownership to uid 501, gid 501: Disk quota exceeded

Thursday, November 5th, 2009

If you see following error while updating Perl modules -

Cannot change ownership to uid 501, gid 501: Disk quota exceeded

Then go to WHM -> Basic cPanel/WHM Setup and change the Minimum UID to something like 30000