using fstrim to save some space in cloud images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey all,

Have we considered running fstrim against our cloud image filesystems
before we package it up? I wrote a small script to do it (inside a
container) at [1]. Looks like we can save ~28M:

[root@f22 xzimg]# ls -lh ./
total 1.3G
-rw-r--r--. 1 root root 3.0G May 22 00:13 orig.raw
-rw-r--r--. 1 root root 147M May 22 00:13 orig.raw.xz
-rw-r--r--. 1 root root 3.0G Jun 17 16:52 trimmed.raw
-rw-r--r--. 1 root root 129M Jun 17 17:21 trimmed.raw.xz
[root@f22 xzimg]# du -sh ./*
517M    ./orig.raw
147M    ./orig.raw.xz
489M    ./trimmed.raw
129M    ./trimmed.raw.xz

[1] - https://gist.github.com/dustymabe/ad4be48c948c2e601b85
_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Big List of Linux Books]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux