Configuring iSCSI on AIX 5.2

Posted on 2008-10-16
Last Modified: 2013-11-17

I would just like to ask regarding procedures in implementing iSCSI with AIX 5.2, using an iSCSI software initiator, and a NetApp FAS270. Apparently Im pretty much clueless in what to do on the AIX side. here is the data Ive gathered so far.

AIX iSCSI FileSets installed in AIX TEST Server:

  devices.common.IBM.iscsi.rte          COMMITTED          Common iSCSI Files
  devices.iscsi.disk.rte                  COMMITTED        iSCSI Disk Software
  devices.iscsi.tape.rte                          COMMITTED          iSCSI Tape Software
  devices.iscsi_sw.rte                  COMMITTED          iSCSI Software Device Driver
  devices.pci.1410cf02.diag                  COMMITTED          1000 Base-SX PCI-X iSCSI TOE
  devices.pci.1410cf02.rte                  COMMITTED          1000 Base-SX PCI-X iSCSI TOE                  COMMITTED          Common PCI iSCSI TOE Adapter
  devices.pci.1410d002.diag                  COMMITTED          1000 Base-TX PCI-X iSCSI TOE
  devices.pci.1410d002.rte                  COMMITTED          1000 Base-TX PCI-X iSCSI TOE
  devices.common.IBM.iscsi.rte                  COMMITTED          Common iSCSI Files
  devices.iscsi_sw.rte                  COMMITTED          iSCSI Software Device Driver                  COMMITTED          Common PCI iSCSI TOE Adapter
  devices.pci.1410d002.rte                  COMMITTED          1000 Base-TX PCI-X iSCSI TOE

1.) does this mean that iSCSI initiator is installed in the system? If yes there would be no more downtime required ryt?
2.) how do I identify the initiator name of the sytem?
3.) How do I define the target system?
4.) How do I detect the newly created/mapped LUNs?
5.) How do I reformat and install FS to the LUNs

If any one can provide me any documentation regarding this, I would really appreciate it.

Newbie here
Question by:lordofkharma
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 10

Accepted Solution

dfke earned 500 total points
ID: 22729558
To install iSCSI on AIX 5.2 ML3 follow the steps below:

1. Verify the Maintenance level server is running:

# oslevel -r

2. Verify the correct iSCSI FileSets have been installed:
 # lslpp -l | grep -i iscsi
devices.common.IBM.iscsi.rte COMMITTED Common iSCSI Files
devices.iscsi.disk.rte COMMITTED iSCSI Disk Software
devices.iscsi.tape.rte COMMITTED iSCSI Tape Software
devices.iscsi_sw.rte COMMITTED iSCSI Software Device Driver
devices.iscsi_sw.rte COMMITTED iSCSI Software Device Driver

3. Verify the iSCSI NodeName on the filer:

filer> iscsi nodename
iSCSI target nodename:

4. Add the IP Address, default iSCSI port number, and iSCSI NodeName of the filer:

# tail -2 /etc/iscsi/targets 3260

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: AIXs default initiator nodename does not fully comply with RFC and filer nodename requirements.
A sample example is given below:
#lsattr -El iscsi0
Change the default initiator nodename to include a date in the second field:
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
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 at IP addr

9. Create an iSCSI igroup on the filer that contains the iSCSI NodeName of the AIX server:

filer> igroup create -i aix    
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
        lun map: auto-assigned

 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

Author Comment

ID: 22731421
So this mean that iSCSI is already installed and there is no more downtime required...thanks will try this ASAP.

Author Comment

ID: 22992239

Done with the steps provided above and mapping the iSCSI LUN has been successfull, only thing to do is to create a file system to the new block device "hdisk0".....Do I still have to create a partition like what we ussually do in RHEL? or I go straight to making an FS?.....

another thing is how do I change this thread's status as answered? I believe dfke already met the objectives? its current status is still comment....


Expert Comment

ID: 33094590
In step #9 create an iSCSI group in the NetApp filer, it is missing the -t for the type of OS.  My FAS 2020 will not take it without the -t before the aix.
filer> igroup create -i -t aix    

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question