nvme-cli always fails (inappropriate ioctl)

I had created a script to check hdd/ssd health. The script ran on Linux and FreeBSD. I updated the BSD system from 13.5 to 14.3 and discovered that nvme cli command fail with "Inappropriate ioctl for device". "nvme list" should return a list of discovered devices, but instead responds "Failed to scan topology: No such file or directory".

I searched with google and don't see others reporting this problem: I figured I'd check here. Please reply if you are seeing this problem or not in FreeBSD 14.x. If not, are you using pkg or port.

Thanks! Paul
 
Installed using pkg. Version is the last (2.11.0.3) if I believe freshport. Result of nvme list:

- VM 14.3-RELEASE: Failed to scan topology: No such file or directory
- An old VM 13.3-RELEASE: Failed to scan topology: No such file or directory

Each has a nvme controller and an attached device. Maybe the last version is bugged?

Note: I didn't even know the existence of this utility.
 
Installed using pkg. Version is the last (2.11.0.3) if I believe freshport. Result of nvme list:

- VM 14.3-RELEASE: Failed to scan topology: No such file or directory
- An old VM 13.3-RELEASE: Failed to scan topology: No such file or directory

Each have a nvme controller and an attached device. Maybe the last version is bugged?

Note: I didn't even know the existence of this utility.
Than you! Especially for the 13.3 test. This is the version I was using earlier; pointing to the "last version bugged" theory. I'll get an older version to try.
 
Well, not surprising at all:

Code:
...
open("/sys/class/nvme",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,04220003760) ERR#2 'No such file or directory'
...
exit(0x1)                
process exit, rval = 1
 
Back
Top