lvmdevices
manages the LVM devices file that controls which block devices LVM can
TLDR
List devices recorded in the devices file
SYNOPSIS
lvmdevices [options]
DESCRIPTION
lvmdevices manages the LVM devices file that controls which block devices LVM can use as physical volumes. Located at /etc/lvm/devices/system.devices, this file restricts LVM to scanning only listed devices, improving performance and preventing accidental use of unintended disks.
When devices are added or removed, or when device names change (e.g., after hardware changes), lvmdevices can update the devices file accordingly. The --check option validates that listed devices exist and are accessible.
The devices file uses stable device identifiers (WWID, serial numbers) rather than potentially changing paths like /dev/sdX, ensuring consistent behavior across reboots.
PARAMETERS
--adddev _device_
Add a device to the LVM devices file by path--deldev _device_
Remove a device from the devices file by path--addpvid _PVID_
Add a physical volume by its unique PVID--delpvid _PVID_
Remove a physical volume by its PVID--update
Update the devices file to reflect changed device names--check
Verify the devices file and report problems--version
Display version information
CAVEATS
Requires root privileges. If the devices file is enabled but a device isn't listed, LVM will ignore that device even if it contains valid PV metadata. Use --update after hardware changes to ensure device paths are current.
