Dell Storage Center 后端指南


Red Hat OpenStack Platform 8

在 Red Hat OpenStack Platform Overcloud 中使用 Dell Storage Center 存储指南

OpenStack Documentation Team

摘要

本文档论述了如何将单个 Dell Storage Center 设备部署为 Red Hat OpenStack Platform 8 Overcloud 的后端。

第 1 章 简介

本文档论述了如何将 OpenStack 配置为使用一个或多个 Dell Storage Center 后端。以下部分假设:

  • 您打算将 Dell Storage Center 设备和驱动程序用于块存储后端
  • OpenStack Overcloud 已通过 Director 部署,具有可正常工作的块存储服务
  • Dell 存储设备已部署和配置为存储库
  • 您有连接到 Enterprise Manager 和 Dell Storage Center 组所需的凭证
  • 您有具有升级权限的帐户的用户名和密码。您可以使用为部署 Overcloud 而创建的同一帐户;在创建 Director 安装用户 中,我们创建 stack 用户并用于此目的。

当通过 Director 部署 RHEL OpenStack 平台时,还必须通过 Director 定义所有主要的 Overcloud 设置(特别是块存储服务后端)。这可确保设置通过任何进一步的 Overcloud 更新保留。有关通过 Director 部署 OpenStack 的更多信息,请参阅 Director 安装和使用

本文档的目的是介绍如何将所需的 Dell Storage Center 后端配置编排到 Overcloud 的块存储服务。本文档不会在后端中讨论不同的部署配置。相反,要了解更多有关不同可用部署配置的信息,请参阅您的设备产品文档。

熟悉您要部署的后端配置(及其相应的设置)后,请参阅本文档来了解如何通过 Director 编配它。

注意

目前,director 只有一个集成组件来部署 Dell Storage Center 后端的 一个单一 实例。因此,本文档仅描述了单个后端的部署。

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

第 2 章 进程描述

RHEL OpenStack 平台包括块存储服务支持的所有 Dell 设备所需的所有驱动程序。此外,Director 还具有将设备作为后端集成到 Overcloud 所需的 puppet 清单、环境文件和编配模板。

单个 Dell 设备配置为后端 涉及编辑默认 环境文件,并在 Overcloud 部署中包括它。此文件在 Undercloud 本地可用,并可编辑以适合您的环境。

编辑完此文件后,通过 Director 调用该文件。这样做可确保其在将来的 Overcloud 更新中保留。以下小节更详细地描述了此过程。此外,默认的环境文件已包含足够信息来调用必要的 Puppet 清单和编排(Heat)模板,该模板将配置所需的块存储设置。

第 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 文件夹。

第 4 章 部署 Configured 后端

Director 安装使用非 root 用户来执行命令,其中包括编排块存储后端的部署。在创建 Director 安装用户 中,我们为此目的创建一个名为 stack 的用户。此用户配置了升级的特权。

要部署 第 3 章 定义单一后端 中配置的 lone 后端,首先以 stack 用户身份登录 Undercloud。然后,运行以下命令部署后端(在编辑的 ~/templates/cinder-dellsc-config.yaml中定义):

$ openstack overcloud deploy --templates -e ~/templates/cinder-dellsc-config.yaml
Copy to Clipboard Toggle word wrap
重要

如果您在创建 Overcloud 时传递任何额外的环境文件,请使用 -e 选项再次传递这些文件,以避免对 Overcloud 进行不必要的更改。

有关更多信息,请参阅 扩展 Overcloud更新 Overcloud

Director 完成编排后,测试后端。具体步骤请查看 第 5 章 测试 Configured 后端

第 5 章 测试 Configured 后端

部署后端后,测试您是否能够成功在其上创建卷。这样做需要首先载入必要的环境变量。默认情况下,这些变量在 /home/stack/overcloudrc 中定义。

要载入这些变量,以 stack 用户身份运行以下命令:

$ source /home/stack/overcloudrc
Copy to Clipboard Toggle word wrap
注意

有关更多信息,请参阅 访问基本 Overcloud

现在,您应该登录到 Controller 节点。在这里,您可以创建一个 卷类型,它可以用来指定您要使用的后端(本例中为 第 3 章 定义单一后端中新定义的后端)。在启用了其他后端(最好通过 Director)时,部署需要这样做。

要创建名为 dellsc 的卷类型,请运行:

$ cinder type-create dellsc
Copy to Clipboard Toggle word wrap

接下来,将此卷类型映射到 ] 中定义的后端。根据后端名称 tripleo_dellsc (通过 CinderDellScBackendName 参数定义,在 xref:edityaml[)中,运行:

$ cinder type-key dellsc set volume_backend_name=tripleo_dellsc
Copy to Clipboard Toggle word wrap

现在,您应能够通过调用其卷类型在新定义的后端上创建 2GB 卷。为此,请运行:

$ cinder create --volume-type dellsc 2
Copy to Clipboard Toggle word wrap

法律通告

Copyright © 2025 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat