以下技术应用于最优质的水果的鲜果篮
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..
如何从服务器中移除Gluster FS卷并恢复共享目录
本文详细介绍了如何在Gluster集群的所有服务器上移除一个Gluster FS卷,并通过一系列步骤确保共享目录的安全恢复。
2559

被折叠的 条评论
为什么被折叠?



