April 24, 2012

Solaris: how to resolve logical controller to physical path

Posted in Solaris at 3:48 pm by alessiodini

Yesterday i was envolved in troubleshooting a SAN problem on a Solaris 10 system. During that task i need to resolve physical path from logical controller.
Logical Controller:

c3 fc-fabric connected configured unknown
c3::5006048c49aeb359 disk connected configured unknown
c3::5006048c49d51707 disk connected configured unknown

c6 fc-fabric connected configured unknown
c6::5006048449d51728 disk connected configured unknown
c6::5006048c49aeb356 disk connected configured unknown

Physical Paths:

luxadm -e port
/devices/pci@5c,600000/SUNW,qlc@1/fp@0,0:devctl CONNECTED
/devices/pci@5c,600000/SUNW,qlc@1,1/fp@0,0:devctl NOT CONNECTED
/devices/pci@7c,600000/SUNW,qlc@1/fp@0,0:devctl CONNECTED
/devices/pci@7c,600000/SUNW,qlc@1,1/fp@0,0:devctl NOT CONNECTED

My question was: “I have to verify c3 … which of physical path does correspond to it?”
I was funny to answer to my question 😉

Starting from c3:


Starting from the first physical path available:


luxadm -e dump_map /devices/pci@5c,600000/SUNW,qlc@1/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 15300 0 5006048c49d51707 5006048c49d51707 0x0 (Disk device)
1 17900 0 5006048c49aeb359 5006048c49aeb359 0x0 (Disk device)
2 12b00 0 210000e08b936d1f 200000e08b936d1f 0x1f (Unknown Type,Host Bus Adapter)

Wow found at first time! I was a little bit lucky 🙂

So , it’s possible to combine output from cfgadm/luxadm commands for retrieve physical path!


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: