title: Extend GlusterFS on top of LVM
body: <p>I need to add more space to one of our gluster volumes. The volumes are replica 2 and sit on top of an LVM. The file system is XFS. The current size is 4TB and I want to resize to 6TB. The LVM has enough Free PEs on both replica servers.</p>
  
  <pre><code>  --- Physical volume ---
    PV Name               /dev/sdb
    VG Name               gluster
    PV Size               10,91 TiB / not usable 4,00 MiB
    Allocatable           yes
    PE Size               4,00 MiB
    Total PE              2861183
    Free PE               1633407
    Allocated PE          1227776
    PV UUID               F3CwNm-dceK-ezPY-7w12-OYT5-FLAH-U0a239
  </code></pre>
  
  <p>-</p>
  
  <pre><code>  --- Physical volume ---
    PV Name               /dev/sdb
    VG Name               gluster
    PV Size               10,91 TiB / not usable 4,00 MiB
    Allocatable           yes
    PE Size               4,00 MiB
    Total PE              2861183
    Free PE               1618047
    Allocated PE          1243136
    PV UUID               dWDEgF-0brq-9e6r-eqpO-jTeK-GJfb-c3MGbE
  </code></pre>
  
  <p>I've read somewhere, that it's enough to extend the LVM and to resize the FS on both hosts. </p>
  
  <pre><code># lvextend -L +2T &lt;lvm&gt;
  # xfs_growfs &lt;lvm mountpoint&gt;
  </code></pre>
  
  <p>I know that XFS has to be reseize while it's mounted. The LVM can also be resized during operations (although not recommended). And I've read somewhere that GlusterFS will automatically adapt to the new volume size as soon as both/all volumes have the new size.</p>
  
  <p>Since the storage is used in an productive environment it's important to do this on the fly.</p>
  
  <p><strong>Has anyone any experience with this combination or can confirm that my approach is correct?</strong></p>
  
  <p>Thanks in advance.</p>