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 https://github.com/linux-nvme/nvme-cli. Follow the installation instructions found 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/null
You can also use the ledctl command from the optional ledmon package:
ledctl locate=/dev/rsnvmeX
To get the device serial number for verification, use the command:
nvme id-ctrl /dev/nvmeX | grep -i sn
To take the device offline so that it can be removed:
sh -c"echo 0 >/sys/block/nvmeX/device/delete"



Last updated: Tue, November 17, 2020