第 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::Services::CinderBackendDellSc: ../puppet/services/cinder-backend-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::Services::CinderBackendDellSc 参数引用名为 cinder-backend-dellsc.yaml 的可组合服务模板。director 使用此模板来加载配置后端所需的资源。默认情况下,参数指定 cinder-backend-dellsc.yaml 相对的路径。因此,使用文件的绝对路径更新这个参数:
resource_registry:
  OS::TripleO::Services::CinderBackendDellSc: /usr/share/openstack-tripleo-heat-templates/puppet/services/cinder-backend-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_emc.sc.dell_storagecenter_iscsi.SCISCSIDriver)。

要定义您的 Dell Storage Center 后端,在匹配的 parameter_defaults 部分中编辑设置。下表说明了每个参数,还列出其对应的 /etc/cinder/cinder.conf 设置。

Expand
表 3.1. Dell Storage Center 设置
参数/etc/cinder/cinder.conf settingDescription

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
返回顶部