首页 在 AIX 上实现 iSCSI

在 AIX 上实现 iSCSI

举报
开通vip

在 AIX 上实现 iSCSI在 AIX 上实现 iSCSI 在 AIX 上实现 iSCSI 时间:2006-11-09 10:36:29 来源:Linux联盟收集 作者: 学习如何在 AIX 上实现 Internet 小型计算机系统接口(Internet small computer system interface,iSCSI)。文中循序渐进的过程将说明如何通过 Cisco MDS 在 AIX 主机上跨存储区域网络 (SAN) 实现 iSCSI。这些过程还将说明一些接口优化参数。 引言 经济高效的存储解决方案的要求并不是什么新内容。Inte...

在 AIX 上实现 iSCSI
在 AIX 上实现 iSCSI 在 AIX 上实现 iSCSI 时间:2006-11-09 10:36:29 来源:Linux联盟收集 作者: 学习如何在 AIX 上实现 Internet 小型计算机系统接口(Internet small computer system interface,iSCSI)。文中循序渐进的过程将说明如何通过 Cisco MDS 在 AIX 主机上跨存储区域网络 (SAN) 实现 iSCSI。这些过程还将说明一些接口优化参数。 引言 经济高效的存储解决 方案 气瓶 现场处置方案 .pdf气瓶 现场处置方案 .doc见习基地管理方案.doc关于群访事件的化解方案建筑工地扬尘治理专项方案下载 的要求并不是什么新内容。Internet 小型计算机系统接口 (iSCSI) 同样不是新内容,不过,当我们开始在 AIX? 上跨 JS20 刀片中心实现 iSCSI 时,iSCSI 似乎是新内容。 本文阐释如何通过 Cisco MDS 交换机在 AIX 上实现 iSCSI。文中将讨论有关 Cisco MDS 类 SAN 交换机的主机和 SAN 交换机配置的所有步骤。本文的信息基于实际经验。我们假定您已掌握 AIX 系统管理和 Cisco 存储区域网络 (SAN) 的配置技能。 此过程中的步骤与 Cisco Fabric Manager 配置、Cisco Device Manager 配置和 AIX 主机配置有关。我们还提供了有关 AIX 优化的部分,该部分是可选的,但是建议您这样做。 先决条件 用于在 AIX 上配置 iSCSI 的过程假定具有以下条件: 服务器或主机节点上安装有 AIX Version 5.2 或更高版本。 已完成所有网络和光纤的布线。 最重要的一点是,网络配置已完成并且已经进行了测试,其中包括能够执行从 AIX 节点到 iSCSI IP 端口地址的 Ping 测试。 基本配置包括:四个 JS20 服务器节点通过 Cisco Catalyst 网络交换机进行连接,而 Cisco Catalyst 网络交换机通过 Cisco MDS 9000 SAN 交换机桥接到存储。在此应用中,已将两个 IBM DS-4800 用作后端存储。 Cisco Fabric Manager 用户需要具有管理员访问权限并具有分区的应用知识,以便为主机节点和后端存储创建所需的区域。 若要从 Cisco Fabric Manager 中启用 Cisco MDS SAN 交换机上的 iSCSI,请执行下列操作: 在 Physical Attributes(左下方)窗格的 MDS 上,选择 End Devices > iSCSI。 为网络中的所有交换机选择 Control 选项卡,然后选择 iSCSI enable。 选择 Apply。 分区 在 Cisco Fabric Manager 图形用户界面 (GUI) 中执行分区时,应使用与为其他任何设备执行分区相同的方式。一旦设置了 MDS 来处理 iSCSI 接口,就应该将 MDS 视为任何其他终端设备。 Cisco Device Manager 在 Cisco MDS SAN 交换机上使用 Device Manager 来执行下列步骤。用户需要具有管理员访问权限并且具有如何通过 Device Manager GUI 来配置 MDS 类交换机的应用知识。建议掌握 SAN 的一般知识(其中包括分区)。 请针对初始的 MDS 设置执行下列操作: 在 Cisco MDS SAN 交换机上启用 iSCSI License 功能。 在 MDS 上,从 Admin 选项卡中选择 Feature Control。 启用 iscsi–vsan-interface-membership。 选择 Apply。 此时,Cisco MDS 交换机可随时接受 iSCSI 命令。 现在,您将设置 MDS 端口和参数。若要配置 GigE 接口,请执行下列操作: 找到 Cisco Catalyst 网络交换机的 iSCSI 端口。 右键单击将要配置的端口并选择 Configure…。 从配置面板的顶部选择 GigE 选项卡。 在 Description 字段中输入端口描述。 将 MTU 更改为 9000。(为获得更优的性能,建议将 MTU 更改为 9000,但该设置是可选的。) 在 IP Address/Mask 字段中为 iSCSI 端口输入 IP 地址和子网。 Cisco Catalyst 网络交换机会自动在 IP 地址末端填充子网掩码。如果您正在使用的子网与 Cisco 已假定的子网不同,则可以手动更改它。 通过从 iscsiAuthMethod 选择框中选中 none 或 chap 来选择 Auth 方法 快递客服问题件处理详细方法山木方法pdf计算方法pdf华与华方法下载八字理论方法下载 。 选择 Apply。 完成后,请针对每个 选项卡应用所有更改。Apply 按钮只保存您当前正在使用的选项卡的更改,该按钮并不会继续应用到其他选项卡。 若要配置 iSCSI 接口,请执行下列操作: 从配置面板的顶部选择 iSCSI 选项卡。 在 Description 字段中输入端口描述。 从下拉窗口中选择 PortVSAN 的适当虚拟存储区域网络 (VSAN),或键入适当的 VSAN 号。 在 Initiator Proxy mode 下选中 Enable 框。 为 Assignment 选项选择 Auto。 选择 Apply。 若要配置 iSCSI_TCP 接口,请执行下列操作: 从配置面板的顶部选择 iSCSI_TCP 选项卡。 为 LocalTCPport 输入正确的值。 选择 Apply。 请针对 MDS Initiator/Target 设置执行下列操作: 从 MDS 上的 IP 下拉列表中,选择 ISCSI…。 在 Initiator 选项卡上,选择 Create。 在 iSCSI Initiator creation 框中,设置 iSCSI 节点名称或 IP 地址,以及 VSAN 成员身份。 在 Port WWN Mapping 下选中 Persistent 框。 选择 Targets 选项卡,然后选择 Create。 在 iSCSI Name 字段下输入目标的适当名称。 为 Initiator Access listing 选择 All。 选择 All,或者从 Advertised Interfaces 列表字段中选择适当的接口。 选择 Apply。 AIX 主机配置 用户需要具有根级别授权并且具有 AIX 系统管理的应用知识。 为了利用 DS4000 系列后端存储,将需要下列 ODM 项。其他存储设备可能需要它们自己特有的 ODM 项,不过需要逐个处理此类情况。请确保提供下列 ODM 项并将 ODM 连接到 DS4000 类型的存储设备。 array.iscsi.ibm-dac-V4.add 如果未提供,请从命令行中发出下列命令: odmadd array.iscsi.ibm-dac-V4.add 若要配置 iscsi0 接口,则需要创建 iSCSI 的唯一网络接口。使用 SMIT,输入: smitty -> chgiscsisw 输入 iscsi0 短名称。例如: iqn.com.ibm.po.ppd.z19c3s11e3.hostid.0972f5ec 从命令行输入以下命令: chdev –l iscsi0 –a initiator_name=iqn.com.ibm.pok.ppd..hostid.0972f5ec iqn.com.ibm.pok.ppd 并不是键入错误;这是 iSCSI 解析目标存储名称的方式。使用 <主机短名称>,例如,z20c4s11e3,其中 e3 是 en3 接口。主机短名称和 iSCSI 字符串的最后一项是每个目标条目特有的。 /etc/iscsi/targets 配置文件 /etc/iscsi/targets 文件中具有所需的条目。/etc/iscsi 目录中有一个 targets 文件,该文件要求具有每个 iSCSI 目标端口的条目,如 Cisco Device Manager 中所概述的。这些条目必须以下面的清单 1 中所示的 格式 pdf格式笔记格式下载页码格式下载公文格式下载简报格式下载 进行创建。targets 文件中还具有有关访问和授权的级别的示例。 清单 1. /etc/iscsi/targets 文件的示例 ################################################################### EXAMPLE 1: iSCSI Target without CHAP(MD5) authentication# Assume the target is at address 192.168.3.2,# the valid port is 5003# the name of the target is iqn.com.ibm-4125-23WTT26# The target line would look like:# 192.168.3.2 5003 iqn.com.ibm-4125-23WWT26 192.169.240.8 5003 iqn.com.ibm.pok.ppd.zec1xbba3.0005 192.169.240.16 5003 iqn.com.ibm.pok.ppd.zec1xbbb3.0006# 192.169.240.1 5003 iqn.com.ibm.pok.ppd.zec2xbba1.0003# 192.169.240.1 5003 iqn.com.ibm.pok.ppd.zec2xbbb1.0004## EXAMPLE 2: iSCSI Target with CHAP(MD5) authentication# Assume the target is at address 10.2.1.105# the valid port is 3260# the name of the target is iqn.com.ibm-K167-42.fc1a# the CHAP secret is "This is my password."# The target line would look like:# 10.2.1.105 3260 iqn.com.ibm-K167-42.fc1a "This is my password."## EXAMPLE 3: iSCSI Target with CHAP(MD5) authentication #and line continuation# Assume the target is at address 10.2.1.106# the valid port is 3260# the name of the target is #iqn.2003-01.com.ibm:00.fcd0ab21.shark128# the CHAP secret is "123ismysecretpassword.fc1b"# The target line would look like:# 10.2.1.106 3260 iqn.2003-01.com.ibm:00.fcd0ab21.shark128 \# "123ismysecretpassword.fc1b"###################################################################### 按下列格式输入 MDS 中创建的每个目标(存储)地址: 192.169.240.1 5003 iqn.com.ibm.pok.ppd.z20c4s11e3.hostid.0972f5ec 其中: 192.169.240.1 是 iSCSI 端口的 IP 地址。 iqn.com.ibm.pok.ppd 是 iSCSI 的可解析目标地址。 z20c4s11e3 是主机的 en3 接口。 hostid 由用户输入。 0972f5ec 由用户输入。 运行 cfgmgr –v。 在每一个 AIX 节点上都执行 lspv 命令,并确保这些节点可以访问所有可用的存储。 可选的主机配置 为了在 iSCSI 上获得更优的性能,建议设置下列接口优化参数: tcp_recvspace=262144tcp_sendspace=262144rfc1323=1jumbo frames = yes 命令行输入过程: ifconfig en3 down ifconfig en3 detach chdev –a ent3 –a jumbo_frames=yeschdev –l en3 –a tcp_recvspace=262144chdev –l en3 –a tcp_sendspace=262144chdev –l en3 –a rfc1323=1 ifconfig en3 up 结束语 完成本文介绍的步骤之后,您应该具有对配置的后端存储的访问权限。请继续下一步工作,验证是否提供了所有的存储并且可以进行访问。 ============================================= 1 - Have not seen this done on VIO Server but should work if you go the OS level by issuing oem_setup and then going through the normal procedure to setup the ISCSI initiator and LUNs. 2 - The LUNs are seen as regular hdisks to the AIX client. You can see them by running cfgmgr. 3 - Don't know about this one. I'll have to do some research on this... To install ISCSI on AIX - from NetApp's site: To install iSCSI on AIX 5.2 ML3 follow the steps below: 1. Verify the Maintenance level server is running: # oslevel -r 5200-03 2. Verify the correct iSCSI FileSets have been installed: # lslpp -l | grep -i iscsi devices.common.IBM.iscsi.rte 5.2.0.30 COMMITTED Common iSCSI Files devices.iscsi.disk.rte 5.2.0.30 COMMITTED iSCSI Disk Software devices.iscsi.tape.rte 5.2.0.0 COMMITTED iSCSI Tape Software devices.iscsi_sw.rte 5.2.0.1 COMMITTED iSCSI Software Device Driver devices.iscsi_sw.rte 5.2.0.1 COMMITTED iSCSI Software Device Driver 3. Verify the iSCSI NodeName on the filer: filer> iscsi nodename iSCSI target nodename: iqn.1986-03.com.ibm:sn.135030264 4. Add the IP Address, default iSCSI port number, and iSCSI NodeName of the filer: # tail -2 /etc/iscsi/targets 192.168.5.117 3260 iqn.1986-03.com.ibm:sn.135030264 5. Verify the iSCSI device is available in the kernel: # lsdev -C | grep iscsi iscsi0 Available iSCSI Protocol Device 6. Verify the iSCSI NodeName of the AIX server: # lsattr -El iscsi0 disc_filename /etc/iscsi/targets Configuration file False disc_policy file Discovery Policy True initiator_name iqn.hostid.0a3cc1dc iSCSI Initiator Name True max_targets 16 Maximum Targets Allowed True num_cmd_elems 200 Maximum number of commands to queue to driver True 7. Modify the iSCSI NodeName of the AIX server: NOTE: AIX’s default initiator nodename does not fully comply with RFC and filer nodename requirements. A sample example is given below: #lsattr -El iscsi0 nodename.iqn.aixhost1.hostid.0a3cac46 Change the default initiator nodename to include a date in the second field: iqn.yyyy-mm.hostname.hostid.0a3cac46 Use the following to change the nodename: chdev -l iscsi0 -a initiator_name=iqn.1996-04.aixhost1.hostid.0a3cac46 For this example it will be as shown below: # chdev -l iscsi0 -a initiator_name=iqn.1992-08.com.ibm:aix-rtp.0a3ca1dc chdev -l iscsi0 -a initiator_name=iqn.1992-08.com.ibm:aix-rtp.0a3cb1dc chdev -l iscsi0 -a initiator_name=iqn.1992-08.com.ibm:aix-rtp.0a3cc1dc chdev -l iscsi0 -a initiator_name=iqn.1992-08.com.ibm:aix-rtp.0a3cd1dc chdev -l iscsi0 -a initiator_name=iqn.1992-08.com.ibm:aix-rtp.0a3ce1dc iscsi0 changed 8. Verify the AIX server is logging into the filer: filer> Wed Jun 9 14:40:57 EDT [iscsi.notice:notice]: ISCSI: iswta, New session from initiator iqn.1992-08.com.ibm:aix-rtp.0a3cc1dc at IP addr 10.00.00.00 9. Create an iSCSI igroup on the filer that contains the iSCSI NodeName of the AIX server: filer> igroup create -i aix iqn.1992-08.com.ibm:aix-rtp.0a3cc1dc where is the AIX initiator's nodename 10. Create some LUNs on the filer: filer> lun create -s 1g /vol/test/aix.lun filer> lun create -s 1g /vol/test/aix_5L.lun 11. Map the LUNs to the igroup for the AIX server: filer > lun map /vol/test/aix.lun com.ibm:aix-rtp-iscsi lun map: auto-assigned com.ibm:aix-rtp-iscsi=1 Verify that the lun are mapped filer> lun show -g aix /vol/test/aix.lun 1g (1073741824) (r/w, online, mapped) /vol/test/aix_5L.lun 1g (1073741824) (r/w, online, mapped) 12. Verify that the block devices have not been created for you on the AIX server: # lsdev -Cc disk hdisk0 Available 10-60-00-9,0 16 Bit SCSI Disk Drive hdisk1 Available 10-60-00-8,0 16 Bit LVD SCSI Disk Drive 13. Rescan the iSCSI subsystem for new devices: # cfgmgr -l iscsi0 14. Verify that the block devices have been created for you on the AIX server: # lsdev -Cc disk hdisk0 Available 10-60-00-9,0 16 Bit SCSI Disk Drive hdisk1 Available 10-60-00-8,0 16 Bit LVD SCSI Disk Drive hdisk2 Available Other iSCSI Disk Drive hdisk3 Available Other iSCSI Disk Drive Regards, Chuck
本文档为【在 AIX 上实现 iSCSI】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_532822
暂无简介~
格式:doc
大小:60KB
软件:Word
页数:6
分类:互联网
上传时间:2011-05-24
浏览量:13