4

#yyds干货盘点#ceph安装可视化dashboard

 2 years ago
source link: https://blog.51cto.com/u_12040959/5018752
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

1.安装Dashboard

yum install -y ceph-mgr-dashboard -y

2.开启插件

ceph mgr module enable dashboard
ceph mgr module ls //查看组件

#yyds干货盘点#ceph安装可视化dashboard_ip地址

3.禁用SSL。

ceph config set mgr mgr/dashboard/ssl false
//必须禁用

4.配置监听IP。

ceph config-key put mgr/dashboard/server_addr 192.168.11.1
或者
ceph config set mgr mgr/dashboard/server_addr 192.168.11.1

此处必须设置监控地址为0.0.0.0,而不能是直接IP地址,因为其监控的是所有本地地址包括IPV4和IPV6,同时也不能禁用IPV6地址。

5.配置监听端口。

ceph config-key put mgr/dashboard/server_port 8080
或者
ceph config set mgr mgr/dashboard/server_port 8080

//检查端口是否被占用
netstat -anp |grep 8080

#yyds干货盘点#ceph安装可视化dashboard_用户登录_02

6.设置用户登录。

ceph dashboard set-login-credentials admin admin

7.使用配置生效/失效。

ceph mgr module disable dashboard
ceph mgr module enable dashboard

8.通过查看ceph mgr services命令输出地址。

ceph mgr services
{
"dashboard": "http://ceph01:8080/"
}

#yyds干货盘点#ceph安装可视化dashboard_本地地址_03

9.访问Dashboard

curl 192.168.11.1:8080

#yyds干货盘点#ceph安装可视化dashboard_本地地址_04

外部浏览器访问,因为在虚拟机需要做转发

iptables -t nat -A PREROUTING -d 192.168.103.41 -p tcp --dport 8080 -j DNAT --to-destination 192.168.11.1:8080

#yyds干货盘点#ceph安装可视化dashboard_用户登录_05


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK