zoukankan      html  css  js  c++  java
  • Ceph


    Ceph 学习目录:

    1. CEPH 部署完整版(CentOS 7 + luminous)
    2. Ceph - RBD 操作
    3. Ceph - Dashboard

    环境:

    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:
    

    创建 dashboard

    安装 ceph-mgr-dashboard

    [root@ceph-node1 ~]#yum install ceph-mgr-dashboard -y
    

    开启 dashboard module

    [root@ceph-node1 ~]#ceph mgr module enable dashboard
    

    禁止 SSL

    (这里没必要使用不信任的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 访问路径

    # 重新启动 mgr 服务
    [root@ceph-node1 ~]#systemctl restart ceph-mgr@*
    [root@ceph-node1 ~]#ceph mgr services
    {
        "dashboard": "http://ceph-node1:8080/"
    }
    

    通过浏览器访问


    通过 dashboard 可以进行很多操作 比如 osdpool 都可以通过 dashboard 直接进行管控。

  • 相关阅读:
    团队项目——技术规格说明书
    Scrum Meeting 11.1
    Scrum Meeting 10.31
    Scrum Meeting 10.30
    Scrum Meeting 10.29
    Scrum Meeting 10.28
    Scrum Meeting 10.27
    Scrum Meeting 10.26
    团队作业Week5
    Boost C++: 数据结构---tuple
  • 原文地址:https://www.cnblogs.com/hukey/p/13288583.html
Copyright © 2011-2022 走看看