HPACUCLI – Mapping a disk to a linux mount point /dev/sdx

Found this little nugget by accident but here is the command to use hpacucli on linux to determine which logical disk is mapped to which mount point

[root@ceph1 ~]# /usr/sbin/uname26 hpacucli controller slot=2 ld 3 show

Smart Array P410 in Slot 2

array C

Logical Drive: 3
 Size: 3.6 TB
 Fault Tolerance: 0
 Heads: 255
 Sectors Per Track: 32
 Cylinders: 65535
 Strip Size: 256 KB
 Full Stripe Size: 256 KB
 Status: OK
 Caching: Enabled
 Unique Identifier: 600508B1001C953FDF746410876C6824
 Disk Name: /dev/sdb
 Mount Points: /var/lib/ceph/osd/ceph-58 3.6 TB
 OS Status: LOCKED
 Logical Drive Label: A9874C30PACCRID105108LP4D16
 Drive Type: Data

[root@adlwest-ceph70 ~]# /usr/sbin/uname26 hpacucli controller slot=2 ld 4 show

Smart Array P410 in Slot 2

array D

Logical Drive: 4
 Size: 3.6 TB
 Fault Tolerance: 0
 Heads: 255
 Sectors Per Track: 32
 Cylinders: 65535
 Strip Size: 256 KB
 Full Stripe Size: 256 KB
 Status: Failed
 Caching: Enabled
 Unique Identifier: 600508B1001C9435EB0B8689EAB537B1
 Mount Points: None
 Logical Drive Label: A9875C36PACCRID105108LP839F
 Drive Type: Data