[OpenIndiana-discuss] Best way to map SAS drives to physical positions

Jeppe Toustrup openindiana at tenzer.dk
Mon Oct 3 14:15:18 UTC 2011


On Mon, Oct 3, 2011 at 16:00, James Carlson <carlsonj at workingcode.com> wrote:
> Have you tried "cfgadm -lv"?

Yes, "cfgadm -lv" does not list the drives connected through SAS, but
"cfgadm -lav" does. The output does however not make me much wiser
than the output I can get from path_to_inst (only lines related to SAS
drives shown):

Ap_Id                          Receptacle   Occupant     Condition
Information                                           When
Type         Busy     Phys_Id
c7::w5000cca369c3af7d,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C3AF7Dd0s0(sd5)  unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c3af7d,0
c7::w5000cca369c5b1db,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5B1DBd0s0(sd8)  unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5b1db,0
c7::w5000cca369c5b22b,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5B22Bd0s0(sd12) unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5b22b,0
c7::w5000cca369c5b44c,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5B44Cd0s0(sd10) unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5b44c,0
c7::w5000cca369c5bb0c,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5BB0Cd0s0(sd11) unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5bb0c,0
c7::w5000cca369c5bc27,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5BC27d0s0(sd7)  unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5bc27,0
c7::w5000cca369c5c30c,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5C30Cd0s0(sd4)  unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5c30c,0
c7::w5000cca369c5cd7c,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5CD7Cd0s0(sd9)  unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5cd7c,0
c7::w5000cca369c5cf1a,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C5CF1Ad0s0(sd13) unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c5cf1a,0
c7::w5000cca369c248f7,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C248F7d0s0(sd3)  unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c248f7,0
c7::w5000cca369c03102,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C03102d0s0(sd14) unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c03102,0
c7::w5000cca369c40412,0        connected    configured   unknown
Client Device: /dev/dsk/c8t5000CCA369C40412d0s0(sd6)  unavailable
disk-path    n
/devices/pci at 0,0/pci8086,340c at 5/pci1000,30d0 at 0/iport at f:scsi::w5000cca369c40412,0

(If the output wraps horribly, then have a look at the output here:
https://gist.github.com/1259182)

--
Venlig hilsen / Kind regards
Jeppe Toustrup (aka. Tenzer)



More information about the OpenIndiana-discuss mailing list