NVME-LNVM-CREATE(1)

πŸ“¦ version 1.16, in ubuntu jammy

πŸ’– 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 nvme0n1 with pblk target 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