Scale your Gluster Cluster, 1 node at a time!!

Amar Tumballi
Sep 27, 2017 · 4 min read

Step 1: Create volume with more bricks than the number of hosts.

n1$ gluster peer probe n2
n1$ gluster peer probe n3
n1$ gluster volume create demo replica 3 n1:/br/b1 n2:/br/b1 n3:/br/b1 n1:/br/b2 n2:/br/b2 n3:/br/b2 n1:/br/b3 n2:/br/b3 n3:/br/b3 n1:/br/b4 n2:/br/b4 n3:/br/b4 n1:/br/b5 n2:/br/b5 n3:/br/b5 n1:/br/b6 n2:/br/b6 n3:/br/b6 n1:/br/b7 n2:/br/b7 n3:/br/b7 n1:/br/b8 n2:/br/b8 n3:/br/b8

Step 2: Start the volume, and consume the storage

Step 3: Add new node to cluster, and expand your storage!

n1$ gluster peer probe n4
n1$ gluster volume demo replace-brick n1:/br/b2 n4:/br/b2
n1$ gluster volume demo replace-brick n1:/br/b6 n4:/br/b6
n1$ gluster volume demo replace-brick n2:/br/b3 n4:/br/b3
n1$ gluster volume demo replace-brick n2:/br/b7 n4:/br/b7
n1$ gluster volume demo replace-brick n3:/br/b4 n4:/br/b4
n1$ gluster volume demo replace-brick n3:/br/b8 n4:/br/b8

Step 4: Happy Scaling!

Step 5: Grow!

n1$ gluster peer probe n5
n1$ gluster volume demo replace-brick n1:/br/b3 n5:/br/b3
n1$ gluster volume demo replace-brick n2:/br/b4 n5:/br/b4
n1$ gluster volume demo replace-brick n3:/br/b5 n5:/br/b5
n1$ gluster volume demo replace-brick n4:/br/b6 n5:/br/b6

NOTE:

Limitations and Concerns in this approach:

Amar Tumballi

Written by

#kannada #india #life #kadalu #gluster

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade