# 查看Ceph版本 ceph mgr version # 實驗版本是mimic版,如果是nautilus版需要安裝ceph-mgr-dashboard # yum install -y ceph-mgr-dashboard # 查詢MGR節點 ceph -s # 查看MGR模塊和幫助信息 ceph mgr module --help ceph mgr module ls # 啟用MGR dashboard模塊 ceph mgr module enable dashboard # 創建自簽名證書 ceph dashboard create-self-signed-cert # ceph config set mgr mgr/dashboard/ssl false # 禁用ssl # 列出MGR模塊提供的服務端點 mimic版默認監聽在7000端口 ceph mgr services # 設置登錄認證 # dashboard set-login-credentials <username> <password> ceph dashboard set-login-credentials admin 12345 # 有版本使用如下指令 查看幫助ceph dashboard --help # ceph dashboard ac-user-create <username> <password> <role> # 自定義MGR dashboard模塊的ip和port ceph config set mgr mgr/dashboard/server_addr 172.25.25.3 ceph config set mgr mgr/dashboard/server_port 7070 systemctl restart ceph-mgr.target # 開啟對象網關管理功能 # 創建rgw用戶 radosgw-admin user create --uid=<value> --display-name=<value> # 配置對象網關認證 ceph dashboard set-rgw-api-access-key $access_key ceph dashboard set-rgw-api-secret-key $secret_key # 配置對象網關主機名和端口 ceph dashboard set-rgw-api-host <value> ceph dashboard set-rgw-api-port <int>