How to add new brick to replicated GlusterFS volume on Linux

How to add new brick to replicated GlusterFS volume on Linux

To add a new brick to a replicated GlusterFS volume on Linux, you will need to follow these steps:

  1. Install GlusterFS on the new server. If GlusterFS is not already installed on the new server, you will need to install it. You can install GlusterFS using your package manager or by compiling the source code.

  2. Create a new brick on the new server. A brick is a directory that stores data in a GlusterFS volume. Create a new brick on the new server using the mkdir command.

For example:

refer t‮al:o‬utturi.com
mkdir /bricks/brick1
  1. Start the GlusterFS daemon on the new server. Use the systemctl command to start the GlusterFS daemon on the new server:
systemctl start glusterd
  1. Add the new brick to the GlusterFS volume. On the existing GlusterFS server, use the gluster command to add the new brick to the GlusterFS volume. Specify the name of the volume, the new server hostname, and the path to the new brick as arguments.

For example, if the name of the volume is vol0, the hostname of the new server is server2, and the path to the new brick is /bricks/brick1, you can add the new brick to the volume using the following command:

gluster volume add-brick vol0 server2:/bricks/brick1
  1. Start the GlusterFS volume. Use the gluster command to start the GlusterFS volume:
gluster volume start vol0

This will add the new brick to the GlusterFS volume and start the volume.

Created Time:2017-10-28 21:38:57  Author:lautturi