snippetbashTip
lvmdevices — Manage the LVM devices file that lists block devices allowed for physical volumes. More information:
Viewed 0 times
thecommanddeviceslvmclilvmdevicesmanagefile
linux
Problem
How to use the
lvmdevices command: Manage the LVM devices file that lists block devices allowed for physical volumes. More information: <https://manned.org/lvmdevices>.Solution
lvmdevices — Manage the LVM devices file that lists block devices allowed for physical volumes. More information: <https://manned.org/lvmdevices>.List devices recorded in the devices file:
sudo lvmdevicesAdd a device to the devices file:
sudo lvmdevices --adddev {{/dev/sdXN}}Remove a device from the devices file:
sudo lvmdevices --deldev {{/dev/sdXN}}Add a physical volume by its PVID:
sudo lvmdevices --addpvid {{PVID}}Remove a physical volume by its PVID:
sudo lvmdevices --delpvid {{PVID}}Update the devices file after device names change:
sudo lvmdevices --updateCheck the devices file for problems:
sudo lvmdevices --checkDisplay version:
lvmdevices --versionCode Snippets
List devices recorded in the devices file
sudo lvmdevicesAdd a device to the devices file
sudo lvmdevices --adddev {{/dev/sdXN}}Remove a device from the devices file
sudo lvmdevices --deldev {{/dev/sdXN}}Add a physical volume by its PVID
sudo lvmdevices --addpvid {{PVID}}Remove a physical volume by its PVID
sudo lvmdevices --delpvid {{PVID}}Context
tldr-pages: linux/lvmdevices
Revisions (0)
No revisions yet.