其他分享
首页 > 其他分享> > 分布式存储Ceph(十) ceph dashboard

分布式存储Ceph(十) ceph dashboard

作者:互联网

十 ceph dashboard

10.1 ceph dashboard介绍

Ceph dashboard 是通过一个web界面,对已经运行的ceph集群进行状态查看以及功能配置等功能,早起ceph使用的是第三方的dashboard组件。

10.1.1 Calamari

10.1.2 VSM

10.1.3 Inkscope

10.1.4 ceph-dash

10.2 查看mgr模块列表

点击查看代码
ceph@ceph-deploy:~/ceph-cluster$ ceph mgr module ls

10.3 启用dashboard插件

10.3.1 查看ceph dashboard 安装包版本

root@ceph-mgr-01:~# apt-cache madison ceph-mgr-dashboard
ceph-mgr-dashboard | 16.2.6-1bionic | https://mirrors.tuna.tsinghua.edu.cn/ceph/debian-pacific bionic/main amd64 Packages
ceph-mgr-dashboard | 16.2.6-1bionic | https://mirrors.tuna.tsinghua.edu.cn/ceph/debian-pacific bionic/main i386 Packages

10.3.2 安装ceph dashboard

点击查看代码
root@ceph-mgr-01:~# apt -y install  ceph-mgr-dashboard

10.3.3 启用dashboard模块

模块启用后还不能直接访问,需要配置关闭ssl或启动ssl以及指定监听地址。

ceph@ceph-deploy:~/ceph-cluster$ ceph mgr module enable dashboard

10.3.4 关闭dashboard ssl

ceph@ceph-deploy:~/ceph-cluster$ ceph config set mgr mgr/dashboard/ssl false

10.3.5 指定dashboard监听地址

ceph@ceph-deploy:~/ceph-cluster$ ceph config set mgr mgr/dashboard/ceph-mgr-01/server_addr 172.16.10.225 

10.3.6 指定dashboard监听端口

ceph@ceph-deploy:~/ceph-cluster$ ceph config set mgr mgr/dashboard/ceph-mgr-01/server_port 9009

10.3.7 重启mgr服务

root@ceph-mgr-01:~# systemctl restart ceph-mgr@ceph-mgr-01

10.3.8 在mgr节点验证端口与进程

root@ceph-mgr-01:~# lsof -i:9009
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
ceph-mgr 5844 ceph   34u  IPv4 699761      0t0  TCP ceph-mgr-01:9009 (LISTEN)

10.3.9 查看dashboard地址

ceph@ceph-deploy:~/ceph-cluster$ ceph mgr services
{
    "dashboard": "http://172.16.10.225:9009/"
}

10.4 dashboard访问

10.4.1 登录界面

10.4.2 设置dashboard账户以及密码

ceph@ceph-deploy:~/ceph-cluster$ echo "12345678" >> dashboard_passwd.txt
ceph@ceph-deploy:~/ceph-cluster$ ceph dashboard set-login-credentials wgs -i dashboard_passwd.txt 
******************************************************************
***          WARNING: this command is deprecated.              ***
*** Please use the ac-user-* related commands to manage users. ***
******************************************************************
Username and password updated

10.4.3 dashboard登录验证

10.4.4 登录成功界面

标签:ceph,10.3,cluster,Ceph,mgr,dashboard,https
来源: https://www.cnblogs.com/wangguishe/p/15429116.html