HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

vgremove — Remove volume group(s) in LVM. More information: <https://manned.org/vgremove>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
volumecommandlvmremovegroupvgremoveclimore
linux

Problem

How to use the vgremove command: Remove volume group(s) in LVM. More information: <https://manned.org/vgremove>.

Solution

vgremove — Remove volume group(s) in LVM. More information: <https://manned.org/vgremove>.

Remove a volume group with confirmation:
sudo vgremove {{volume_group}}


Forcefully remove a volume group without confirmation:
sudo vgremove {{[-f|--force]}} {{volume_group}}


Set the debug level for detailed logging to level 2, (repeat --debug up to 6 times to increase the level):
sudo vgremove {{[-d|--debug]}} {{[-d|--debug]}} {{volume_group}}


Use a specific config setting to override defaults:
sudo vgremove --config '{{global/locking_type=1}}' {{volume_group}}


Display help:
vgremove {{[-h|--help]}}

Code Snippets

Remove a volume group with confirmation

sudo vgremove {{volume_group}}

Forcefully remove a volume group without confirmation

sudo vgremove {{[-f|--force]}} {{volume_group}}

Set the debug level for detailed logging to level 2, (repeat `--debug` up to 6 times to increase the level)

sudo vgremove {{[-d|--debug]}} {{[-d|--debug]}} {{volume_group}}

Use a specific config setting to override defaults

sudo vgremove --config '{{global/locking_type=1}}' {{volume_group}}

Display help

vgremove {{[-h|--help]}}

Context

tldr-pages: linux/vgremove

Revisions (0)

No revisions yet.