ceph维护

1.ceph 监控

1.1 dashboard

安装ceph-mgr-dashboard

apt install ceph-mgr-dashboard -y

开启dashboard

ceph --cluster $cluster-name mgr module enable dashboard

关闭ssl,需要ssl访问的可以根据官网文档配置

ceph --cluster $cluster-name config set mgr mgr/dashboard/ssl false

配置端口和ip

ceph --cluster $cluster-name config set mgr mgr/dashboard/server_addr 192.168.1.212 
ceph --cluster $cluster-name config set mgr mgr/dashboard/server_port 8080

设置账号密码

echo "20221206Day" > password.txt
ceph --cluster $cluster-name dashboard ac-user-create admin -i password.txt administrator

1.2 prometheus

开启prometheus

ceph --cluster $cluster-name mgr module enable prometheus

浏览器访问

http://192.168.1.212:9283/metrics

查看mgr模块

ceph --cluster $cluster-name mgr module ls

2.osd添加删除

官方文档:Add/Remove OSDs.

3.mon添加删除

3.1 mon添加

mon添加参考mon扩展即可

3.2 mon删除

This procedure removes a ceph-mon daemon from your cluster. If thisprocedure results in only two monitor daemons, you may add or remove anothermonitor until you have a number of ceph-mon daemons that can achieve aquorum.

Stop the monitor:

service ceph -a stop mon.{mon-id}

Remove the monitor from the cluster:

ceph mon remove {mon-id}

Remove the monitor entry from ceph.conf.

官网指南:Add/Remove Monitors

七、参考文档

https://docs.ceph.com/en/quincy/install/index_manual/#install-manual

https://www.bilibili.com/video/av883112761/?vd_source=f8e32059b89cb60fea9c91a34d57c648

https://tracker.ceph.com/issues/48581

Add/Remove Monitors

Add/Remove OSDs.

https://blog.csdn.net/jycjyc/article/details/123025061

https://www.ityww.cn/1701.html

https://docs.ceph.com/en/latest/start/quick-rbd/

https://blog.csdn.net/jycjyc/article/details/123025061

https://www.ityww.cn/1701.html

http://www.manongjc.com/detail/57-djpophhpveozany.html

https://blog.csdn.net/m0_64417032/article/details/124914570

https://blog.csdn.net/lyf0327/article/details/103666029

https://blog.csdn.net/eagle89/article/details/111370300

Previous Post

linux挂载ceph块存储

Next Post

ceph安装

Related Posts