How to remove GlusterFS Volumes

本文详细介绍了如何在Gluster集群的所有服务器上移除一个Gluster FS卷,并通过一系列步骤确保共享目录的安全恢复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

以下技术应用于最优质的水果的鲜果篮

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..
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值