Skip to content
New issue

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

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

Already on GitHub? # to your account

Not found: '/sys/class/sas_host/host4/device/port-4:3/end_device-4:3/target4:0:3/4:0:3:0/scsi_generic/*[0-9]' #24

Open
Luflosi opened this issue May 23, 2022 · 3 comments

Comments

@Luflosi
Copy link

Luflosi commented May 23, 2022

sas_counters, sas_devices, sas_discover, ses_report all fail with the error message Not found: '/sys/class/sas_host/host4/device/port-4:3/end_device-4:3/target4:0:3/4:0:3:0/scsi_generic/*[0-9]'.
The /sys/class/sas_host/host4/device/port-4:3/end_device-4:3/target4:0:3/4:0:3:0/ directory does not contain a scsi_generic directory.
This is my setup: I have a Dell PowerEdge R610 with an HBA in one of the PCIe slots. I then have a SAS SFF-8088 cable that connects to an EMC KTN-STL3 15 bay chassis with some SATA hard disks inside connected to interposers.
I also have a second HBA card connected to the internal backplane of the server with some SATA SSDs connected to it.
lspci shows my HBA cards as Serial Attached SCSI controller: Broadcom / LSI SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] (rev 03).
Is this configuration supported or do I need SAS hard disks for sasutils to work? Maybe my hardware is too weird?
I'm using sasutils installed via Nix (https://github.com/NixOS/nixpkgs/blob/41cc1d5d9584103be4108c1815c350e07c807036/pkgs/os-specific/linux/sasutils/default.nix) but that shouldn't matter. I'm running NixOS but I can also try this on Arch Linux as well if you want.
I'll happily provide any additional information you may need to help you diagnose the issue.

@aij
Copy link

aij commented May 23, 2022

I really hope it's not NixOS-specific 😅 but I ran into the same when I didn't have the sg kernel module loaded (also on NixOS). modprobe sg or boot.kernelModules = [ "sg" ]; should do it.

Do other distros automatically load sg when running on supported hardware? Or does the sg3_utils package cause it to be loaded?

In any case, the error message could be improved IMHO, especially since /sys/class/sas_host/ could also be absent on machines without SAS.

@Luflosi
Copy link
Author

Luflosi commented May 24, 2022

I can confirm it works after loading the kernel module. I also think that the error message should be improved.

@Luflosi
Copy link
Author

Luflosi commented Jun 11, 2022

On Arch Linux I experienced the same behaviour, I also had to manually load the kernel module there.

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

No branches or pull requests

2 participants