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
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2008 Andrew Thompson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms