1NVME-LNVM-DIAG-BB(1) NVMe Manual NVME-LNVM-DIAG-BB(1)
2
3
4
6 nvme-lnvm-diag-bbtbl - Diagnose the bad block table
7
9 nvme lnvm-diag-bbtbl [--namespace-id=<NUM> | -n <NUM>]
10 [--channel-id=<CHID> | -c <CHID>]
11 [--lun-id=<LUNID> | -l <LUNID>]
12 [--raw-binary | -b]
13
15 Retrieve the bad block table for a given channel and lun.
16
17 The statistics will be shown in the default case, and the actual output
18 bad block information can be retrieved when --raw-binary is passed.
19
20 The raw binary output follows this format:
21
22 Channel 0, LUN0 (Dual plane flash)
23
24 Byte 0 → Plane 0, Block 0 Byte 1 → Plane 1, Block 0 Byte 2 → Plane 0,
25 Block 1 ...
26
28 --namespace-id=<NUM>, -n <NUM>
29 Namespace id to use
30
31 --channel-id=<NUM>, -c
32 Channel id
33
34 --lun-id=<NUM>, -l
35 LUN id
36
37 --raw-binary, -b
38 Returns the bad block table in binary form without statistics.
39
41 · Retrieve bad block table statistics for physical device nvme0,
42 channel 0, and lun 0:
43
44 # nvme lnvm-diag-bbtbl /dev/nvme0 -c 0 -n 0
45
46 · Display the bad block table in raw form without statistics for same
47 query:
48
49 # nvme lnvm-diag-bbtbl /dev/nvme0 -c 0 -n 0 -b | hexdump
50
52 Part of the nvme-user suite
53
54
55
56NVMe 04/24/2020 NVME-LNVM-DIAG-BB(1)