Dell Storage Center 后端指南


Red Hat OpenStack Platform 13

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

OpenStack Documentation Team

摘要

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

使开源包含更多

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。我们从这四个术语开始:master、slave、黑名单和白名单。由于此项工作十分艰巨,这些更改将在即将推出的几个发行版本中逐步实施。有关更多详情,请参阅我们的首席技术官 Chris Wright 提供的消息

第 1 章 简介

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

  • 您要只对块存储后端使用 Dell Storage Center 设备和驱动程序
  • OpenStack Overcloud 已经通过 Director 部署,具有可正常工作的块存储服务
  • Dell 存储设备已经部署并配置为存储存储库
  • 您有连接到 Enterprise Manager 和 Dell Storage Center 组所需的凭证
  • 您有具有升级权限的帐户的用户名和密码。您可以使用为部署 Overcloud 创建的相同帐户;在创建堆栈 用户 中,我们创建并使用 stack 用户来实现这一目的。

通过 director 部署 Red Hat OpenStack Platform (RHOSP)时,还必须通过 director (特别是块存储服务后端)定义并编配所有主要 overcloud 设置。这样可确保通过任何进一步的 overcloud 更新保留设置。有关通过 Director 部署 OpenStack 的更多信息,请参阅 Director 安装和使用

本文档的目的是说明如何向 overcloud 块存储服务编排您的 Dell Storage Center 后端配置。本文档不会讨论后端可能的不同部署配置。要了解更多有关不同可用部署配置的信息,请参阅设备的产品文档。

当您熟悉要部署的最终配置及其对应的设置时,请参阅此文档,了解如何通过 director 编排它。

注意

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

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

在使用 Dell Storage Center 后端部署 Red Hat OpenStack Platform (RHOSP)前,请查看以下限制:

  • 对于 Dell EMC SC 系列,不支持空附加卷的快照。在进行快照前,您必须填充卷或附加卷。如需更多信息,请参阅 https://bugs.launchpad.net/cinder/+bug/1616630
  • 对于 Dell EMC SC 系列,不支持 cinder 备份。

第 2 章 进程描述

Red Hat OpenStack Platform (RHOSP)包括块存储服务支持的所有 Dell 设备所需的驱动程序。此外,director 还具有将设备集成为 overcloud 的后端所需的 puppet 清单、环境文件和编配模板。

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

编辑此文件后,通过 director 调用该文件。这样做可确保通过将来的 overcloud 更新持续。以下小节更详细地描述了此过程。另外,默认的环境文件已包含足够的信息,可用于调用配置其余所需块存储设置所需的 puppet 清单和 Orchestration (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::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 文件夹。

第 4 章 部署配置后端

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 进行不必要的更改。有关更多信息,请参阅 Director 安装和使用 指南中的 修改 Overcloud 环境

在 director 编排完成后测试后端。请参阅 第 5 章 测试配置后端

第 5 章 测试配置后端

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

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

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

如需更多信息,请参阅 访问 Overcloud

现在,您应该登录到 Controller 节点。在这里,您可以创建一个 卷类型,它可以用来指定您要使用的后端(本例中为 第 3 章 定义单一后端中的新定义后端)。在启用了其他后端的 OpenStack 部署中是必需的(可能是通过 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 © 2023 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

© 2026 Red Hat