第 3 章 定义单一后端


重要

本节论述了单个后端的部署。部署 Dell Storage Center 后端的多个实例 需要自定义后端配置。具体步骤请查看 自定义块存储后端部署指南

通过 Director 部署,定义 单个 Dell Storage Center 后端的最简单方法是通过集成环境文件。此文件位于 Undercloud 节点的以下路径中:

/usr/share/openstack-tripleo-heat-templates/environments/cinder-dellsc-config.yaml

将此文件复制到可以编辑并稍后调用的本地路径中。例如,将其复制到 ~/templates/

$ cp /usr/share/openstack-tripleo-heat-templates/environments/cinder-dellsc-config.yaml ~/templates/
Copy to Clipboard Toggle word wrap

之后,打开副本(~/templates/cinder-dellsc-config.yaml),并在您看到适合的情况下对其进行编辑。以下片段显示此文件的默认内容:

# A Heat environment file which can be used to enable a
# a Cinder  Dell Storage Center ISCSI backend, configured via puppet
resource_registry:
  OS::TripleO::ControllerExtraConfigPre: ../puppet/extraconfig/pre_deploy/controller/cinder-dellsc.yaml # 
1


parameter_defaults: # 
2

  CinderEnableDellScBackend: true # 
3

  CinderDellScBackendName: 'tripleo_dellsc'
  CinderDellScSanIp: ''
  CinderDellScSanLogin: 'Admin'
  CinderDellScSanPassword: ''
  CinderDellScSsn: '64702'
  CinderDellScIscsiIpAddress: ''
  CinderDellScIscsiPort: '3260'
  CinderDellScApiPort: '3033'
  CinderDellScServerFolder: 'dellsc_server'
  CinderDellScVolumeFolder: 'dellsc_volume'
Copy to Clipboard Toggle word wrap
1
resource_registry 部分中的 OS::TripleO::ControllerExtraConfigPre: 参数引用一个名为 cinder-dellsc.yaml 的 Heat 模板。这是 Director 应使用的模板来加载配置后端所需的资源。默认情况下,参数指定 cinder-dellsc.yaml 相对的路径。因此,使用文件的绝对路径更新此参数:
resource_registry:
  OS::TripleO::ControllerExtraConfigPre: /usr/share/openstack-tripleo-heat-templates/puppet/extraconfig/pre_deploy/controller/cinder-dellsc.yaml
Copy to Clipboard Toggle word wrap
2
parameter_defaults 部分包含您的后端定义。具体来说,它包含 Director 应该传递给 cinder-dellsc.yaml 中定义的资源的参数。
3
CinderEnableDellScBackend: true 行指示 Director 使用 Dell Storage Center 后端默认配置所需的 puppet 清单。这包括定义块存储服务应使用的卷驱动程序(特别是 cinder.volume.drivers.dell_storagecenter_iscsi.DellStorageCenterISCSIDriver)。

要定义您的 Dell Storage Center 后端,请在您看到适合的情况下编辑 parameter_defaults 部分中的设置。下表解释了每个参数,并列出其对应的 /etc/cinder/cinder.conf 设置。

Expand
表 3.1. Dell Storage Center 设置
参数/etc/cinder/cinder.conf setting描述

CinderDellScBackendName

volume_backend_name

(必需) 一个任意名称来标识卷后端。

CinderDellScSanIp

san_ip

(可选) 用于访问 Dell Enterprise Manager 的 IP 地址。

CinderDellScSanLogin

san_login

(必需)CinderDellScSanIp 处登录到 Dell Enterprise Manager 的用户名。默认用户名是 Admin

CinderDellScSanPassword

san_password

(可选) CinderDellScSanLogin 的对应密码。

CinderDellScSsn

dell_sc_ssn

(必需) 要使用的 Dell Storage Center 序列号。

CinderDellScIscsiIpAddress

iscsi_ip_address

(可选) 用于创建卷和快照的 Dell Storage Center ISCSI IP 地址。

CinderDellScIscsiPort

iscsi_port

(可选) Dell Storage Center 阵列的 ISCSI 端口。

CinderDellScApiPort

dell_sc_api_port

(可选) Dell Enterprise Manager API 端口。

CinderDellScServerFolder

dell_sc_server_folder

(必需) 在放置新服务器定义的 Dell Storage Center 中的 Server 文件夹。

CinderDellScVolumeFolder

dell_sc_volume_folder

(必需) 创建了新卷的 Dell Storage Center 中的 Server 文件夹。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部