ceph的正常卸载与非正常卸载
一、ceph的正常卸载与非正常卸载
一、正常卸载(通过ceph-deploy卸载)
环境已安装ceph-deploy
1、查看ceph-deploy的帮助信息
[cephde@controller03 cephcluster]$ ceph-deploy -h
usage: ceph-deploy [-h] [-v | -q] [--version] [--username USERNAME]
[--overwrite-conf] [--ceph-conf CEPH_CONF]
COMMAND ... Easy Ceph deployment -^-
/ \
|O o| ceph-deploy v2.0.1
).-.(
'/|||\`
| '|` |
'|` Full documentation can be found at: http://ceph.com/ceph-deploy/docs optional arguments:
-h, --help show this help message and exit
-v, --verbose be more verbose
-q, --quiet be less verbose
--version the current installed version of ceph-deploy
--username USERNAME the username to connect to the remote host
--overwrite-conf overwrite an existing conf file on remote host (if
present)
--ceph-conf CEPH_CONF
use (or reuse) a given ceph.conf file commands:
COMMAND description
new Start deploying a new cluster, and write a
CLUSTER.conf and keyring for it.
install Install Ceph packages on remote hosts.
rgw Ceph RGW daemon management
mgr Ceph MGR daemon management
mds Ceph MDS daemon management
mon Ceph MON Daemon management
gatherkeys Gather authentication keys for provisioning new nodes.
disk Manage disks on a remote host.
osd Prepare a data disk on remote host.
repo Repo definition management
admin Push configuration and client.admin key to a remote
host.
config Copy ceph.conf to/from remote host(s)
uninstall Remove Ceph packages from remote hosts.
purgedata Purge (delete, destroy, discard, shred) any Ceph data
from /var/lib/ceph
purge Remove Ceph packages from remote hosts and purge all
data.
forgetkeys Remove authentication keys from the local directory.
pkg Manage packages on remote hosts.
calamari Install and configure Calamari nodes. Assumes that a
repository with Calamari packages is already
configured. Refer to the docs for examples
(http://ceph.com/ceph-deploy/docs/conf.html) See 'ceph-deploy <command> --help' for help on a specific command
2、软件环境:集群——三个节点
1、卸载软件包
ceph-deploy purge controller01
ceph-deploy purge controller02
ceph-deploy purge controller03
2、删除各种配置文件和生成的数据文件
ceph-deploy purgedata controller01
ceph-deploy purgedata controller02
ceph-deploy purgedata controller03
3、将卸载节点的认证密钥从本地目录移除
ceph-deploy forgetkeys<br><br>#检查ceph-mon是否启动
ps -ef|grep ceph or ps -A|grep ceph<br><br>#启动ceph-mon
ceph-mon --id=
2、软件环境:单节点
ceph-deploy purge controller01
ceph-deploy purgedata controller01
ceph-deploy forgetkeys
二、非正常卸载
1、ceph安装失败,想从头再来,不用删除客户端。可以使用下面的命令将环境恢复到刚安装完客户端的状态。
ps aux|grep ceph |awk '{print $2}'|xargs kill -
ps aux|grep ceph |awk '{print $2}'|xargs kill -
ps -ef|grep ceph
确保此时所有ceph进程都已经关闭!!!如果没有关闭,多执行几次。
2、如果想彻底清除环境,而不是想重新安装。那么ceph软件包也要卸载
umount /var/lib/ceph/ osd /*
rm -rf /var/lib/ceph/ osd /*
rm -rf /var/lib/ceph/ mon /*
rm -rf /var/lib/ceph/ mds /*
rm -rf /var/lib/ceph/bootstrap- mds /*
rm -rf /var/lib/ceph/bootstrap- osd /*
rm -rf /var/lib/ceph/bootstrap- mon /*
rm -rf /var/lib/ceph/ tmp /*
rm -rf /etc/ceph/*
rm -rf /var/run/ceph/*
3、查看安装哪些ceph相关的包
# rpm -qa|grep ceph
ceph-base-12.2.-.el7.x86_64
centos-release-ceph-luminous-1.1-.el7.centos.noarch
ceph-mgr-12.2.-.el7.x86_64
ceph-mds-12.2.-.el7.x86_64
libcephfs2-12.2.-.el7.x86_64
ceph-12.2.-.el7.x86_64
ceph-common-12.2.-.el7.x86_64
ceph-mon-12.2.-.el7.x86_64
ceph-radosgw-12.2.-.el7.x86_64
ceph-deploy-2.0.-.noarch
python-cephfs-12.2.-.el7.x86_64
ceph-osd-12.2.-.el7.x86_64
ceph-selinux-12.2.-.el7.x86_64
4、卸载
yum remove ceph
三、ceph 更换controller3 服务器,ceph需要处理的地方
1、删除ceph-mon
ceph mon remove mon3
2、移除osd
ceph osd rm osd.
ceph osd rm osd.
ceph osd rm osd.
ceph osd crush rm osd.
ceph osd crush rm osd.
ceph osd crush rm osd.
ceph auth del osd.
ceph auth del osd.
ceph auth del osd.
ceph的正常卸载与非正常卸载的更多相关文章
- 非正常卸载Chrome浏览器导致无法重新安装
昨晚在使用selenium的时候,Chrome浏览器和Chromedriver.exe不兼容,前几天使用的时候都没问题,查看浏览器版本后发现浏览器已经自动升级为67版本(我之前安装的是61版本). 于 ...
- 卸载、指定卸载 .NET Core Runtime and SDK
原文:卸载.指定卸载 .NET Core Runtime and SDK 项目使用的 Nuget 包,比如 Microsoft.AspNetCore.App等的版本号要与 .NET Core 版本号( ...
- CentOS下如何完全卸载MySQL?卸载自带的mysql
CentOS下如何完全卸载MySQL?解决卸载不干净的问题 系统:CentOS 6.5,MySQL:MySql 5.6 这里主要解决使用rpm安装的卸载问题,安装方法见:CentOS安装mysql*. ...
- 【卸载】oracle卸载
Oracle卸载比较麻烦,不能简单卸载就完成了,有时没有卸载完整,下次安装不能很好的安装: 当然Oracle卸载也没有那么难,只是步骤比较多.Oracle10g还是Oracle11g卸载步骤都是一样的 ...
- eclipse svn插件卸载 重新安装 Subclipse卸载安装 The project was not built since its build path is incomplete This client is too old to work with the working copy at
安装插件的原则就是,要按照规则,插件与本地的svn版本要一致, 这样子本地和eclipse上面就可以无缝使用,不会出现问题 1.卸载eclipse svn插件 2,安装新版的svn插件 2.1,下载 ...
- 【Oracle安装卸载】oracle卸载
Oracle卸载比较麻烦,不能简单卸载就完成了,有时没有卸载完整,下次安装不能很好的安装: 当然Oracle卸载也没有那么难,只是步骤比较多.Oracle10g还是Oracle11g卸载步骤都是一样的 ...
- Oracle卸载之正确卸载rac数据库的方法(MOS卸载方法)
一.关闭数据库和资源 1.节点1 [root@node1 bin]# pwd /u01/app/11.2.0/grid/bin [root@node1 bin]# ./crsctl stop crs ...
- 【强力卸载】使用Uninstall Tool卸载各类不易卸载的软件
Uninstall Tool 经测试卸载MySql5.7.18成功. 下载地址: http://files.cnblogs.com/files/xiaohi/%E3%80%90%E8%BD%AF%E4 ...
- mysql 5.7.20 在线安装与卸载(yum卸载与rpm卸载方式)
mysql5.7.20和之前的5.7.16版本不同,解压后没有data文件,需要自己建立 1.把下载的mysql5.7.20放到目录:/usr/local/2.卸载cenos上预装的mysql查看已安 ...
随机推荐
- Shell的类型
1.类Unix系统中有各种shell.如: /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh 2.在/etc/shells文本文件中可以查看 ...
- [原创]基于Zynq AXI-GPIO Standalone & Linux 例程
基于Zynq AXI-GPIO Standalone & Linux 例程 待添加完善中
- Spring Boot thymeleaf模版支持,css,js等静态文件添加
Thymeleaf引入 Thymeleaf是一个Java模板引擎开发库,可以处理和生成HTML.XML.JavaScript.CSS和文本,在Web和非Web环境下都可以正常工作. 1.添加依赖包 & ...
- pyspider和pyquery总结
1.参考 pyspider作者官网: pyspider 爬虫教程(一):HTML 和 CSS 选择器 pyspider 爬虫教程(二):AJAX 和 HTTP pyspider 爬虫教程(三):使用 ...
- ECMAScript6 入门-let与const命令
块级作用域 1:let命令声明的变量只在let命令所在的代码块有效--简而言之 大括号既是代码块,也就是说存在块级作用域了. { let a =10; var b =1; } a // Referen ...
- Handler Looper 解析
文章讲述Looper/MessageQueue/Handler/HandlerThread相关的技能和使用方法. 什么是Looper?Looper有什么作用? Looper是用于给线程(Thread) ...
- LCA的在线与离线算法
在线:链接 离线:链接
- js 对时间进行判断 现在的时间是否在后台给的开始时间 和 结束时间 内 (时间格式为:2018-09-03 09:20:30)
function status(item){ let now = Date.parse(new Date()); let startString = Date.parse(new Date(Date. ...
- python文本读写数据
# 写方法1 f = open('tmp.txt','w') f.write('hello world') f.close() # 写方法2 with open('tmp.txt','w') as f ...
- 【BZOJ1103】大都市 解题报告
题目传送门 打算5分钟写完题解 题目大意 有一棵n个点的有根树, 初始时每条边均为红色,有两种操作: 把某条边染为蓝色 统计根到某一点路径上的红边数量 思路 用\(a_i\)表示根到点i路径上的红边数 ...