Importing a Gluster Volume to Kadalu Storage

Posted on Jan 25, 2022 by Aravinda Vishwanathapura

3 minutes read.

Gluster Storage and Kadalu Storage share the same filesystem backend that is GlusterFS. Which makes it natural to think about migrating a Gluster Volume to Kadalu Volume.

Luckily both Kadalu Storage and Gluster Storage can co-exist. To experience Kadalu Storage, you can identify one Volume from the Gluster Cluster and migrate it to Kadalu Storage. At the end of this blog post I will also show how you can go back to Gluster’s way of managing that Volume.

Create a Volume in Gluster Cluster (I am skipping all the Peer probe steps and directly jump to creating the Volume)

# gluster volume create vol1 replica 3   \ \ \

Gluster CLI doesn’t support importing or creating a volume by specifying volume ID. Do not delete the Gluster Volume after migrating to Kadalu Storage. Keep the Gluster Volume in Stopped state.

Start Kadalu Storage manager in all Gluster Storage nodes, in this example Start in server1, server2 and server3.

# systemctl enable kadalu-mgr
# systemctl start kadalu-mgr

Login to any one server and create a Storage Pool, Example PROD

server1# kadalu pool create PROD

Manual Migration

Get the Volume ID by running the command, gluster volume info vol1. And use that Volume ID with Kadalu command as shown below (Note the Brick paths are unchanged)

$ kadalu volume create PROD/vol1                     \
      replica   \
    --volume-id ea4fc0b9-f63b-4621-8c50-838e02ef08df

Using migration Helper

Import Gluster Volume

Run the Gluster Volume info XML and then pipe it to the Kadalu Volume create command.

# gluster volume info vol1 --xml | kadalu volume create PROD/- \

This helper parses the Volume info and understands the Volume options used, type of Volume and many other details to recreate the Kadalu Volume. (Note: Volume Options support is a upcoming feature of Kadalu Storage)

If the node names used for Gluster are different from the ones to use with Kadalu then use the --node-map option.

# gluster volume info vol1 --xml | kadalu volume create PROD/- \
    --auto-add-nodes                                           \
    --node-map=""         \
    --node-map=""         \

To import all Volumes,

# gluster volume list | xargs                               \
    gluster volume info --xml | kadalu volume create PROD/- \

Kadalu Volumes are started by default on creation. If you want to stop using Kadalu and move back to Glusterd based Volume management, Stop the Kadalu Volume and Start the Gluster Volume. That’s all!

$ kadalu volume stop PROD/vol1
# gluster volume start vol1

About Aravinda Vishwanathapura

Co-Founder, CTO - Kadalu Technologies

Website| Twitter| Github