NVMe commands
Learn about the NVMe commands. These commands are for NVMe drives together with feature code EKAE using an NVMe PCIe adapter.
If the nvme command is not installed, download the utility from NVMe management command
line interface. Follow the
installation instructions available on that site.
To determine which drive you want to replace, use the command:
nvme list
If you are searching for a failed drive, you can check each drive using the command:
nvme smart-log <device>To turn on the identify LED, use the command:
dd if=/dev/nvmeX of=/dev/nullYou can also use the
ledctl command from the optional ledmon
package:ledctl locate=/dev/rsnvmeXTo get the device serial number for verification, use the command:
nvme id-ctrl /dev/nvmeX | grep -i snTo take the device offline so that it can be removed:
sh -c"echo 0 >/sys/block/nvmeX/device/delete"