一起来学ceph 06.ceph dashboard

ceph dashboard

环境

192.168.126.101 ceph01
192.168.126.102 ceph02
192.168.126.103 ceph03
192.168.126.104 ceph04
192.168.126.105 ceph-admin

192.168.48.11 ceph01
192.168.48.12 ceph02
192.168.48.13 ceph03
192.168.48.14 ceph04
192.168.48.15 ceph-admin
###所有节点内核版本要求4.5以上
uname -r
5.2.2-1.el7.elrepo.x86_64
[cephadm@ceph-admin ceph-cluster]$ ceph -s
  cluster:
    id:     231d5528-bab4-49fa-9d68-d5382d2e9f6c
    health: HEALTH_OK
 
  services:
    mon: 3 daemons, quorum ceph01,ceph02,ceph03 (age 3h)
    mgr: ceph04(active, since 2h), standbys: ceph03
    mds: cephfs:2 {0=ceph02=up:active,1=ceph01=up:active} 1 up:standby
    osd: 8 osds: 8 up (since 3h), 8 in (since 3h)
    rgw: 1 daemon active (ceph01)
 
  data:
    pools:   9 pools, 352 pgs
    objects: 251 objects, 14 MiB
    usage:   8.1 GiB used, 64 GiB / 72 GiB avail
    pgs:     352 active+clean

创建dashboard

所有节点安装ceph-mgr-dashboard

yum install -y ceph-mgr-dashboard

开启dashboard module

[cephadm@ceph-admin ceph-cluster]$ ceph mgr module ls |grep dashboard
            "name": "dashboard",
[cephadm@ceph-admin ceph-cluster]$ ceph mgr module enable dashboard

禁用ssl

[cephadm@ceph-admin ceph-cluster]$ ceph config set mgr mgr/dashboard/ssl false

设置监听地址和端口

[cephadm@ceph-admin ceph-cluster]$ ceph -s
  cluster:
    id:     231d5528-bab4-49fa-9d68-d5382d2e9f6c
    health: HEALTH_OK
 
  services:
    mon: 3 daemons, quorum ceph01,ceph02,ceph03 (age 3h)
    mgr: ceph04(active, since 5m), standbys: ceph03
    mds: cephfs:2 {0=ceph02=up:active,1=ceph01=up:active} 1 up:standby
    osd: 8 osds: 8 up (since 3h), 8 in (since 3h)
    rgw: 1 daemon active (ceph01)
 
  data:
    pools:   9 pools, 352 pgs
    objects: 251 objects, 14 MiB
    usage:   8.1 GiB used, 64 GiB / 72 GiB avail
    pgs:     352 active+clean
 
[cephadm@ceph-admin ceph-cluster]$ ceph config set mgr mgr/dashboard/ceph04/server_addr 0.0.0.0
[cephadm@ceph-admin ceph-cluster]$ ceph config set mgr mgr/dashboard/ceph04/server_port 8080

设定登录用户和密码

[cephadm@ceph-admin ceph-cluster]$ ceph dashboard set-login-credentials admin password
******************************************************************
***          WARNING: this command is deprecated.              ***
*** Please use the ac-user-* related commands to manage users. ***
******************************************************************
Username and password updated

访问

访问地址 ceph04:8080

一起来学ceph 06.ceph dashboard_第1张图片

一起来学ceph 06.ceph dashboard_第2张图片

你可能感兴趣的:(ceph)