在f3020-1上创建基于AIX系统的igroup -> aix 进入FilerView->LUNs->Initiator Groups->Add 完成如下配置基于AIX的iSCSI,输入AIX主机的iSCSI地址 (参考手册下半部关于AIX配置部分,得到AIX的iSCSI地址 #lsattr -El iscsi0 iqn.2006-01.localhost.hostid.7f000001) 点击Add完成配置 进入FilerView->LUNs->Initiator Groups->Manage进行查看 命令行查看关于igroup配置 f3020-1> igroup show aix (iSCSI) (ostype: aix): iqn.2006-01.localhost.hostid.7f000001 (not logged in) 进入FilerView->LUNs->Add 建立基于AIX的2GB LUN: /vol/vol1/test.lun 输入相应参数,点击Add 进入FilerView->LUNs->Manage检查 点击“No Map”,点击“Add Groups to Map” 点击已建好的igroup名称AIX 输入LUN映射ID ->(0),点击“Apply” LUN映射AIX系统成功 进入FilerView->LUNs->Manage检查 命令行查看 LUN的配置 3020-1> lun show -m LUN path Mapped to LUN ID Protocol ----------------------------------------------------------------------- /vol/vol1/test.lun aix 0 iSCSI f3020-1> lun show -v /vol/vol1/test.lun 2g (21474838) (r/w, online, mapped) Comment: \"test\" Serial#: C4dqNZ2lOWVf Share: none Space Reservation: enabled Multiprotocol Type: aix Maps: aix=0 在AIX检查系统版本,实际版本为5.2.0.60以上 # lslpp -l | grep devices.iscsi 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 # lsattr -El iscsi0 iqn.localhost.hostid.7f000001 在AIX查找 iSCSI地址 修改iSCSI地址 #chdev -l iscsi0 -a initiator_name= iqn.2006-01.localhost.hostid.7f000001 查看并获得Filer的iSCSI地址 进入FilerView->LUNs->ISCSI-> Manage iSCSI Names检查 或在Filer“iscsi nodename” 编辑系统文件 /etc/iscsi/targets 添加关于Filer的内容 查找新的iSCSI 设备 查找新设备,发现新的硬盘 22..21.2 3260 iqn.1992-08.com.netapp:sn.101174332 (Filer的IP,Port和iSCSI地址) #cfgmgr -l iscsi0 # lsdev -Cc disk … Hdisk6 Available Other iSCSI Disk Drive 修改相关参数 #chdev -l hdisk2 -a rw_timeout=180 “rw_timeout”#chdev -l hdisk2 -a queue_depth=32 和“queue_depth”
Installing iSCSI on AIX 5.2
To install iSCSI on AIX 5.2 ML3, follow these steps: 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.1992-08.com.netapp:sn.33580086
4. Add the IP Address, default iSCSI port number, and iSCSI NodeName of the filer:
# tail -2 /etc/iscsi/targets
10.00.000.188 3260 iqn.1992-08.com.netapp:sn.33580086 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 i
SCSI 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.0a3cc1dc 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 LUNs 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) This causes AIX to rescan and log into the filer. $ cfgmgr -v
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