Wondering how to delete a volume in Gluster? Take a peek at this blog.
Gluster volume delete is the command that we use to delete the gluster volumes. However, this doesn’t delete the data from the back-end.
Here at Bobcares, we receive gluster related queries as part of our Server Management Services for web hosts and online service providers.
Today, let’s see how our Support Engineers do this.
Know more about gluster volume
Gluster is a distributed file system that gathers disk storage resources from multiple servers into a single global namespace.
A volume is a logical collection of bricks where each brick is an export directory on a server in the trusted storage pool.
There are different types of volumes, they are distributed, replicated, distributed replicated, dispersed, and distributed dispersed.
Gluster volumes are made up of one or more gluster bricks. Each gluster brick is contained within a storage pool. In case, if we delete the gluster volume without deleting the gluster bricks then we can manually migrate the data into another gluster volume. Or we could manually convert the bricks into standard network shares by renaming them at the console.
How we delete gluster volume
Now, let’s see how our Support Engineers help our customers in deleting the gluster volume.
Generally, we use the below command to delete a specified gluster volume.
gluster volume delete <VOLNAME>
After running the above command, we will receive a confirmation message to enter yes or no as shown in the below image.
We need to enter the Y to confirm the operation. Then we will receive a successful message as below.
Deleting <VOLNAME> has been successful
However, running the above command will retain the data unless we delete the bricks. Hence, this will not delete the data from the back-end.
So to manually, delete from the bricks we can run the below command.
rm -rf /gfs/vol-name/
[Still, having trouble in managing GlusterFS? – We can help you.]
Conclusion
So far, we saw about gluster volume. We also saw how our Support Engineers remove the gluster volume via command line.
0 Comments