mpalmer / lvmsync

Synchronise LVM LVs across a network by sending only snapshotted changes
http://theshed.hezmatt.org/lvmsync
GNU General Public License v3.0
383 stars 61 forks source link

Machine stuck on echo 3 > drop_caches #49

Open airstand opened 8 years ago

airstand commented 8 years ago

Hello,

If you are using KSM enabled on Host node for KVM VMs .. there is a problem dropping caches.

The best way to do that is :

    #File.open("/proc/sys/vm/drop_caches", 'w') { |fd| fd.print "3" }

    system("sync; /sbin/sysctl vm.drop_caches=1");

Regards, Spas

LukasdeBoer commented 7 years ago

Yes, I had the same issue on a Proxmox machine - this fixed it. Thanks!