Part 2 – Distributed Volume on GlusterFS

Loading

In this blog, we will explore the distributed volume configuration of GlusterFS

Blog Series

Creating a Distributed Volume on an XFS Filesystem

We’ll next create a distributed volume on a new disk and will configure this as an XFS filesystem.

How to mount an xfs file system

Creating a Distributed Volume

In a distributed volume files are spread randomly across the bricks in the volume so that means in short no redundancy is provided at hardware layers and data is just spread around as shown

Source: gluster.org

Create a Gluster FS Volume

Verify the Gluster volume info

As seen, we can now notice that in distributed volume my data is split on every server participating in my cluster.

Start the volume

Mount the GlusterFS

With all this in place, we can test the GlusterFS distributed file system. On gluster01, gluster02, and gluster03 issue the command to mount the GlusterFS volume to a mount point. I’ve created a new directory named as /demo so we will mount our F.S to it.

Accessing Data – Setting Up GlusterFS Client

There are several ways you can mount the GlusterFS – ( NFS, CIFS, and Gluster FS ) are all supported. In this demo, we will just stick with the default glusterfs client.

Mount the distributed file system with the command:

Automatically Mounting Volumes

You can configure your system to automatically mount the Gluster volume each time your system starts.

Testing the Filesystem

With all this in place, i will just put a small for loop to create several files from my client

Verification from Gluster level

I can see all my files on all my cluster nodes

GlusterFS distributed file system is finally up and running.

(Visited 45 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.