Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to ident using lsmcli #479

Open
xxedgexx opened this issue Aug 11, 2021 · 9 comments
Open

Unable to ident using lsmcli #479

xxedgexx opened this issue Aug 11, 2021 · 9 comments

Comments

@xxedgexx
Copy link

lsmcli local-disk-ident-led-on --path /dev/sdh
NO_SUPPORT(153): Failed to find any SCSI enclosure with given SAS address 5002538b71401ba2

lsmcli ldl
Path | SCSI VPD 0x83 | Link Type | Serial Number | Health Status

/dev/sdb | 5000039ab84be73d | SAS | 21N0A00UFWZB | Good
/dev/sdc | 5000039ab84b9dcd | SAS | 21M0A0DKFWZB | Good
/dev/sdd | 5000039ab84be7e9 | SAS | 21N0A01CFWZB | Good
/dev/sde | 5000039ab84be741 | SAS | 21N0A00VFWZB | Good
/dev/sdf | 5002538b01247530 | SAS | S5G0NE0R200157 | Good
/dev/sdg | 5000039ab84be6cd | SAS | 21N0A00GFWZB | Good
/dev/sdh | 5002538b71401ba0 | SAS | S5G0NG0R400306 | Good
/dev/sda | 50024e9203c59608 | PATA/SATA | S2M3J90ZB18180 | Good

01:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3216 PCI-Express Fusion-MPT SAS-3 (rev 01)

@tasleson
Copy link
Member

@xxedgexx Sorry for the delayed response. The error is indicating that no SCSI enclosure service were found for the device specified, but it's likely that you don't have any. To check, try running lsscsi -g and see if any devices are listed as an enclosure.

Normally I would suggest investigating a libStorageMgmt plugin for the RAID adapter, but the megaraid plugin does not support LED identification. You may want to give the ledmon tool a try to see if you have success with that as it implements a number of different standards for interacting with LED indicators.

@hansbogert
Copy link

hansbogert commented Oct 25, 2021

I have the exact same thing as in the OP.

@xxedgexx Sorry for the delayed response. The error is indicating that no SCSI enclosure service were found for the device specified, but it's likely that you don't have any. To check, try running lsscsi -g and see if any devices are listed as an enclosure.

Not sure about @xxedgexx, but I only have disks listed, not enclosures

Normally I would suggest investigating a libStorageMgmt plugin for the RAID adapter, but the megaraid plugin does not support LED identification.

Then what would be necessary? Is lsscsi and the underlaying mechanisms needed for this to work plus explicit support in the megaraid plugin? Or would it suffice if this would 'just' be implemented in the megaraid plugin only?

Note, I can get leds blinking using the storcli

@tasleson
Copy link
Member

tasleson commented Oct 25, 2021

The libStorageMgmt base library has support for SCSI Enclosure Services (SES). This requires hardware for operation which is commonly included with drive bay enclosures and some rack mounted server class hardware drive bays. Any LED identification that would be provided by RAID adapters would be done through the RAID solution firmware/hardware and user space code and can only be provided if exposed by vendor.

In the specific case of megaraid, support would need to be added to the megaraid plugin. Unfortunately we don't have access to hardware which would allow us to develop/test functionality. We don't have resources available to go into the lab to verify operation.

@hansbogert
Copy link

hansbogert commented Oct 25, 2021

@tasleson is it just a matter of implementing

volume_ident_led_on()

as in the hpsa plugin? And signal that it supports Capabilities.VOLUME_LED ?

@tasleson
Copy link
Member

tasleson commented Oct 25, 2021

@tasleson is it just a matter of implementing

volume_ident_led_on()

as in the hpsa plugin? And signal that it supports Capabilities.VOLUME_LED ?

Correct. It would also need to implement volume_ident_led_off(). Please do note that these API calls turn on/off for 1 or more physical devices as you pass it a volume which is comprised of 1 or more physical devices. Which may not be what you're interested in.

@hansbogert
Copy link

You make a good point. What would be the appropriate place to implement in order to turn on the light for, let's say /dev/sda ?

@tasleson
Copy link
Member

tasleson commented Oct 26, 2021

You make a good point. What would be the appropriate place to implement in order to turn on the light for, let's say /dev/sda ?

If you're using a RAID adapter, /dev/<node name> could possibly be a logical drive comprised of 1 or more physical drives or a single physical drive if running in HBA mode. If running in RAID mode, you can't use a device node to specify a physical device behind the RAID adapter. In both modes we would need to use the plugin to run the required command, e.g. storcli /cx/ex/sx start locate.

Based on this, the only thing that seems to make sense at the moment would be to introduce a new API calls and capability which allows device LED by passing a drive object. Thus a user could retrieve all the drives for a given RAID and then use one of them as a parameter to a call to turn on/off the LED. One issue though is to correlate a disk object and a device node when run in HBA mode, could leverage vpd83.

Am I correct to assume you're running in HBA mode with each of the storage devices visible to the OS?

@xxedgexx
Copy link
Author

xxedgexx commented Oct 26, 2021 via email

@k0ste
Copy link

k0ste commented Mar 13, 2022

The same with LSI 3008 in HBA mode

# lspci | grep SAS
03:00.0 RAID bus controller: Broadcom / LSI MegaRAID SAS-3 3008 [Fury] (rev 02)
# lsmcli ldflon --path /dev/sdb
NO_SUPPORT(153): Failed to find any SCSI enclosure with given SAS address 500056b3af2058c1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants