本次演示环境配置如下:
hostname |
IP |
roles |
node01.srv.world |
192.168.10.101 |
Object Storage;Monitor Daemon;Manager Daemon |
node02.srv.world |
192.168.10.102 |
Object Storage |
node03.srv.world |
192.168.10.103 |
Object Storage |
dlp.srv.world |
192.168.10.142 |
client |
www.srv.world |
192.168.10.140 |
RADOSGW |
1.在node01节点启用Dashboard,具体操作如下:
a.安装所需的软件包
[root@node01 ~]# dnf install ceph-mgr-dashboard
Last metadata expiration check: 3:15:00 ago on Tue 12 Sep 2023 06:07:41 PM CST.
Package ceph-mgr-dashboard-2:18.2.0-1.el9s.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
b.启用dashboard模块,并检验是否成功
[root@node01 ~]# ceph mgr module enable dashboard
[root@node01 ~]# ceph mgr module ls | grep dashboard
dashboard on
c.为dashboard创建自签名证书
[root@node01 ~]# ceph dashboard create-self-signed-cert
Self-signed certificate created
d.为dashboard创建登录用户
[root@node01 ~]# echo "password" > pass.txt
[root@node01 ~]# ceph dashboard ac-user-create serverworld -i pass.txt administrator
{"username": "serverworld", "password": "$2b$12$QuvwdmuO8gdJhyMDfWOVwO2wgdk2Og9VJMTLnXBu2HGhcWq2PjnZC", "roles": ["administrator"], "name": null, "email": null, "lastUpdate": 1694525334, "enabled": true, "pwdExpirationDate": null, "pwdUpdateRequired": false}
e.确认Dashboard URL
[root@node01 ~]# ceph mgr services
{
"dashboard": "https://192.168.10.101:8443/"
}
f.添加firewalld规则
[root@node01 ~]# firewall-cmd --add-port=8443/tcp
success
[root@node01 ~]# firewall-cmd --runtime-to-permanent
success
[root@node01 ~]#
2.登录Dashboard
从UI看,功能还是不错的,下一小节将带领大家配置NFS-Ganesha欢迎持续关注!