Shortened URL: http://ur1.ca/fopzs

  1. [root@xxxxxx ~]# mount /var/lib/libvirt/images
  2.  
  3. [root@xxxxxx ~]# lvs vgthin1
  4.   LV         VG      Attr      LSize   Pool       Origin Data%  Move Log Copy%  Convert
  5.   lvol1      vgthin1 Vwi-aotz- 100.78g lvthinpool          3.64                        
  6.   lvthinpool vgthin1 twi-a-tz- 100.68g                     3.65  
  7.                      
  8. [root@xxxxxx ~]# fstrim -v /var/lib/libvirt/images
  9. /var/lib/libvirt/images: 99.1 GiB (106451030016 bytes) trimmed
  10.  
  11. [root@xxxxxx ~]# dd if=/dev/zero of=/var/lib/libvirt/images/file bs=1M count=1024
  12. 1024+0 records in
  13. 1024+0 records out
  14. 1073741824 bytes (1.1 GB) copied, 0.497673 s, 2.2 GB/s
  15.  
  16. [root@xxxxxx ~]# dd if=/dev/zero of=/var/lib/libvirt/images/file1 bs=1M count=1024
  17. 1024+0 records in
  18. 1024+0 records out
  19. 1073741824 bytes (1.1 GB) copied, 1.5451 s, 695 MB/s
  20.  
  21. [root@xxxxxx ~]# dd if=/dev/zero of=/var/lib/libvirt/images/file2 bs=1M count=1024
  22. 1024+0 records in
  23. 1024+0 records out
  24. 1073741824 bytes (1.1 GB) copied, 3.671 s, 292 MB/s
  25.  
  26. [root@xxxxxx ~]# sync
  27.  
  28. [root@xxxxxx ~]# lvs vgthin1
  29.   LV         VG      Attr      LSize   Pool       Origin Data%  Move Log Copy%  Convert
  30.   lvol1      vgthin1 Vwi-aotz- 100.78g lvthinpool          4.63                        
  31.   lvthinpool vgthin1 twi-a-tz- 100.68g                     4.64
  32.                        
  33. [root@xxxxxx ~]# rm -f /var/lib/libvirt/images/file
  34.  
  35. [root@xxxxxx ~]# sync
  36.  
  37. [root@xxxxxx ~]# fstrim -v /var/lib/libvirt/images
  38. /var/lib/libvirt/images: 0 B (0 bytes) trimmed
  39.  
  40. [root@xxxxxx ~]# lvs vgthin1
  41.   LV         VG      Attr      LSize   Pool       Origin Data%  Move Log Copy%  Convert
  42.   lvol1      vgthin1 Vwi-aotz- 100.78g lvthinpool          4.63                        
  43.   lvthinpool vgthin1 twi-a-tz- 100.68g                     4.64  
  44.                      
  45. [root@xxxxxx ~]# rm -f /var/lib/libvirt/images/file*
  46.  
  47. [root@xxxxxx ~]# sync
  48.  
  49. [root@xxxxxx ~]# fstrim -v /var/lib/libvirt/images
  50. /var/lib/libvirt/images: 0 B (0 bytes) trimmed
  51.  
  52. [root@xxxxxx ~]# lvs vgthin1
  53.   LV         VG      Attr      LSize   Pool       Origin Data%  Move Log Copy%  Convert
  54.   lvol1      vgthin1 Vwi-aotz- 100.78g lvthinpool          4.63                        
  55.   lvthinpool vgthin1 twi-a-tz- 100.68g                     4.64    
  56.                    
  57. [root@xxxxxx ~]# dd if=/dev/zero of=/var/lib/libvirt/images/tempfile bs=1M count=40000
  58. 40000+0 records in
  59. 40000+0 records out
  60. 41943040000 bytes (42 GB) copied, 110.1 s, 381 MB/s
  61.  
  62. [root@xxxxxx ~]# sync
  63.  
  64. [root@xxxxxx ~]# lvs vgthin1
  65.   LV         VG      Attr      LSize   Pool       Origin Data%  Move Log Copy%  Convert
  66.   lvol1      vgthin1 Vwi-aotz- 100.78g lvthinpool         43.35                        
  67.   lvthinpool vgthin1 twi-a-tz- 100.68g                    43.39  
  68.                      
  69. [root@xxxxxx ~]# rm -f /var/lib/libvirt/images/tempfile
  70.  
  71. [root@xxxxxx ~]# sync
  72.  
  73. [root@xxxxxx ~]# fstrim -v /var/lib/libvirt/images
  74. /var/lib/libvirt/images: 0 B (0 bytes) trimmed
  75. [root@xxxxxx ~]# lvs vgthin1
  76.   LV         VG      Attr      LSize   Pool       Origin Data%  Move Log Copy%  Convert
  77.   lvol1      vgthin1 Vwi-aotz- 100.78g lvthinpool         43.35                        
  78.   lvthinpool vgthin1 twi-a-tz- 100.68g                    43.39  
  79.  
  80. [root@xxxxxx ~]# lvm version
  81.  
  82. lvm version
  83.   LVM version:     2.02.98(2) (2012-10-15)
  84.   Library version: 1.02.77 (2012-10-15)
  85.   Driver version:  4.24.0

Posted by Anonymous at 24 Sep 2013, 04:10:18 UTC
Language: bash


Powered by Sticky Notes. Using Fedora skin.
"Sticky Notes" (the web application) is released under the BSD license, Copyright © 2012 Sayak Banerjee.

"Fedora" and the Fedora logo are trademarks of Red Hat, Inc. The Fedora project is maintained and driven by the community. This is a community maintained site. Red Hat is not responsible for content.

Sponsors | Legal | Trademark Guidelines