删除ceph(集群部署)
1.停止 Ceph 服务
每个节点都要执行
systemctl stop ceph.target
执行了上面的命令后,下面的这些进程也会自动停掉了的
systemctl status ceph-mon@master
systemctl status ceph-mon@node1
systemctl status ceph-mon@node2
systemctl status ceph-mgr@master
systemctl status ceph-mgr@node1
systemctl status ceph-mgr@node2
2.卸载 Ceph 包
每个节点上执行
[root@master ceph]#yum remove ceph-common ceph-mon ceph-osd ceph ceph-deploy
执行完成后,使用如下命令查看是否删除完
[root@master ceph]#rpm -qa|grep ceph
3.删除 Ceph 配置文件
每个节点都要操作
发现执行完上面的命令后,如下目录会自动删除了
rm -rf /etc/ceph
4.删除 Ceph 数据和日志文件:这一步是最重要的,因为它涉及到删除 Ceph 集群的数据。
每个节点都要执行
rm -rf /etc/ceph/*
rm -rf /var/lib/ceph/*
rm -rf /var/log/ceph/*
rm -rf /var/run/ceph/*
5.重启
每个节点都要重启