Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using cPanel hosting. I rent 20GB and /home/virtfs is taking up nearly 10GB.

I read that using jailed shell accounts could be responsible for large virtfs file. Most of the user accounts have SFTP access using SSH identity key, but shell access is denied to all account (except root).

Any suggestions as to how to reduce the size of this file?

share|improve this question

2 Answers 2

How are you measuring the size of /home/virtfs? It is indeed created for jailed shell logins, but those include SFTP logins. It contains a number of bind mounts, and so likely the disk usage you're seeing is logically elsewhere in the filesystem as well. In other words, that 10GB is probably real user data. The cPanel docs go into detail about VirtFS.

share|improve this answer
    
I checked the size by du -chs /home/virtfs. I will have a look at the cPanel link. Cheers. –  Owen May 2 '11 at 20:46
    
FYI, du does not take into account hard links and bind mounts when calculating disk usage of a directory. So, while the total size of files inside /home/virtfs may sum to over 10GB, if you were to unmount /home/virtfs, I don't believe you'd see any less disk usage via df. –  justarobert May 2 '11 at 23:08

try running below as root

/scripts/clear_orphaned_virtfs_mounts --clearall

share|improve this answer
4  
Welcome to Server Fault - we prefer answers that explain a why, not just a how (see this blog post for our reasoning). Please update your answer to provide a little more detail. Thanks! –  voretaq7 Dec 6 '12 at 5:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.