Originally posted by: grukrz1
hmmm,,, so, please help me explain the following:
# /usr/DynamicLinkManager/bin/dlnkmgr view -lu|sed -n -e
'/hdisk3/{x;1!p;g;$!N;p;D;}' -e h iLU HDevName OSPathID PathID Status 0011 hdisk3 00000 000000 Online 00001 000006 Online
I am going to find the HBA active hdisk3's path goes through:
# /usr/DynamicLinkManager/bin/dlnkmgr view -path|grep -E
'^000000|^000006' 000000 00.02.0000000000063A00.0001 HITACHI .DF600F .7233 0011 1D Online Own 29 0 0 hdisk3 000006 00.03.0000000000010300.0001 HITACHI .DF600F .7233 0011 0A Online Non 14 0 0 hdisk3
# /usr/DynamicLinkManager/bin/dlnkmgr view -hba HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths 00000 00.02 74 0 4 4 00001 00.03 65 0 4 4
# lsdev|grep fcs fcs0 Available 02-00 4Gb FC PCI Express Adapter (df1000fe) fcs1 Available 03-00 4Gb FC PCI Express Adapter (df1000fe)
# lsdev|grep hdisk3 hdisk3 Available 03-00-02 Hitachi Disk Array (Fibre)
# lscfg|grep hdisk3 * hdisk3 U789C.001.DQDJ311-P1-C2-T1-W50060E8000C43510-L1000000000000 Hitachi Disk Array (Fibre)
# lspath -F
'status name path_id parent connection' | grep -w hdisk3 Enabled hdisk3 0 fscsi0 50060e8000c43517,1000000000000 Enabled hdisk3 1 fscsi1 50060e8000c43510,1000000000000
It looks, that the pathid 6 is active for hdisk3 and goes through fcs1, but...
When I set pathid 6 offline:
# /usr/DynamicLinkManager/bin/dlnkmgr offline -pathid 6 -s KAPL01061-I 1 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline #
# /usr/DynamicLinkManager/bin/dlnkmgr view -lu|sed -n -e
'/hdisk3/{x;1!p;g;$!N;p;D;}' -e h iLU HDevName OSPathID PathID Status 0011 hdisk3 00000 000000 Online 00001 000006 Offline(C)
# /usr/DynamicLinkManager/bin/dlnkmgr view -hba HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths 00000 00.02 74 0 4 4 00001 00.03 65 0 4 3
# lspath -F
'status name path_id parent connection' | grep -w hdisk3 Enabled hdisk3 0 fscsi0 50060e8000c43517,1000000000000 Disabled hdisk3 1 fscsi1 50060e8000c43510,1000000000000 #
I still see "03-00" and connection "W50060E8000C43510" pointing to fscsi1 shown above as disabled path.
# lsdev -Cc disk|grep hdisk3 hdisk3 Available 03-00-02 Hitachi Disk Array (Fibre)
# lsdev -Cc adapter|grep fcs fcs0 Available 02-00 4Gb FC PCI Express Adapter (df1000fe) fcs1 Available 03-00 4Gb FC PCI Express Adapter (df1000fe)
# lscfg|grep hdisk3 * hdisk3 U789C.001.DQDJ311-P1-C2-T1-W50060E8000C43510-L1000000000000 Hitachi Disk Array (Fibre)
So, when both paths are online what is the reliable method to find active path?
#AIX-Forum