AIX, FC Switch, Netapp

I recently had to hook up a LUN from our NetApp to an old AIX 5 box.  Lucky for me we had 2 dual HBA’s that were already working and in place on the system.  We had used 2 ports (for MPIO – one on each card) to hook to our older EMC CX-4.  This left me with 2 open ports to hook up to our netapp.   We have a pair Cisco 9100 series 4GB FC switches for our fabric (next upgrade – will be a pair of 5548).  In this case I was just trying to get one strand of fibre connected to one of the switches.  I’ll get real MPIO going later.

Step 1 – Verify the HBA’s on the AIX side

# lsdev -Cc adapter

ent0 Available Logical Host Ethernet Port (lp-hea)
ent1 Available Logical Host Ethernet Port (lp-hea)
ent2 Available Logical Host Ethernet Port (lp-hea)
ent3 Available Logical Host Ethernet Port (lp-hea)
fcs0 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 07-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 07-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
lhea0 Available Logical Host Ethernet Adapter (l-hea)
sa0 Available 02-08 IBM 8-Port EIA-232/RS-422A (PCI) Adapter
sissas0 Available 00-08 PCI-X266 Planar 3Gb SAS Adapter
sissas1 Available 04-00 PCI Express x8 Ext Dual-x4 3Gb SAS Adapter
sissas2 Available 03-08 PCI-X266 Ext Dual-x4 3Gb SAS Adapter
sisscsia0 Defined 03-08 PCI-XDDR Dual Channel Ultra320 SCSI Adapter
usbhc0 Available 01-08 USB Host Controller (33103500)
usbhc1 Available 01-09 USB Host Controller (33103500)
usbhc2 Available 01-0a USB Enhanced Host Controller (3310e000)
vsa0 Available LPAR Virtual Serial Adapter
vsa1 Available LPAR Virtual Serial Adapter

Step 2 – Get the WWN (second port of the second HBA)

# lscfg -vl fcs3
fcs0 U78A0.001.0000000-P1-C2-T1 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

Part Number……………..10N9824
Serial Number……………1B00804048
Manufacturer…………….001B
EC Level………………..D76482B
Customer Card ID Number…..577D
FRU Number………………10N9824
Device Specific.(ZM)……..3
Network Address………….10000000C99B2556
ROS Level and ID…………02781174
Device Specific.(Z0)……..31004549
Device Specific.(Z1)……..00000000
Device Specific.(Z2)……..00000000
Device Specific.(Z3)……..09030909
Device Specific.(Z4)……..FF781116
Device Specific.(Z5)……..02781174
Device Specific.(Z6)……..07731174
Device Specific.(Z7)……..0B7C1174
Device Specific.(Z8)……..20000000C99B2556
Device Specific.(Z9)……..US1.11X4
Device Specific.(ZA)……..U2D1.11X4
Device Specific.(ZB)……..U3K1.11X4
Device Specific.(ZC)……..000000EF
Hardware Location Code……U78A0.001.0000000-P1-C2-T1

Step 3 – wire it up.  connect the cable from the switch to the AIX box

Step 4 – See if it can see the switch.  In this case I was hooking it to the second port on the second HBA.

# lsattr -El fscsi3
attach switch How this adapter is CONNECTED False
dyntrk no Dynamic Tracking of FC Devices True
fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True
scsi_id 0x831c00 Adapter SCSI ID False
sw_fc_class 3 FC Class for Fabric True

If this says “attach none” you need to do step 5.

Step 5 – Rescan

# cfgmgr -v

Step 6 – zone your switch (that’s a whole different post)

Step 7 – provision your storage

Step 8 – rescan for LUN’s

# cfgmgr -v

Step 9 – check to see if it can see the disk

# lsdev -Cc disk
hdisk0 Available 00-08-00 SAS Disk Drive
hdisk1 Available 04-00-00 SAS Disk Drive
hdisk2 Available 07-01-01 EMC CLARiiON FCP LUNZ Disk
hdisk3 Available 05-00-01 EMC CLARiiON FCP RAID 1/0 Disk
hdisk4 Available 07-01-01 EMC CLARiiON FCP LUNZ Disk
hdisk5 Available 05-00-01 EMC CLARiiON FCP RAID 1/0 Disk
hdisk6 Available 07-01-01 Other FC SCSI Disk Drive
hdisk7 Available 07-00-01 EMC CLARiiON FCP RAID 1/0 Disk
hdisk8 Available 07-01-01 Other FC SCSI Disk Drive
hdisk9 Available 07-00-01 EMC CLARiiON FCP RAID 1/0 Disk
hdisk10 Available 07-01-01 Other FC SCSI Disk Drive
hdisk11 Available 07-01-01 Other FC SCSI Disk Drive
hdiskpower0 Available 07-00-01 PowerPath Device

There’s my LUN.  Now I’ll have to figure out the MPIO – It works for the EMC using power path.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s