To install ISCSI on AIX - from NetApp's site

 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.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          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.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 <iqn.1992-08.com.ibm:aix-rtp.0a3cc1dc> 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

你可能感兴趣的:(Date,server,AIX,include,logging,disk)