Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions pages/linux/vgreduce.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# vgreduce

> Remove one or more unused physical volumes from a volume group.
> See also: `lvm`, `vgreduce`.
> More information: <https://linux.die.net/man/8/vgreduce>.

- Remove physical volume from volume group:

`sudo vgreduce {{volume_group}} {{volume_name}}`

- Remove all empty physical volumes if none are given on command line:

`sudo vgremove -a [VOLUME_GROUP_NAME]`

- Remove all missing physical volumes from the volume group, if there are no logical volumes allocated on those. If there are logical volumes referencing the missing physical volumes you can run this option with --force:

`sudo vgremove --removemissing [VOLUME_GROUP_NAME]`