标签:centos http The 端口 daemon 设置 主机名 key active
Ceph 学习目录:
环境:
IP地址 | 主机名 |
---|---|
192.168.118.14 | ceph-node1 |
192.168.118.15 | ceph-node2 |
192.168.118.16 | ceph-node3 |
192.168.118.17 | ceph-client |
Ceph 版本:ceph version 14.2.10 nautilus (stable)
注意:所有节点更新为最新内核版本!
[root@ceph-node1 ~]#ceph -s
cluster:
id: 2bfda893-adf6-4396-8f1a-035fda5afbe3
health: HEALTH_OK
services:
mon: 3 daemons, quorum ceph-node1,ceph-node2,ceph-node3 (age 4h)
mgr: ceph-node1(active, since 4h)
osd: 3 osds: 3 up (since 4h), 3 in (since 4h)
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 3.0 GiB used, 6.0 TiB / 6.0 TiB avail
pgs:
[root@ceph-node1 ~]#yum install ceph-mgr-dashboard -y
[root@ceph-node1 ~]#ceph mgr module enable dashboard
(这里没必要使用不信任的https)
[root@ceph-node1 ~]#ceph config set mgr mgr/dashboard/ssl false
[root@ceph-node1 ~]#ceph config set mgr mgr/dashboard/server_addr 0.0.0.0
[root@ceph-node1 ~]#ceph config set mgr mgr/dashboard/server_port 8080
[root@ceph-node1 ~]#ceph dashboard set-login-credentials admin admin
******************************************************************
*** WARNING: this command is deprecated. ***
*** Please use the ac-user-* related commands to manage users. ***
******************************************************************
Username and password updated
# 重新启动 mgr 服务
[root@ceph-node1 ~]#systemctl restart ceph-mgr@*
[root@ceph-node1 ~]#ceph mgr services
{
"dashboard": "http://ceph-node1:8080/"
}
通过 dashboard
可以进行很多操作 比如 osd
、pool
都可以通过 dashboard
直接进行管控。
标签:centos http The 端口 daemon 设置 主机名 key active
原文地址:https://www.cnblogs.com/hukey/p/13288583.html