Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


kvm_recover_space_from_vm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
kvm_recover_space_from_vm [2014/12/02 22:06]
admin [Test]
kvm_recover_space_from_vm [2014/12/02 22:06]
admin [Test]
Line 30: Line 30:
   * Delete tstfile   * Delete tstfile
   * Trim the filesystem: <​code>​fstrim -v /​var</​code>​   * Trim the filesystem: <​code>​fstrim -v /​var</​code>​
-  * Check VM image size. You can see in the first column the size grow and shrink after fstrim. <​code>​$ ls -las vmcentos.qcow2+  * Check VM image size. You can see in the first column the size grow and shrink after fstrim. <​code>​$ ls -ls vmcentos.qcow2
 1226824 -rw-r--r-- 1 nobody kvm 1256325120 Dec  2 21:59 vmcentos.qcow2 1226824 -rw-r--r-- 1 nobody kvm 1256325120 Dec  2 21:59 vmcentos.qcow2
 1355912 -rw-r--r-- 1 nobody kvm 1388511232 Dec  2 21:59 vmcentos.qcow2 1355912 -rw-r--r-- 1 nobody kvm 1388511232 Dec  2 21:59 vmcentos.qcow2
kvm_recover_space_from_vm.txt ยท Last modified: 2014/12/02 22:06 by admin