块存储节点(可选)

块存储节点(可选)

如果你打算部署块存储服务,需配置一个额外的存储节点。

配置网络接口

  • 配置管理网络接口:
    • IP 地址: 10.0.0.41
    • 子网掩码: 255.255.255.0 (or /24)
    • 默认网关: 10.0.0.1

配置名称解析

  1. 设置节点主机名为``block1``。

  2. 编辑 /etc/hosts 文件包含以下内容:

    # controller
    10.0.0.11       controller
    
    # compute1
    10.0.0.31       compute1
    
    # block1
    10.0.0.41       block1
    
    # object1
    10.0.0.51       object1
    
    # object2
    10.0.0.52       object2
    

    警告

    一些发行版本在``/etc/hosts``文件中添加了附加条目解析实际主机名到另一个IP地址如 127.0.1.1。为了防止域名解析问题,你必须注释或者删除这些条目。不要删除127.0.0.1条目。

    注解

    This guide includes host entries for optional services in order to reduce complexity should you choose to deploy them.

  3. 重启系统以激活修改。

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.