libstorage / libstoragemgmt

A library for storage management
https://libstorage.github.io/libstoragemgmt-doc/
GNU Lesser General Public License v2.1
83 stars 32 forks source link

NO_SUPPORT(153): Failed to find any SCSI enclosure with given SAS address #432

Closed quayuan closed 3 years ago

quayuan commented 4 years ago

I compiled and installed libStorageMgmt on ubuntu18.04.

The test functionality is available after I have installed it through source compilation:

root@ubuntu:~# lsmcli -u 'sim://' list --type systems

ID     | Name                          | Status | Info | FW Ver                                                  | Mode    | Read Cache Percentage
--------------------------------------------------------------------------------------------------------------------------------------------------
sim-01 | LSM simulated storage plug-in | OK     |      | LSM_SIMULATOR_DATA_4.1_895a074a5b216322121b5f76bc831927 | HW RAID | 10   

root@ubuntu:~# lsmcli -u 'sim://' ld
ID            | Name               | Type | Size                | Status  | System ID | SCSI VPD 0x83    | Disk Paths | Revolutions Per Minute | Link Type
----------------------------------------------------------------------------------------------------------------------------------------------------------
DISK_ID_00001 | 2TiB SATA Disk_1   | SATA | 2199023255552       | OK      | sim-01    | 5033df8eb2f64cc3 |            | 7200                   | PATA/SATA
DISK_ID_00002 | 2TiB SATA Disk_2   | SATA | 2199023255552       | OK      | sim-01    | 50fdb499646462d6 |            | 7200                   | PATA/SATA
DISK_ID_00003 | 2EiB SAS Disk_3    | SAS  | 1152921504606846976 | OK      | sim-01    | 50f87fff26fcc102 |            | 15000                  | SAS      
DISK_ID_00004 | 2EiB SAS Disk_4    | SAS  | 1152921504606846976 | OK      | sim-01    | 50493d80d2af4151 |            | 15000                  | SAS      
DISK_ID_00005 | 2EiB SAS Disk_5    | SAS  | 1152921504606846976 | OK,Free | sim-01    | 50ce3acfae81f173 |            | 15000                  | SAS      
DISK_ID_00006 | 2EiB SAS Disk_6    | SAS  | 1152921504606846976 | OK,Free | sim-01    | 5032efc31ac264df |            | 15000                  | SAS      
DISK_ID_00007 | 2EiB SAS Disk_7    | SAS  | 1152921504606846976 | OK,Free | sim-01    | 50114d25b08763fb |            | 15000                  | SAS      
DISK_ID_00008 | 2EiB SAS Disk_8    | SAS  | 1152921504606846976 | OK,Free | sim-01    | 5085ae59b0a18abc |            | 15000                  | SAS      
DISK_ID_00009 | 512GiB SSD Disk_9  | SSD  | 549755813888        | OK      | sim-01    | 504bcb525e3af58b |            | Non-Rotating Medium    | PATA/SATA
DISK_ID_00010 | 512GiB SSD Disk_10 | SSD  | 549755813888        | OK      | sim-01    | 50e51dd12e9d0a80 |            | Non-Rotating Medium    | PATA/SATA
DISK_ID_00011 | 512GiB SSD Disk_11 | SSD  | 549755813888        | OK,Free | sim-01    | 50d9b3aa1c8ab268 |            | Non-Rotating Medium    | PATA/SATA
DISK_ID_00012 | 512GiB SSD Disk_12 | SSD  | 549755813888        | OK,Free | sim-01    | 50bd654881c8ac64 |            | Non-Rotating Medium    | PATA/SATA
DISK_ID_00013 | 512GiB SSD Disk_13 | SSD  | 549755813888        | OK,Free | sim-01    | 506ecdb783aecb2c |            | Non-Rotating Medium    | PATA/SATA
DISK_ID_00014 | 2TiB SSD Disk_14   | SSD  | 2199023255552       | OK,Free | sim-01    | 5083aeb6045cddcd |            | Non-Rotating Medium    | SAS      
DISK_ID_00015 | 2TiB SSD Disk_15   | SSD  | 2199023255552       | OK,Free | sim-01    | 50cc16c5e4e0ef01 |            | Non-Rotating Medium    | SAS      
DISK_ID_00016 | 2TiB SSD Disk_16   | SSD  | 2199023255552       | OK,Free | sim-01    | 50e7a75a4fe0aef0 |            | Non-Rotating Medium    | SAS      
DISK_ID_00017 | 2TiB SSD Disk_17   | SSD  | 2199023255552       | OK,Free | sim-01    | 5094306c6d0ea6f2 |            | Non-Rotating Medium    | SAS      
DISK_ID_00018 | 2TiB SSD Disk_18   | SSD  | 2199023255552       | OK,Free | sim-01    | 50ff11bfcd9889d9 |            | Non-Rotating Medium    | SAS      
DISK_ID_00019 | 2TiB SSD Disk_19   | SSD  | 2199023255552       | OK,Free | sim-01    | 50d54e33febddec4 |            | Non-Rotating Medium    | SAS      
DISK_ID_00020 | 2TiB SSD Disk_20   | SSD  | 2199023255552       | OK,Free | sim-01    | 50694db13c214e50 |            | Non-Rotating Medium    | SAS  

But when I controlled the start of the disk LED light through lsmcli, the following error was returned to me:

root@ubuntu:~/cky/libstoragemgmt# lsmcli local-disk-ident-led-on --path /dev/sdb

NO_SUPPORT(153): Failed to find any SCSI enclosure with given SAS address 5000cca2542391e5 

Try another disk on the same machine and report the following error:

root@ubuntu:~/cky/libstoragemgmt# lsmcli local-disk-ident-led-on --path /dev/sdd

NO_SUPPORT(153): Given disk does not expose SCSI target port SAS address via SCSI Device Identification VPD page 

This is my disk case

root@ubuntu:~# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  7.3T  0 disk 
└─sda1   8:1    0  7.3T  0 part /
sdb      8:16   0  7.3T  0 disk 
sdc      8:32   0  7.3T  0 disk 
sdd      8:48   0  7.5G  0 disk 
└─sdd1   8:49   0  7.5G  0 part /boot

I want to know if I'm missing some dependency package, or if I have a problem using it, or something else?

If the information I provide is not enough to find out what the problem is, please leave a message telling me what more information I need.

tasleson commented 4 years ago

want to know if I'm missing some dependency package, or if I have a problem using it, or something else?

If the information I provide is not enough to find out what the problem is, please leave a message telling me what more information I need.

You're missing the needed hardware support for SCSI enclosure services. This is typically a feature of external disk storage enclosures.