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

nvme list /nvme list -vv giving inconsistent data, when an nvmeof enclosure is in SLEEP state with all the drives in OFF state. #2652

Open
sarabjotsoit opened this issue Jan 9, 2025 · 2 comments

Comments

@sarabjotsoit
Copy link

Put the enclosure into sleep mode with all drives in power state.

nvme list -vv

scan controller nvme0
warning: using auto generated hostid and hostnqn
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0
scan controller nvme0 namespace nvme0n1
scan controller nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys10/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys11/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys12/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys13/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys14/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys15/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys16/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys17/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys18/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys19/nvme26
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys2/nvme26
scan controller nvme26 path nvme2c26n3
scan controller nvme26 path nvme2c26n4
scan controller nvme27
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme27

OBSERVATION:

a. Sometimes all 24 drives list all the information and other times no drives are listed.
b. Drive information is not persistent on each nvme list /nvme list -vv fetch.

NOTE: Issue not observed with nvme-cli 1.16

@sarabjotsoit
Copy link
Author

Uploading logs.docx…

@igaw
Copy link
Collaborator

igaw commented Jan 9, 2025

You didn't provide any logs. nvme-cli v2 relies on the kernel exporting all the necessary information on sysfs. If nvme list doesn't show anyting it's likely that sysfs is missing the devices. Is the kernel able to find those devices again?

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

2 participants