• Ceph&Openstack结合说明操作


    openstack结合ceph操作文档

    官方文档地址: http://docs.ceph.com/docs/master/rbd/rbd-openstack/

        1. 创建Pool池

            ceph osd pool create images 128  #128表示pg数

            ceph osd pool create volumes 512

        2. 创建对应账号

           

              ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rx pool=images'
      
    [client.cinder]
             key = AQADmY1XW8MsJxAAds8zcRNKq+Jtb3PJox+Vhw==
             
             
            ceph auth get-or-create client.glance mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=images'
                       
    [client.glance]
             key = AQAwmY1XdxMCGhAA+YUkZHYcrglYBu84BZ+enA==
                       
            ceph auth get-or-create client.cinder-backup mon 'allow r' osd 'allow class-read object_prefix rbd_children'
                       
    [client.cinder-backup]
             key = AQBXmY1XA/r4FBAAPla8wuiigHFtFVkUrGLIXA==

        3. 同步到对应服务器 keyring 环文件

    创建keyring  Collapse source
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    ceph auth get-or-create client.glance  | ssh openstack sudo tee /etc/ceph/ceph.client.glance.keyring
    ssh openstack sudo chown glance:glance /etc/ceph/ceph.client.glance.keyring
     
    ceph auth get-or-create client.cinder  | ssh compute sudo tee /etc/ceph/ceph.client.glance.keyring
    ssh compute sudo chown nova:nova /etc/ceph/ceph.client.glance.keyring
     
    ceph auth get-or-create client.cinder | ssh compute sudo tee /etc/ceph/ceph.client.cinder.keyring
    ssh compute sudo chown nova:nova /etc/ceph/ceph.client.cinder.keyring
     
    ceph auth get-or-create client.cinder | ssh storage sudo tee /etc/ceph/ceph.client.cinde.keyring
    ssh storage sudo chown cinder:cinder /etc/ceph/ceph.client.cinder.keyring
  • 相关阅读:
    echarts----实现图表联动
    echarst-----入门,实现柱状图、饼图、环形图、折线图、词云图
    软件需求---河北省重大需求进度报告08
    Tensorflow学习笔记(一)
    软件工程课程个人总结
    Android项目——用户主页实现
    Android项目——消息列表实现
    Android项目——功能更新
    第十四周学习进度总结
    Android项目——查看我的发布
  • 原文地址:https://www.cnblogs.com/schangech/p/8036181.html
Copyright © 2020-2023  润新知