GEOM_LINUX_LVM(4)

πŸ’– GEOM_LINUX_LVM(4) πŸ’–

okay bestie, so this one lives in the Kernel Interfaces Manual section (section 4, the ~spicy~ kernel one), and it's literally called geom_linux_lvm β€” which is GEOM based Linux LVM logical volume mapping. yes you read that right, Linux volumes on your BSD. iconic behavior honestly.


✨ NAME ✨

geom_linux_lvm β€” GEOM based Linux LVM logical volume mapping πŸ¦‹


🌸 SYNOPSIS 🌸

so there's two ways to get this baby running, and it's giving choose your own adventure.

Option one, the "I compile my own kernel" main character route β€” drop this line into your kernel configuration file:

options GEOM_LINUX_LVM

Option two, the "load it as a module at boot" bestie route β€” put this line in loader.conf(5):

geom_linux_lvm_load="YES"
ngl both are valid, pick whichever matches your vibe πŸ’…

πŸŽ€ DESCRIPTION πŸŽ€

so the geom_linux_lvm framework is out here doing the absolute most β€” it provides support for mapping Linux LVM volumes to GEOM providers. like, translating the whole thing for you. 🧚

as of right now, geom_linux_lvm currently supports linear stripes with segments on one or more physical disks. that's the tea. β˜•

the parser? oh she READS. she's able to read LVM2 Text Format metadata, the logical volumes will be assembled and made available under /dev/linux_lvm/. absolutely serving them up for you. πŸ‘‘

⚠️ okay but here's the part where you need to listen, bestie: the metadata is read-only. logical volumes cannot be allocated or resized. no cap. so don't come at her trying to change things, she will not be doing that. πŸ™ˆ

πŸ”₯ EXAMPLES πŸ”₯

wanna see which geom_linux_lvm devices are available? say less. run this:

# geom linux_lvm list
Geom name: vg1
Providers:
1. Name: linux_lvm/vg1-home
   Mediasize: 4294967296 (4.0G)
   Sectorsize: 512
   Mode: r0w0e0
2. Name: linux_lvm/vg1-logs
   Mediasize: 4294967296 (4.0G)
   Sectorsize: 512
   Mode: r0w0e0
Consumers:
1. Name: ada0s1
   Mediasize: 80023716864 (75G)
   Sectorsize: 512
   Mode: r0w0e0

look at that output. vg1 with its two providers linux_lvm/vg1-home and linux_lvm/vg1-logs, both chunky at 4294967296 bytes (4.0G) each, Sectorsize: 512, Mode: r0w0e0 β€” and one consumer, ada0s1, clocking in at 80023716864 (75G). she ate. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, they're the supporting cast and they understood the assignment. ⭐


πŸ’œ AUTHORS πŸ’œ

The geom_linux_lvm driver was written by Andrew Thompson <thompsa@FreeBSD.org>. give her her flowers, she earned them. 🌸🫢


and that's the whole page bestie! this beauty comes to you from Debian, dated October 1, 2013 β€” so like, a vintage. a classic. still slaying. mwah πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from