10-21-2020, 06:53 PM
(This post was last modified: 10-21-2020, 07:16 PM by ab1jx.
Edit Reason: looking in /dev
)
Tinkering, I see there's an nvme-cli deb out there, so I installed it. And duh, it has a man page. It looks quite well evolved:
nvme list shows me:
From what I'd read I was thinking I'd have to download and build something. It even has SMART. Don't know if there's any support for USB-connected nvme. There's also nothing in there for booting from an nvme device so I'll probably still have to build something.
Oh, OK, in /dev I see:
Those correspond to my partitions, so /boot is on /dev/nvme0n1p1 and the root (/) is on /dev/nvme0n1p5. But I knew that before installing nvme-cli, and they're already in /boot/extlinux/extlinux.conf and /etc/fstab. I just did a locate nvme and it was some sort of revelation.
My SMART log:
Code:
nvme-1.0
usage: nvme <command> [<device>] [<args>]
The following are all implemented sub-commands:
list List all NVMe devices and namespaces on machine
id-ctrl Send NVMe Identify Controller
id-ns Send NVMe Identify Namespace, display structure
list-ns Send NVMe Identify List, display structure
create-ns Creates a namespace with the provided parameters
delete-ns Deletes a namespace from the controller
attach-ns Attaches a namespace to requested controller(s)
detach-ns Detaches a namespace from requested controller(s)
list-ctrl Send NVMe Identify Controller List, display structure
get-ns-id Retrieve the namespace ID of opened block device
get-log Generic NVMe get log, returns log in raw format
fw-log Retrieve FW Log, show it
smart-log Retrieve SMART Log, show it
smart-log-add Retrieve additional SMART Log, show it
error-log Retrieve Error Log, show it
get-feature Get feature and show the resulting value
set-feature Set a feature and show the resulting value
format Format namespace with new block format
fw-activate Activate new firmware slot
fw-download Download new firmware
admin-passthru Submit arbitrary admin command, return results
io-passthru Submit an arbitrary IO command, return results
security-send Submit a Security Send command, return results
security-recv Submit a Security Receive command, return results
resv-acquire Submit a Reservation Acquire, return results
resv-register Submit a Reservation Register, return results
resv-release Submit a Reservation Release, return results
resv-report Submit a Reservation Report, return results
dsm Submit a Data Set Management command, return results
flush Submit a Flush command, return results
compare Submit a Compare command, return results
read Submit a read command, return results
write Submit a write command, return results
write-zeroes Submit a write zeroes command, return results
write-uncor Submit a write uncorrectable command, return results
reset Resets the controller
subsystem-reset Resets the controller
show-regs Shows the controller registers. Requires admin character device
discover Discover NVMeoF subsystems
connect-all Discover and Connect to NVMeoF subsystems
connect Connect to NVMeoF subsystem
disconnect Disconnect from NVMeoF subsystem
version Shows the program version
help Display this help
See 'nvme help <command>' for more information on a specific command
The following are all installed plugin extensions:
intel Intel vendor specific extensions
lnvm LightNVM specific extensions
memblaze Memblaze vendor specific extensions
See 'nvme <plugin> help' for more information on a plugin
nvme list shows me:
Code:
nvme list
Node SN Model Namespace Usage Format FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 BTNH93841ZZZ1P0B INTEL SSDPEKNW010T8 1 1.02 TB / 1.02 TB 512 B + 0 B 002Cnvme-1.0
From what I'd read I was thinking I'd have to download and build something. It even has SMART. Don't know if there's any support for USB-connected nvme. There's also nothing in there for booting from an nvme device so I'll probably still have to build something.
Oh, OK, in /dev I see:
Code:
nvme0
nvme0n1
nvme0n1p1
nvme0n1p2
nvme0n1p5
My SMART log:
Code:
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning : 0
temperature : 26 C
available_spare : 100%
available_spare_threshold : 10%
percentage_used : 0%
data_units_read : 5,584
data_units_written : 295,839
host_read_commands : 112,035
host_write_commands : 250,270,384
controller_busy_time : 57
power_cycles : 159
power_on_hours : 205
unsafe_shutdowns : 30
media_errors : 0
num_err_log_entries : 0
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1 : 0 C
Temperature Sensor 2 : 0 C
Temperature Sensor 3 : 0 C
Temperature Sensor 4 : 0 C
Temperature Sensor 5 : 0 C
Temperature Sensor 6 : 0 C
Temperature Sensor 7 : 0 C
Temperature Sensor 8 : 0 C