<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>XFS on nagg.eu</title><link>https://nagg.eu/tags/xfs/</link><description>Recent content in XFS on nagg.eu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 05 Dec 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://nagg.eu/tags/xfs/index.xml" rel="self" type="application/rss+xml"/><item><title>Resize QCOW2 disk image</title><link>https://nagg.eu/resize-qcow2-disk-image/</link><pubDate>Wed, 05 Dec 2018 00:00:00 +0000</pubDate><guid>https://nagg.eu/resize-qcow2-disk-image/</guid><description>&lt;p&gt;QCOW2 disk images can be easily grown using libvirt command line utils.&lt;br&gt;
Unfortunately it isn&amp;rsquo;t possible to grow QCOW2 images in-place or online.&lt;br&gt;
First of all, power off the virtual machine, grow the file and make a copy of
it:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
$ qemu-img resize image.qcow2 +200G
$ cp image.qcow2 image-new.qcow2
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Identify the specific partion you intend to grow:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
$ virt-filesystems -a image.qcow2 -l
Name Type VFS Label Size Parent
/dev/sda1 filesystem ext4 - 536870912 -
/dev/sda3 filesystem xfs - 45885612000 -
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Expand the actual partition:&lt;/p&gt;</description></item><item><title>Defragment XFS file system</title><link>https://nagg.eu/defragment-xfs-file-system/</link><pubDate>Wed, 20 Jan 2016 18:18:18 +0000</pubDate><guid>https://nagg.eu/defragment-xfs-file-system/</guid><description>&lt;p&gt;XFS just like EXT4 (&lt;!-- raw HTML omitted --&gt;I wrote a post about it last year&lt;!-- raw HTML omitted --&gt;) supports online defragmentation, to manage those volumes on CentOS and Fedora &lt;code&gt;xfsprogs&lt;/code&gt; package is needed.&lt;br&gt;
Fragmentation level of XFS volumes can be checked with the command:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;[root@CentOS ~]$ xfs_db -c frag -r /dev/sdb1
actual 4491, ideal 4006, fragmentation factor 10.80%
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To perform online defragmentation of XFS volumes run the following command:&lt;/p&gt;</description></item></channel></rss>