Hello, we're using cPanel with WHM and inside of our / we can see that the virtfs folder is taking up about 800Gb of space, this is abnormal, we've us

stefan88

Registered
Feb 21, 2022
1
0
1
LONDON,UK
cPanel Access Level
Root Administrator
Hello, we're using cPanel with WHM and inside of our / we can see that the virtfs folder is taking up about 800Gb of space, this is abnormal, we've used du to check the space it is taking up, ignoring all the symlinks to /bin or /lib, it is still taking a lot of space since the /var does not have any symlinks and it is taking up ~40gb per account.

What we have already tried:

- Restarting the system
- Running /scripts/clear_orphaned_virtfs_mounts according to the /home/virtfs eating up space - not using jailshell response from cPanelKenneth
- Running /scripts/clear_orphaned_virtfs_mounts --clearall ( Only showing us the message the the files are locked and that they can not be deleted )

What we have not attempted but were considering:
- Manually removing items from /var/ of each jail

What we have found that is extremely weird.
Inside of ALL of the users from within /home/virtfs, if we go over to /home/virtfs/NAME_OF_ANY_USER/var/lib/mysql this folder is a complete duplicate of all of the databases that we have, these are NOT symlinks, they are actually just COPIES

How can we cleanup this occupied space without bricking the system?

Thank you.
 
Last edited by a moderator:

andrew.n

Well-Known Member
Jun 9, 2020
877
329
63
EU
cPanel Access Level
Root Administrator
This should address your questions :)

 

quietFinn

Well-Known Member
Feb 4, 2006
1,653
328
438
Finland
cPanel Access Level
Root Administrator
There is a file /home/0_README_BEFORE_DELETING_VIRTFS containing this:


Code:
The /home/virtfs directory contains critical operating system files. If you
remove /home/virtfs, or any directories under /home/virtfs, you will cause
irreparable damage to your operating system. Do not remove /home/virtfs, or any
directories under /home/virtfs, unless you have tested, up-to-date backups.

You should ignore any disk usage warnings you receive that are associated with
the /home/virtfs directory!

For more information about the /home/virtfs directory, visit the documentation
at https://go.cpanel.net/virtfsdoc