@H_404_1@[问题]
[解答] @H_404_1@[问题] 删除 ceph-node1上的osd.4节点的方法?
[解答]
ceph-admin-node@ceph-admin-node:~/my-cluster$ ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0.07149 root default
-2 0.02859 host ceph-node2
0 0.01430 osd.0 down 0 1.00000
2 0.01430 osd.2 up 1.00000 1.00000
-3 0.01430 host ceph-node3
1 0.01430 osd.1 down 0 1.00000
-4 0.01430 host ceph-node1
4 0.01430 osd.4 up 1.00000 1.00000
-5 0.01430 host ceph-client-node
3 0.01430 osd.3 up 1.00000 1.00000 @H_404_1@ceph-admin-node@ceph-admin-node:~/my-cluster$ ssh ceph-node1
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-31-generic x86_64)
Run ‘do-release-upgrade’ to upgrade to it. @H_404_1@Last login: Sun Feb 26 11:28:25 2017 @H_404_1@将 osd.4 设置为 out 状态
ceph osd out osd.4 @H_404_1@停止 ceph-node1 上的 osd.4 的服务进程
@H_301_54@sudostopceph−osdid=4ceph−osdstop/waiting
ceph osd tree 查看 osd.4 进入到 down 状态。
harvis@ceph-node1:~
cephosdtreeIDWEIGHTTYPENAMEUP/DOWNREWEIGHTPRIMARY−AFFINITY−10.04289rootdefault@H_22_403@−20.01430hostceph−node220.01430osd.2up1.000001.00000−30.01430hostceph−node330.01430osd.3up1.000001.00000−40.01430hostce@H_301_545@ph−node140.01430osd.4down01.00000将osd.4从crushmap中删除掉harvis@ceph−node1:
ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0.02859 root default
-2 0.01430 host ceph-node2
2 0.01430 osd.2 up 1.00000 1.00000
-3 0.01430 host ceph-node3
3 0.01430 osd.3 up 1.00000 1.00000
-4 0 host ceph-node1
-5 0 host ceph-client-node
0 0 osd.0 down 0 1.00000
1 0 osd.1 down 0 1.00000
4 0 osd.4 down 0 1.00000
执行 auth 删除命令
harvis@ceph-node1:~
cephauthdelosd.4updatedharvis@ceph−node1:
ceph osd rm 4
removed osd.4
删除 osd.4 对应的存储目录(这通常是个软链接)
sudo rm -fr /var/lib/ceph/osd/ceph-4
这里对应的实际目录是 /var/local/osd3/ 将它删除掉 sudo rm -fr /var/local/osd3 @H_404_1@[问题] heartbeat_map reset_timeout ‘OSD::osd_op_tp thread 0x7f104a89a700’ had timed out after 4 @H_404_1@[解答] @H_404_1@[问题] @H_404_1@[解答] @H_404_1@[问题] @H_404_1@[解答]
[解答] @H_404_1@[问题] 删除 ceph-node1上的osd.4节点的方法?
[解答]
ceph-admin-node@ceph-admin-node:~/my-cluster$ ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0.07149 root default
-2 0.02859 host ceph-node2
0 0.01430 osd.0 down 0 1.00000
2 0.01430 osd.2 up 1.00000 1.00000
-3 0.01430 host ceph-node3
1 0.01430 osd.1 down 0 1.00000
-4 0.01430 host ceph-node1
4 0.01430 osd.4 up 1.00000 1.00000
-5 0.01430 host ceph-client-node
3 0.01430 osd.3 up 1.00000 1.00000 @H_404_1@ceph-admin-node@ceph-admin-node:~/my-cluster$ ssh ceph-node1
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-31-generic x86_64)
- @H_404_1@Documentation: https://help.ubuntu.com/ @H_404_1@System information as of Sun Feb 26 11:28:25 CST 2017 @H_404_1@System load: 0.43 Processes: 115
Usage of /: 47.6% of 14.64GB Users logged in: 0
Memory usage: 26% IP address for eth0: 192.168.1.249
Swap usage: 0% @H_404_1@Graph this data and manage this system at:
https://landscape.canonical.com/
Run ‘do-release-upgrade’ to upgrade to it. @H_404_1@Last login: Sun Feb 26 11:28:25 2017 @H_404_1@将 osd.4 设置为 out 状态
ceph osd out osd.4 @H_404_1@停止 ceph-node1 上的 osd.4 的服务进程
harvis@ceph-node1:~
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0.02859 root default
-2 0.01430 host ceph-node2
2 0.01430 osd.2 up 1.00000 1.00000
-3 0.01430 host ceph-node3
3 0.01430 osd.3 up 1.00000 1.00000
-4 0 host ceph-node1
-5 0 host ceph-client-node
0 0 osd.0 down 0 1.00000
1 0 osd.1 down 0 1.00000
4 0 osd.4 down 0 1.00000
执行 auth 删除命令
harvis@ceph-node1:~
removed osd.4
删除 osd.4 对应的存储目录(这通常是个软链接)
sudo rm -fr /var/lib/ceph/osd/ceph-4
这里对应的实际目录是 /var/local/osd3/ 将它删除掉 sudo rm -fr /var/local/osd3 @H_404_1@[问题] heartbeat_map reset_timeout ‘OSD::osd_op_tp thread 0x7f104a89a700’ had timed out after 4 @H_404_1@[解答] @H_404_1@[问题] @H_404_1@[解答] @H_404_1@[问题] @H_404_1@[解答]