Thursday, 18 May 2017

How to get the SAN Storage Information on AIX Operating System

If you are using IBM AIX Operating System and wants to work on Storage part, then you need understand basic of SAN fiber connectivity with server.

In blog, I would show you all the commands with an example, through which you can get an idea how SAN fiber connect with server and works.

➤ If you want to see how many fiber card (FC) adapter are present on the AIX operating system then please run the below command.

ibm_aix:/> lsdev -Cc adapter | grep fcs

"lsdev" command used for to check the FC adapter present on the IBM AIX servers. In the below line you can find the command output.

ibm_aix:/> lsdev -Cc adapter | grep fcs
fcs0    Available 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1    Available 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2    Available 03-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3    Available 03-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

In above command output, you can see on my AIX machine , I have 4 FC card adapter present. Each card adapter have dual port 8Gb. You can see the available adapter name like "fcs0,fcs1". It would be different on every AIX server depend up which type of storage you used.

➤ If you want to check WWN number or SAN ID, please use the below command to check specific information.

ibm_aix:/> lscfg -vl fcs2 | grep "Network Address"
        Network Address.............10000090FAC8D594

In above example, "lscfg" command use to check the all information about a adapter. In my machine , I need an information about WWN  of third adapter "fcs2" which are present on the AIX server. 

This command show you the wwn or SAN ID number which are connected to the server.

➤ If you want to see the fiber card adapter current status, then please use the below command. This command show you regarding the fiber health and all the information regarding the fiber.

ibm_aix:/> fcstat fcs0

FIBRE CHANNEL STATISTICS REPORT: fcs0

Device Type: FC Adapter (adapter/pciex/df1000f114108a0)
Serial Number: 1A550004C1
Option ROM Version: 027820F5
ZA: U2D2.03X5
World Wide Node Name: 0x20000090FACA86B4
World Wide Port Name: 0x10000090FACA86B4

Output of this command "fcstat" is very long so I can not write here, you can run this command on your AIX platform and check all the information. 

Please post your comment on this blog, if you have any query regarding this topic. I will try to resolve your query as earliest.

No comments:

Post a Comment