<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Logical-Volume-Management on despatches</title><link>https://icle.es/tags/logical-volume-management/</link><description>Recent content in Logical-Volume-Management on despatches</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 18 Mar 2026 15:13:17 +0000</lastBuildDate><atom:link href="https://icle.es/tags/logical-volume-management/index.xml" rel="self" type="application/rss+xml"/><item><title>Expanding glusterfs volumes [1112]</title><link>https://icle.es/2011/12/20/expanding-glusterfs-volumes-1112/</link><pubDate>Tue, 20 Dec 2011 13:26:55 +0000</pubDate><guid>https://icle.es/2011/12/20/expanding-glusterfs-volumes-1112/</guid><description>&lt;p>&lt;a href="https://icle.es/2011/11/24/glusterfs-howto/" title="GlusterFS HOWTO [1108]">Once you have set up a glusterfs volume&lt;/a>,
you might want to expand the volume to add storage. This is an astoundingly easy
task.&lt;/p>
&lt;p>The first thing that you&amp;rsquo;ll want to do is to add in bricks. Bricks are similar
to physical volumes a la LVM. The thing to bear in mind is that depending on
what type of cluster you have (replicated / striped), you will need to add a
certain number of blocks at a time.&lt;/p></description><content:encoded><![CDATA[<p><a href="https://icle.es/2011/11/24/glusterfs-howto/" title="GlusterFS HOWTO [1108]">Once you have set up a glusterfs volume</a>,
you might want to expand the volume to add storage. This is an astoundingly easy
task.</p>
<p>The first thing that you&rsquo;ll want to do is to add in bricks. Bricks are similar
to physical volumes a la LVM. The thing to bear in mind is that depending on
what type of cluster you have (replicated / striped), you will need to add a
certain number of blocks at a time.</p>
<p>Once you have a initialised the nodes, to add in a set of bricks, you need the
following command which adds two more bricks to a cluster which keeps two
replicas.</p>
```bash
$ gluster volume add-brick testvol cserver3:/gdata cserver4:/gdata
```
<p>Once you have done this, you will need to rebalance the cluster, which involves
redistributing the files across all the bricks. There are two steps to this
process, the &ldquo;fixing&rdquo; of the layout changes and the rebalancing of the data
itself. You can perform both tasks together.</p>
<p>As a starting point, to view the status of a rebalance, you can use:</p>
```bash
$ gluster volume rebalance testvol status
```
<p>You can also stop / pause a rebalance with</p>
```bash
$ gluster volume rebalance testvol stop
```
<p>To &ldquo;fix&rdquo; the layout changes, you need to run:</p>
```bash
$ gluster volume rebalance testvol fix-layout start
Starting rebalance on volume test-volume has been successful
```
<p>Rebalancing the volume to migrate the data is easy and can be done using a
similar command:</p>
```bash
$ gluster volume rebalance testvol migrate-data start
```
<p>To complete both in one command, you just need:</p>
```bash
$ gluster volume rebalance testvol start
```
<p>Easy right?</p>
<p>With this mechanism, you have the ability to have storage that can be expanded
on the fly by using additional hardware. You can also remove existing bricks
using:</p>
```bash
$ gluster volume remove-brick testvol cserver2:/gdata
```
<p>This means that you can remove a brick with smaller hard drives, upgrade the
harddrives, and re-integrate into the cluster with bigger hard drives. This
means that you have a cloud like storage solution which you can easily grow as
necessary without worrying about resizing underlying filesystems or hotswapping
hardisks or any of that hassle.</p>
]]></content:encoded></item></channel></rss>