Ceph - Dashboard
环境:
IP地址 | 主机名 |
---|---|
192.168.118.14 | ceph-node1 |
192.168.118.15 | ceph-node2 |
192.168.118.16 | ceph-node3 |
192.168.118.17 | ceph-client |
Ceph 版本:ceph version 14.2.10 nautilus (stable)
注意:所有节点更新为最新内核版本!
[root@ceph-node1 ~]#ceph -s
cluster:
id: 2bfda893-adf6-4396-8f1a-035fda5afbe3
health: HEALTH_OK
services:
mon: 3 daemons, quorum ceph-node1,ceph-node2,ceph-node3 (age 4h)
mgr: ceph-node1(active, since 4h)
osd: 3 osds: 3 up (since 4h), 3 in (since 4h)
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 3.0 GiB used, 6.0 TiB / 6.0 TiB avail
pgs:
创建 dashboard
安装 ceph-mgr-dashboard
[root@ceph-node1 ~]#yum install ceph-mgr-dashboard -y
开启 dashboard module
[root@ceph-node1 ~]#ceph mgr module enable dashboard
禁止 SSL
(这里没必要使用不信任的https)
[root@ceph-node1 ~]#ceph config set mgr mgr/dashboard/ssl false
设置监听地址和端口
[root@ceph-node1 ~]#ceph config set mgr mgr/dashboard/server_addr 0.0.0.0
[root@ceph-node1 ~]#ceph config set mgr mgr/dashboard/server_port 8080
设定用户名和密码
[root@ceph-node1 ~]#ceph dashboard set-login-credentials admin admin
******************************************************************
*** WARNING: this command is deprecated. ***
*** Please use the ac-user-* related commands to manage users. ***
******************************************************************
Username and password updated
查看 mgr 访问路径
# 重新启动 mgr 服务
[root@ceph-node1 ~]#systemctl restart ceph-mgr@*
[root@ceph-node1 ~]#ceph mgr services
{
"dashboard": "http://ceph-node1:8080/"
}
通过浏览器访问
通过 dashboard
可以进行很多操作 比如 osd
、pool
都可以通过 dashboard
直接进行管控。