以下技术应用于最优质的水果的鲜果篮
To remove the GlusterFS Volume from the servers following steps need to be followed:
These Steps need to be followed on all the servers which are part of gluster Cluster:
[root@ip-10-138-150-225 ~]# setfattr -x trusted.glusterfs.volume-id /data/share
[root@ip-10-138-150-225 ~]# setfattr -x trusted.gfid /data/share
[root@ip-10-138-150-225 ~]# service glusterd stop
[ OK ]
[root@ip-10-138-150-225 ~]# cd /data/share/
[root@ip-10-138-150-225 share]# ls -a
. .. a1 a2 a3 b1 b2 b3 c1 c2 c3 c4 d1 d2 d3 .glusterfs
[root@ip-10-138-150-225 share]# rm -rf .glusterfs
[root@ip-10-138-150-225 share]# ls
a1 a2 a3 b1 b2 b3 c1 c2 c3 c4 d1 d2 d3
[root@ip-10-138-150-225 share]# cd /var/lib/glusterd/
[root@ip-10-138-150-225 glusterd]# ls
glusterd.info glustershd groups hooks nfs options peers vols
[root@ip-10-138-150-225 glusterd]# rm -rf *
[root@ip-10-138-150-225 glusterd]# service glusterd start
Starting glusterd: [ OK ]
/data/share : Is the directory for which gluster is setup..
.glusterfs : Is the directory where all meta data is stored so it need to be removed..
/var/lib/glusterd/ : Directory where volume information is stored..
Note don't delete the all files in /var/lib/glusterd/ if you have more than one gluster volume configured in server..