#TIL (Today I Learned) that when you use LVM (Logical Volume Manager) on Linux (...

@davidculley@hachyderm.io

#TIL (Today I Learned) that when you use LVM (Logical Volume Manager) on Linux (to abstract your storage), you should prefer the volume path

/dev/my_volume_group/my_logical_volume

provided by LVM over the more low-level volume path

/dev/mapper/my_volume_group-my_logical_volume

that is provided by the underlying device mapper framework.

You should never interact with the underlying device mapper framework directly, and rather interact indirectly with it through the LVM and/or cryptsetup abstractions because the filepaths provided by the device mapper framework are 'intended for "internal use" and subject to possible "change between releases and distributions",' as the Arch Wiki puts it.

Sources:

- man.archlinux.org/man/lvm.8#VA
- wiki.archlinux.org/title/LVM#L

#Linux #LVM #Arch #ArchLinux #Gentoo #GentooLinux