NVME-LNVM-CREATE(1)
π NVME-LNVM-CREATE(1) π
okay bestie, gather round, because this one is literally about bringing a whole new storage target into existence. it lives in the NVMe Manual, and no cap, it's giving main character energy for your LightNVM device. π¦
β¨ NAME β¨
nvme-lnvm-create β instantiate a target on top of a LightNVM enabled device
πΈ SYNOPSIS πΈ
nvme lnvm-create [--device-name=<DEVICE> | -d <DEVICE>]
[--target-name=<TARGET> | -n <TARGET>]
[--target-type=<TARGETTYPE> | -t <TARGETTYPE>]
[--lun-begin <NUM> | -b <NUM>]
[--lun-end <NUM> | -e <NUM>]
π DESCRIPTION π
So here's the vibe: you're instantiating a target on top of a LightNVM enabled device. That's it, that's the job. It exposes the physical so you, the user, can actually use it. periodt. πβοΈ
The target name is literally the name the media gets exposed as, in /dev/<targetname>. so if you name it target0, bestie, you're gonna go find it at the corresponding path. iykyk. β¨
The target type is, shockingly, the target you're instantiating. Typically pblk or rrpc. those are the two icons in this story. π
And LUN begin + LUN end? Together they define the range of LUNs to use for a target instantiation. it's a little LUN sandwich, lowkey. π₯ͺ
π OPTIONS π
--device-name=<DEVICE>,-d <DEVICE>β the device name you wanna initialize. your starting point, your little blank canvas. π--target-name=<TARGET>,-n <TARGET>β the target name of the device you're initializing. For example:target0. name her something cute. π--target-type=<TARGETTYPE>,-t <TARGETTYPE>β the target type of the device to use. For example:pblk. pick your fighter. π₯--lun-begin <NUM>,-b <NUM>β begin LUN id offset to use for target. where the LUN range starts, fr fr. β--lun-end <NUM>,-e <NUM>β end LUN id offset to use for target. where it wraps up. slay. π
π EXAMPLES π
- Initialize
nvme0n1withpblktarget with 64 LUNs. a full 64, obsessed. π
# nvme lnvm-create -d nvme0n1 -t pblk -n target0 -b 0 -e 63
π NVME π
Part of the nvme-user suite. iconic lineage, honestly. π«Ά
okay that's the whole page bestie, go forth and instantiate responsibly π
this lil page is brought to you by the NVMe manual fam β dated 11/11/2021, filed under NVME-LNVM-CREATE(1) β and it's part of the nvme-user suite. mwah. πβ¨π
π¦ where this page comes from
- ubuntu jammy: nvme-cli 1.16-3build1 Β· GPL-2.0-or-later
- ubuntu jammy: nvme-cli 1.16-3ubuntu0.3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms