Using cfgadm to display LUNs on Solaris hosts


If you are trying to configure and unconfigure LUNs on a Solaris host, you may be suprised to find that the default ‘cfgadm -al’ output doesn’t display the LUNs on your system. To view the LUNs on a Solaris host, you need to use cfgadm’s show_SCSI_LUN option:

$ cfgadm -al -o show_SCSI_LUN

Ap_Id Type Receptacle Occupant Condition
c3 fc-fabric connected configured unknown
c3::50060161082006e2,0 disk connected configured unknown
c3::50060161082006e2,1 disk connected configured unknown
c3::50060161082006e2,2 disk connected configured unknown
c3::50060161082006e2,3 disk connected configured unknown
c3::50060161082006e2,5 disk connected configured unknown
c3::50060169082006e2,0 disk connected configured unknown
c3::50060169082006e2,1 disk connected configured unknown
c3::50060169082006e2,2 disk connected configured unknown
c3::50060169082006e2,3 disk connected configured unknown
c3::50060169082006e2,5 disk connected configured unknown
c4 fc-fabric connected configured unknown
c4::50060160082006e2,0 disk connected configured unknown
c4::50060160082006e2,1 disk connected configured unknown
c4::50060160082006e2,2 disk connected configured unknown
c4::50060160082006e2,3 disk connected configured unknown
c4::50060160082006e2,5 disk connected configured unknown
c4::50060168082006e2,0 disk connected configured unknown
c4::50060168082006e2,1 disk connected configured unknown
c4::50060168082006e2,2 disk connected configured unknown
c4::50060168082006e2,3 disk connected configured unknown
c4::50060168082006e2,5 disk connected configured unknown
This article was posted by Matty on 2006-05-30 10:39:00 -0400 EDT