1NVME-DEVICE-SELF-(1)              NVMe Manual             NVME-DEVICE-SELF-(1)
2
3
4

NAME

6       nvme-device-self-test - Perform the necessary tests to observe the
7       performance and the parameters
8

SYNOPSIS

10       nvme device-self-test <device> [--namespace-id=<NUM> | -n <NUM>]
11                               [--self-test-code=<NUM> | -s <NUM>]
12

DESCRIPTION

14       Initiates the required test based on the user input.
15
16       The <device> parameter is mandatory and may be either the NVMe
17       character device (ex: /dev/nvme0), or a namespace block device (ex:
18       /dev/nvme0n1).
19
20       On success, the corresponding test is initiated.
21

OPTIONS

23       -n <NUM>, --namespace-id=<NUM>
24           Indicate the namespace in which the device self-test has to
25           becarried out
26
27       -s <NUM>, --self-test-code=<NUM>
28           This field specifies the action taken by the device self-test
29           command : 1h: Start a short device self-test operation 2h: Start a
30           extended device self-test operation eh: Start a vendor specific
31           device self-test operation fh: abort the device self-test operation
32

EXAMPLES

34       ·   Start a short device self-test in the namespace-id 1:
35
36               # nvme device-self-test /dev/nvme0 -n 1 -s 1
37
38       ·   Abort the device self-test operation in the namespace-id 1:
39
40               # nvme device-self-test /dev/nvme0 -n 1 -s 0xf
41

NVME

43       Part of the nvme-user suite
44
45
46
47NVMe                              04/24/2020              NVME-DEVICE-SELF-(1)
Impressum