Hello,
Can you help me to clear VIRTFS folder ?
Currently its consuming 6.3GB only for one user ( there exists only this user ) like this:
root@host [/home]# du -h --max-depth=1 579M ./user1 4.0K ./cprestore 286M ./cpeasyapache 85M ./user2 16K ./clamav 1008K ./.cpcpan 36K ./.cpanm 6.3G ./virtfs 725M ./user3 16K ./munin 124M ./user4 16K ./varnish 28M ./.cpan 4.0K ./cPanelInstall 8.1G .
root@host [/home/virtfs]# du -h --max-depth=1 6.3G ./user3 4.0K ./_lock 6.3G .
I don’t have any Jailed Shell enabled.
I know if I delete this folder will delete real files of this user, so I wanna know a secure wat to clean this folder ?
That method is safe ? / http://www.sysadminguide.com/cp/cpanel/homevirtfs-consuming-a-lot-of-space-2/
Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You should check out the documentation on CPanel’s site:
<br>
<br>http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/VirtFS
<br>
<br>Make sure that no users have jailed shell access in the “Manage Shell Access” interface. You can then use the script that you found in the blog post to unmout any bind-mounted directories.
<br>
<br><pre>
<br>for i in cat /proc/mounts | awk '/virtfs/ {print $2}'; do umount $i;done
<br></pre>
<br>
<br>CPanel also provides a script to remove the virtfs mounts:
<br>
<br><pre>
<br>/scripts/clear_orphaned_virtfs_mounts --clearall
<br></pre>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.