Obtenemos información sobre las LUN ofrecidas y los path de accesos
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -lu|sed -n -e '/hdisk1/{x;1!p;g;$!N;p;D;}' -e h
iLU HDevName OSPathID PathID Status
0503 hdisk1 00002 000000 Online
00000 000001 Online
Ahora en función del PathID obtenidos 000000 000001 vamos a analizar el path
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -path | grep -E '^000000|^000001'
000000 01.03.0000000000010100.0014 HITACHI .DF600F .83041086 0503 0B Online Own 15211 0 0 hdisk1
000001 00.03.0000000000010100.0014 HITACHI .DF600F .83041086 0503 0A Online Own 24675 0 0 hdisk1
Ahora analizamos la hba
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -hba
HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths
00000 01.03 15227 0 1 1
00001 00.03 24691 0 1 1
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2010/02/05 08:50:17
Analizamos las fcs
bash-3.2# lsdev|grep fcs
fcs0 Available 03-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 03-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
Analizamos el disco asociado
bash-3.2# lsdev|grep hdisk1
hdisk1 Available 03-00-02 Hitachi Disk Array (Fibre)
bash-3.2# lscfg|grep hdisk1
* hdisk1 U78A0.001.DNWHA75-P1-C2-T1-W50060E80104AC360-L14000000000000 Hitachi Disk Array (Fibre)
Ahora con lspath vemos que caminos al disco hdisk1 estan habilitados
bash-3.2# lspath -F'status name path_id parent connection' | grep -w hdisk1
Enabled hdisk1 0 fscsi0 50060e80104ac360,14000000000000
Missing hdisk1 1 fscsi0 50060e80104ac362,14000000000000
Enabled hdisk1 2 fscsi1 50060e80104ac361,14000000000000
Missing hdisk1 3 fscsi1 50060e80104ac363,14000000000000
Podemos afirmar que el Pathid 0 está activo para el disco hdisk1 y pasa a través de fscsi0
y el Pathid 2 está activo para el disco hdisk1 y pasa a través de fscsi1
Vamos a poner offline el PathId 1 para ver que repercusiones trae
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr offline -pathid 1 -s
KAPL01061-I 1 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline
bash-3.2#
/usr/DynamicLinkManager/bin/dlnkmgr view -lu|sed -n -e '/hdisk1/{x;1!p;g;$!N;p;D;}' -e h
iLU HDevName OSPathID PathID Status
0503 hdisk1 00002 000000 Online
00000 000001 Offline(C)
Podemos ver que el PathId 1 esta offline efectivamente.
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -hba
HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths
00000 01.03 15684 0 1 1
00001 00.03 25024 0 1 0
Y podemos ver que ahora en la columna de OnlinePath tenemos un 0 en lugar de un 1
bash-3.2# lspath -F'status name path_id parent connection' | grep -w hdisk1
Disabled hdisk1 0 fscsi0 50060e80104ac360,14000000000000
Missing hdisk1 1 fscsi0 50060e80104ac362,14000000000000
Enabled hdisk1 2 fscsi1 50060e80104ac361,14000000000000
Missing hdisk1 3 fscsi1 50060e80104ac363,14000000000000
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -path
Paths:000002 OnlinePaths:000001
PathStatus IO-Count IO-Errors
Reduced 40780 0
PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 01.03.0000000000010100.0014 HITACHI .DF600F .83041086 0503 0B Online Own 15756 0 0 hdisk1
000001 00.03.0000000000010100.0014 HITACHI .DF600F .83041086 0503 0A Offline(C) Own 25024 0 0 hdisk1
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2010/02/05 09:12:58
Todavía tengo disponible el acceso al disco que es lo que me interesaba
bash-3.2# lsdev -Cc disk|grep hdisk1
hdisk1 Available 03-00-02 Hitachi Disk Array (Fibre)
bash-3.2# lspath | grep hdisk1
Disabled hdisk1 fscsi0
Missing hdisk1 fscsi0
Enabled hdisk1 fscsi1
Missing hdisk1 fscsi1
Vuelvo a activarlo
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr online -pathid 1 -s
KAPL01061-I 1 path(s) were successfully placed Online; 0 path(s) were not. Operation name = online
y pongo offline el 0
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr offline -pathid 0 -s
KAPL01061-I 1 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -lu|sed -n -e '/hdisk1/{x;1!p;g;$!N;p;D;}' -e h
iLU HDevName OSPathID PathID Status
0503 hdisk1 00002 000000 Offline(C)
00000 000001 Online
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -hba
HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths
00000 01.03 15974 0 1 0
00001 00.03 25179 0 1 1
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2010/02/05 09:21:42
bash-3.2# /usr/DynamicLinkManager/bin/dlnkmgr view -path
Paths:000002 OnlinePaths:000001
PathStatus IO-Count IO-Errors
Reduced 41199 0
PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 01.03.0000000000010100.0014 HITACHI .DF600F .83041086 0503 0B Offline(C) Own 15974 0 0 hdisk1
000001 00.03.0000000000010100.0014 HITACHI .DF600F .83041086 0503 0A Online Own 25225 0 0 hdisk1
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2010/02/05 09:22:42
bash-3.2# lsdev -Cc disk|grep hdisk1
hdisk1 Available 03-00-02 Hitachi Disk Array (Fibre)
bash-3.2# lspath | grep hdisk1
Enabled hdisk1 fscsi0
Missing hdisk1 fscsi0
Disabled hdisk1 fscsi1
Missing hdisk1 fscsi1
Comentarios
Publicar un comentario