find out the lun details on AIX server use the below commands and scripts.
[root@ai1028:/home/root]# lsdev | grep hdisk
hdisk0 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk1 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk2 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk3 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk4 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk5 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk6 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk7 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk8 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk9 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk10 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
hdisk11 Available 04-T1-01 XP MPIO Disk P9500 (Fibre)
i=12 means, 12 hdisks are there on the server
[root@ai1028:/home/root]# i=0;while((i<=12));do lscfg -vpl hdisk$i |grep -i hdisk;((i=$i+1));done
hdisk0 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-LB000000000000 XP MPIO Disk P9500 (Fibre)
hdisk1 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L0 XP MPIO Disk P9500 (Fibre)
hdisk2 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L1000000000000 XP MPIO Disk P9500 (Fibre)
hdisk3 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L2000000000000 XP MPIO Disk P9500 (Fibre)
hdisk4 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L3000000000000 XP MPIO Disk P9500 (Fibre)
hdisk5 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L4000000000000 XP MPIO Disk P9500 (Fibre)
hdisk6 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L5000000000000 XP MPIO Disk P9500 (Fibre)
hdisk7 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L6000000000000 XP MPIO Disk P9500 (Fibre)
hdisk8 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L7000000000000 XP MPIO Disk P9500 (Fibre)
hdisk9 U8408.E8D.107031T-V8-C604-T1-W50060E80166F8D32-L8000000000000 XP MPIO Disk P9500 (Fibre)
[root@ai1028:/home/root]# lsdev -Cc adapter |grep -i Fibre
fcs0 Available 04-T1 Virtual Fibre Channel Client Adapter
fcs1 Available 05-T1 Virtual Fibre Channel Client Adapter
fcs2 Available 04-T1 Virtual Fibre Channel Client Adapter
fcs3 Available 05-T1 Virtual Fibre Channel Client Adapter
fcs4 Available 04-T1 Virtual Fibre Channel Client Adapter
fcs5 Available 04-T1 Virtual Fibre Channel Client Adapter
i=5 means, 5 fcs adapters are there.
[root@test:/home/root]# i=0;while((iwwn on AIX
Network Address………….C0507606A6C5003A
Network Address………….C0507606A6C5003C
Network Address………….C0507606A6C5003E
Network Address………….C0507606A6C50040
Network Address………….C0507606A6C50056
Network Address………….C0507606A6C50058
[test]#i=0;while((i LUN ID on AIX 5.3
value = “1F0C50 16F8D012006OPEN-V02HPfcp”
value = “1F0C50 16F8D003F06OPEN-V02HPfcp”
value = “1F0C50 16F8D004006OPEN-V02HPfcp”
value = “1F0C50 16F8D004106OPEN-V02HPfcp”
value = “1F0C50 16F8D004206OPEN-V02HPfcp”
value = “1F0C50 16F8D004306OPEN-V02HPfcp”
value = “1F0C50 16F8D004406OPEN-V02HPfcp”
value = “1F0C50 16F8D004506OPEN-V02HPfcp”
value = “1F0C50 16F8D004606OPEN-V02HPfcp”
value = “1F0C50 16F8D004706OPEN-V02HPfcp”
value = “1F0C50 16F8D004806OPEN-V02HPfcp”
value = “1F0C50 16F8D004906OPEN-V02HPfcp”
==============================
LUN ID example
0120
03F0
0040
0041
================================
[test]#i=0;while((isize of the disk(LUN)
1200
03F0
0400
0410
0420
0430
0440
0450
0460
0470
0480
0490
Comments
Post a Comment