分类:
2010-02-03 10:33:16
1、 IBM从AIX 5200-03开始,在操作系统基本包中包含了iscsi的驱动程序,AIX一般已经安装了iscsi驱动
$ lslpp -L|grep -i iscs
devices.common.IBM.iscsi.rte
5.2.0.105 C F Common iSCSI Files
devices.iscsi.disk.rte 5.2.0.105 C F iSCSI Disk Software
devices.iscsi.tape.rte 5.2.0.0 C F iSCSI Tape Software
devices.iscsi_sw.rte 5.2.0.105 C F iSCSI Software Device Driver
2、需要将网络和iscsi存储相连,配置好本地ip,(xxx.xxx.xxx.xxx 为iscsi设备的业务ip)
配置target,具体的可以看文件中的说明
/etc/iscsi/targets
xxx.xxx.xxx.xxx port yyyyy
其中yyyyy 为目标存储的iscsi name 例iqn.2006-01.com.openfiler:home.is
3、配置好之后
cfgmgr -v –l iscsi0,没有错误的话可以找到新的硬盘
attempting to configure device 'iscsi0'
Time: 0 LEDS: 0x25b0
invoking /usr/lib/methods/cfgiscsi -l iscsi0
Number of running methods: 1
----------------
Completed method for: iscsi0, Elapsed time = 1
return code = 0
****************** stdout ***********
hdisk4
****************** no stderr ***********
----------------
Time: 1 LEDS: 0x539
Number of running methods: 0
----------------
attempting to configure device 'hdisk4'
Time: 1 LEDS: 0x25f3
invoking /usr/lib/methods/cfgscsidisk -l hdisk4
Number of running methods: 1
----------------
Completed method for: hdisk4, Elapsed time = 0
return code = 0
****************** no stdout ***********
****************** no stderr ***********
----------------
Time: 1 LEDS: 0x539
Number of running methods: 0
----------------
calling savebase
return code = 0
****************** no stdout ***********
****************** no stderr ***********
Configuration time: 1 seconds
4、lspv可列出新硬盘hdisk4
IBM官方回复的方法
在AIX连接iscsi设备的大概步骤如下:
1.首先确认iscsi设备是否存在,状态是否正常
# lsdev -C |grep iscsi
iscsi0 Available iSCSI Protocol Device
# lsattr -El iscsio
disc_filename /etc/iscsi/targets Configuration file False
disc_policy file Discovery Policy True
initiator_name iqn.aix61testos2.hostid.0a0a0a0d iSCSI Initiator Name True
isns_srvnames auto iSNS Servers IP Addresses True
isns_srvports iSNS Servers Port Numbers True
max_targets 16 Maximum Targets Allowed True
num_cmd_elems 200 Maximum number of commands to queue to driver True
2.修改/etc/iscsi/targets文件,按照如下格式加入server的信息
22.64.21.2 3260 iqn.1992-08.com.netapp:sn.101174332
IP,Port和iSCSI地址
3.识别iscsi设备
# cfgmgr -l iscsi0
4.上述步骤完成之后应该就可以看到磁盘了
# lsdev -Cc disk
...
hdisk2 Available Other iSCSI Disk Drive
hdisk3 Available Other iSCSI Disk Drive