-
Notifications
You must be signed in to change notification settings - Fork 3
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 devices are not showed up in lsscsi #4
Comments
This seems to be a great opportunity to use my new clone_pseudo_fs utility found in this account. By default it will clone /sys to /tmp/sys . Then /tmp/sys can be compressed into a tarball (e.g. 'cd /tmp ; tar cvf sys_nvme_iss3.tar.gz sys') and then email the tarball to me. It is fine to do that as a non-root user. Beware of the security implications: don't do it if there is "secret" hardware on your machine. If that is not a concern, it will allow me to use the --sysfsroot= option on lsscsi to examine what is happening on your machine. My email address can be found in the lsscsi manpage. |
I had the same problem, one type disk works well, while another doesn't: [root@localhost tmp]# lsscsi -V [root@localhost ~]# lsscsi Bellow is the difference: |
Thanks for the report. The difference seems to be nvme2n1 is a direct connect and nvme0n1 is "virtual" which I take to mean some intermediate device such as a PCIe switch (something similar to a SAS expander) is between that SSD and the CPU. I have the same request for you as the previous reporter: could you use clone_pseudo_ps to clone your /sys and then tar/compress the copy and email it to me. You can use the --exclude=<glob_pattern> option one or more times to prune out anything from your /sys that may comprise your security. I would like the paths that include "nvme" and are in sysfs (e.g. /sys/kernel/debug is another filesystem). Thanks in advance. |
Almost 2 months have passed but no data has been provided to help me find this bug. I have been doing more work on clone_pseudo_fs (found under this github account) to prune only needed parts from /sys so lsscsi -y will work on NVMe devices. Only my laptop /sys contains 52057 nodes (regular files, directories, symlinks, etc) and with the following invocation that number goes down to 348 nodes under /tmp/sys : |
I have run into the same issue with a pair of Dell Express Flash PM1725b 1.6TB drives. Something I noticed: |
Thanks for the report. Still awaiting the email with the |
Hi Doug, |
Still haven't received any email from you. I also sent you an email, did you receive that? Some email servers don't like the "interlog.com" domain (e.g. FreeBSD newsgroups). Perhaps you might try sending tarball to Martin Wilck [email protected] and ask him to relay it to me. Also I would like '-p /sys/devices/virtual/nvme-subsystem' or '-p /sys/class/nvme-subsystem' added to the clone_pseudo_fs invocation that you have shown above. It seems that lsscsi needs to data-mine that sysfs sub-directory looking for anything not under /sys/class/nvme . |
Start to work on 'missing NVME device nodes' issue [#4] More work needed on corner cases. NVMe device scanning may need rewrite. Add experimental cmake support and keep autotools. Autotools is still preferred and better tested. git-svn-id: https://svn.bingwo.ca/repos/lsscsi/trunk@194 aaa919c1-9816-4d37-901d-0171dbb97e96
Svn revision 194 has just been mirrored here. It attempts to address this issue but misses some corner cases. A full fix might involve a partial rewrite. Anyway, feedback would be appreciated. |
@doug-gilbert Sorry miss your message. The new code works in my test. If you still need some feedback, show it in this issue. I have watching this project, and should not miss it now : ) |
[root@ltcrain119-lp2 src]# ./lsscsi
[0:0:1:0] disk AIX VDASD 0001 /dev/sda
[0:0:2:0] cd/dvd AIX VOPTA /dev/sr0
[N:0:65:1] disk 3.2TB NVMe Gen4 U.2 SSD__1 -
We expect to see /dev/nvmxxx in lsscsi.
Thanks,
Wend
The text was updated successfully, but these errors were encountered: