安装并配置控制节点

安装并配置控制节点

这个部分描述如何在控制节点上安装和配置块设备存储服务,即 cinder。这个服务需要至少一个额外的存储节点,以向实例提供卷。

安全并配置组件

  1. 安装软件包:

    # apt-get install cinder-api cinder-scheduler
    

    回应debconf的提示。

  1. 编辑 /etc/cinder/cinder.conf,同时完成如下动作:

    • [DEFAULT 部分,配置``my_ip`` 来使用控制节点的管理接口的IP 地址。

      [DEFAULT]
      ...
      my_ip = 10.0.0.11
      

配置计算节点以使用块设备存储

  • 编辑文件 /etc/nova/nova.conf 并添加如下到其中:

    [cinder]
    os_region_name = RegionOne
    

完成安装

  1. 重启计算API 服务:

    # service nova-api restart
    
  2. 重启块设备存储服务:

    # service cinder-scheduler restart
    # service cinder-api restart
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.