1NVME-LNVM-DIAG-SE(1) NVMe Manual NVME-LNVM-DIAG-SE(1)
2
3
4
6 nvme-lnvm-diag-set-bbtbl - Set a block state in the bad block table
7
9 nvme lnvm-diag-set-bbtbl [--namespace-id=<NUM> | -n <NUM>]
10 [--channel-id=<CHID> | -c <CHID>]
11 [--lun-id=<LUNID> | -l <LUNID>]
12 [--plane-id=<PLANEID> | -p <PLANEID>]
13 [--block-id=<BLKID> | -b <BLKID>]
14 [--value=<NUM> | -v <NUM>]
15
17 Set the bad block table for a given channel, lun, plane and block with
18 value v.
19
20 For each block available, the status byte is read as follows:
21
22 0: Good block 1: Bad block 2: Grown bad block 4: Device reserved block
23 8: Host-side reserved block 16: Media managed reserved block
24
26 --namespace-id=<NUM>, -n <NUM>
27 Namespace id to use
28
29 --channel-id, -c
30 Channel id
31
32 --lun-id, -l
33 LUN id
34
35 --plane-id, -p
36 Plane id
37
38 --block-id, -b
39 Block id
40
42 ยท Set channel 0, lun 0, plane 0, block 10 to bad block value 2 (grown
43 bad) on physical device /dev/nvme0
44
45 # nvme lnvm-diag-set-bbtbl /dev/nvme0 -c 0 -l 0 -p 0 -b 10 -v 2
46
48 Part of the nvme-user suite
49
50
51
52NVMe 04/24/2020 NVME-LNVM-DIAG-SE(1)