首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

为存储配置 SMI-S 提供(Provider)程序

为存储配置 SMI-S 提供(Provider)程序

SMI-S 提供程序是一个特定于供应商的模块,通过使用该程序,IBM Systems Director 和 IBM Tivoli Storage Productivity Center 等独立管理软件可使用一个标准接口来管理供应商设备。
  • SMI-S 提供程序负责实际处理托管资源上的 CIM 操作。SMI-S 提供程序可在 CIM 格式的请求与特定于资源的操作之间相互转换。
  • SMI-S 提供程序提供了 CIM 接口与特定于资源的接口之间的映射,包含针对一组已确定的托管资源的一组 CIM 操作的实现。
图 1. 上图展示了 IBM Systems Director 如何通过 SMI-S 提供程序帮助管理不同的存储和交换机。
需要 SMI-S 提供程序的存储设备包括:
  • IBM System Storage® DS6000™ 设备
  • IBM System Storage N series N3600 设备
  • IBM System Storage DS4000® 设备
  • IBM System Storage DS5000 设备
  • IBM System Storage DS3000 设备
  • Brocade 2G/4G Fibre Channel(IBM BladeCenter® 机架和外部设备)
您可以从  下载 NetApp SMI-S 提供程序(需要登录)。这个 SMI-S 提供程序管理 IBM System Storage DS5000、DS4000 和 DS3000 存储系统。
系统需求:
  • 内存:至少 1 GB(最好 2 GB)。
  • 连接:至少 100BASE-T 的以太网(最好选择 GB 级以太网)、TCP/IP。
  • 端口:TCP 端口 5988 或 TCP 端口 5989,或者其他任何可用端口(如果这些端口不可用)。
  • 存储阵列密码:设备凭据配置文件需要提供存储阵列密码(共享的密钥)才能执行修改操作。每个存储阵列的共享密钥的一个实例始终由 SMI-S 提供程序保持。如果没有在存储阵列上设置密码,密码不是强制性的。
  • 可伸缩性:在单个提供程序实例可支持多少个存储系统方面,没有硬性的限制。推荐的最大数量是让每个提供程序支持 10 个全面配置的存储系统,或者总共支持大约 5000 个卷。在大型配置中,您可以在存储网络中的不同服务器上部署额外的提供程序,管理每 10 个左右的存储系统。
执行以下步骤来安装和配置 SMI-S 提供程序:
  • 将文件复制到可以解压它的任何位置(/tmp/ 目录是首选位置)。
  • 以 root 用户身份登录并安装 SMI-S 提供程序。  对于 Linux
    1
    # rpm -ivh <rpm package name>.rpm




    示例:# rpm -ivh lsi_array2-10.10.G5.02-linux.i386.rpm
    在完成安装之后,运行 source /root/.bashrc 来设置环境变量。
    对于 AIX
    1
    #installp -a -X -d <bff package name>.bff




    示例:#installp -a -X -d LSIarray2-AIX-10.19.GG.21.bff(您可使用 smitty 选项。)
    在 AIX 上安装 SMI-S 提供程序之后,需要使用 EXPORT 命令手动设置以下环境变量,然后执行下一步操作。
    • PEGASUS_HOME=/opt/lsi/pegasus
    • PEGASUS_ROOT=/opt/lsi/pegasus
    • PATH=$PATH:/opt/lsi/pegasus/bin
    • LIBPATH=$LIBPATH:/opt/lsi/pegasus/lib
    • LD_LIBRARY_PATH=$PEGASUS_HOME/libLD_LIBRARY_PATH
  • 您需要添加至少一个用户,以启用 CIM 对象管理器 (CIMOM) 身份验证。这个用户应该存在于系统之上。这个过程将重新启动 CIM 服务器。
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    /opt/lsi/pegasus/providers/array/userAuthentication.sh
    # /opt/lsi/pegasus/providers/array/userAuthentication.sh
    Do you want to enable authentication?y:n
    y
    Planned value for the property enableAuthentication is set to "true" in
    CIMServer.
    Please enter user
    storage
    Enter password maximum 8 characters
    welcome
    root
    User added successfully.
    Do you want to add another user?y:n
    n
    CIM Server stopped.
    Generic CIM Server 2.9.1
    #




  • 将您的存储 IP 添加到 ArrayHosts.txt 中。然后重新启动 CIM 服务器。
    1
    # vi /opt/lsi/pegasus/providers/array/ArrayHosts.txt




配置 OpenPegasus CIM 服务器使用以下命令执行基本的 OpenPegasus CIM 配置操作。其中每个步骤都要求您重新启动 OpenPegasus CIM 服务器。
设置一个 HTTP 端口
# cimconfig -s httpPort=<port> -p
示例:
1
# cimconfig -s httpPort=5988 -p




在 CIM 服务器中,将计划使用的 httpPort 属性值设置为 5988。
设置一个 HTTPS 端口
# cimconfig -s httpsPort=<port> -p
示例:
1
# cimconfig -s httpsPort=5989 -p




在 CIM 服务器中,将计划使用的 httpsPort 属性值设置为 5989。
启用或禁用 HTTP 连接
# cimconfig -s enableHttpConnection={true | false} -p
示例:
1
# cimconfig -s enableHttpConnection=true -p




在 CIM 服务器中,将计划使用的 enableHttpConnection 属性值设置为 true。
启用或禁用 HTTPS 连接
# cimconfig -s enableHttpsConnection={true | false} -p
示例:
1
# cimconfig -s enableHttpsConnection=true -p




在 CIM 服务器中,将计划使用的 enableHttpsConnection 属性值设置为 true。
启用或禁用身份验证
# cimconfig -s enableAuthentication={false | true} -p
示例:
1
# cimconfig -s enableAuthentication=true -p




在 CIM 服务器中,将计划使用的 enableAuthentication 属性值设置为 true。
添加一个用户
# cimuser -a -u <username> -w <password>
示例:
1
2
# cimuser -a -u storage -w passw0rd
User added successfully.




删除一个用户
# cimuser -r -u <username>
生成一个经过验证的用户列表
# cimuser -l
启用或禁用服务位置协议 (SLP)
# cimconfig -s slp={true | false} -p
cimserver_current.conf 文件中可以找到所有配置设置。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
    #cat /opt/lsi/pegasus/cimserver_current.conf
########################################################################
## ##
## CIM Server configuration file ##
## ##
########################################################################
########################################################################
# #
# The configuration in this file is loaded by the CIM Server at #
# start-up. This file is updated by the CIM Server when the #
# configuration changes. #
# #
# Do not edit this file directly. Instead, use the cimconfig command #
# to update the CIM Server configuration. #
# #
########################################################################
httpPort=5988
slp=true
httpsPort=5989
registerExternalOpenSLP=false
enableAuthentication=true
enableHttpsConnection=true
enableHttpConnection=true
#




查看配置之后,需要再次重新启动 CIM 服务器。
# cimserver -s(用于停止 CIM 服务器)
# cimsever(用于启动 SIM-S 提供程序)
为存储和交换机设置 SMI-S 提供程序后,需要使用 mkdaresource 命令将这些资源导入您的 Systems Director 实例中(如果使用了 Systems Director Storage Manager)。
返回列表