I’ve used an appliance (link below) to setup basic Guacamole setup MySQL auth, but lately a font rendering on HiDPI displays bug has been bugging me more and more. So I’ve decided to upgrade to the git version as there should be a workaround implemented.
Sometimes, usually log files, keeps consuming disk space even after deletion. It’s caused by locks of a process which still keeps using them.
In order to diagnose the problem we have to find those files.
lsof | grep deleted | grep /var/log/apache2 | sort | tail
The output should look something like:
apache2 8728 www-data 79w REG 254,2 23002246 524353 /var/log/apache2/iframes.espoluprace.cz-access. log.1 (deleted) apache2 8728 www-data 80w REG 254,2 5629092 524396 /var/log/apache2/vip.espoluprace.cz-data-access .log.1 (deleted) ... ...
You can see there is process apache2, pid 8728 run by user www-data which holds the files for 79 weeks. The only thing you need to do is to restart the service in this example and the disk space gets freed up.
This tutorial shows how to setup a NFS storage to be used with WMware ESXi sever.
The biggest advantage of this solution is that you can do snapshot and flawlessly backup data without having VM shut down. The snapshot gives you consistent image at the time.
Here are a few commands for the OpenVZ usage. They are in no particular order, and also expects bash as a default shell for the memory calculations.
Over past couple of years I was using OpenVZ and as excellent low cost solution for Linux services separation and every time I was installing it I had to Google the necessary steps. This led me into writing this simple guide to speedup my future setup.