From 33ec1033a3f964e82f26f5df07e2f31f1b2e24af Mon Sep 17 00:00:00 2001 From: Naiame Date: Sat, 18 Oct 2025 06:18:24 +0800 Subject: [PATCH 1/3] refactor: added vgreduce --- pages/linux/vgreduce.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/vgreduce.md diff --git a/pages/linux/vgreduce.md b/pages/linux/vgreduce.md new file mode 100644 index 00000000000000..ca4aa81f7b3b71 --- /dev/null +++ b/pages/linux/vgreduce.md @@ -0,0 +1,17 @@ +# vgreduce + +> Vgreduce allows you to remove one or more unused physical volumes from a volume group. +> See also: `lvm`, `vgreduce`. +> More information: . + +- Remove physical volume from volume group: + +`sudo vgreduce [VOLUME_GROUP_NAME] [PHYSICAL_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]` From 980650c3f13abef081a84a9ecfcbd9a428111b84 Mon Sep 17 00:00:00 2001 From: Bayarkhuu G <30500056+naiame-neltheri@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:13:55 +0800 Subject: [PATCH 2/3] Update pages/linux/vgreduce.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/vgreduce.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/vgreduce.md b/pages/linux/vgreduce.md index ca4aa81f7b3b71..fcfe0ff0126235 100644 --- a/pages/linux/vgreduce.md +++ b/pages/linux/vgreduce.md @@ -6,7 +6,7 @@ - Remove physical volume from volume group: -`sudo vgreduce [VOLUME_GROUP_NAME] [PHYSICAL_VOLUME_NAME]` +`sudo vgreduce {{volume_group}} {{volume_name}}` - Remove all empty physical volumes if none are given on command line: From 4dd9245f1d7f1ce0273cd74819cd0f685cbcd0a0 Mon Sep 17 00:00:00 2001 From: Bayarkhuu G <30500056+naiame-neltheri@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:14:01 +0800 Subject: [PATCH 3/3] Update pages/linux/vgreduce.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/vgreduce.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/vgreduce.md b/pages/linux/vgreduce.md index fcfe0ff0126235..7c91eb681568ea 100644 --- a/pages/linux/vgreduce.md +++ b/pages/linux/vgreduce.md @@ -1,6 +1,6 @@ # vgreduce -> Vgreduce allows you to remove one or more unused physical volumes from a volume group. +> Remove one or more unused physical volumes from a volume group. > See also: `lvm`, `vgreduce`. > More information: .