Gluster commands
In this section, we will look at the commands for performing various tasks for GlusterFS in Proxmox.
How to do it…
The following steps demonstrate the various commands that are used to perform various tasks for GlusterFS in Proxmox:
Use the following command to create a Gluster volume in a replicated mode:
# gluster volume create <name> replica [count] <destination_brick 1> <destination_brick 2> <…>
Creating a Gluster volume named
testgfs
with two replicas would be as follows:#gluster volume create testgfs replica 2 172.16.0.72:/mnt/gfs/testgfs 172.16.0.73:/mnt/gfs/testgfs
The following screenshot shows the output of the Gluster volume creation process:
Use the following command to see a list of Gluster volumes:
# gluster volume list
Use the following command to start and stop the Gluster volume:
# gluster volume [start|stop] <volume>
Use the following command to check the status of Gluster peer nodes:
# gluster peer status
Use the following command...