AIX: Mounting LUN from EMC SAN

List fibre channel adapters on an AIX box:

# 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 02-08 FC Adapter
fcs1    Available 02-09 FC Adapter
lhea0   Available       Logical Host Ethernet Adapter (l-hea)
sissas0 Available 00-08 PCI-X266 Planar 3Gb SAS Adapter
usbhc0  Available 01-08 USB Host Controller (33103500)
usbhc1  Available 01-09 USB Host Controller (33103500)
vsa0    Defined         LPAR Virtual Serial Adapter
vsa1    Available       LPAR Virtual Serial Adapter
vsa2    Available       LPAR Virtual Serial Adapter

From the output above we have only two fibre channel adapters: “fcs0” and “fcs1”. At this point we check which port has connected a cable and whether the proper communications are taking place between the adapter and the SAN.

Does the first port on the adapter have a cable connected?

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

The answer is No! Because “attached is none”.

Does the second port on the adapter have a cable connected?

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

The answer is Yes, because “attach switch”. This also means that the proper communications are taking place and we should be able to mount a Lun.

Advertisements
This entry was posted in *Nix. Bookmark the permalink.

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