2008-10-08 16:50:13 +04:00
.TH VGREDUCE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-01-04 23:35:19 +03:00
.SH NAME
2014-06-11 13:06:30 +04:00
vgreduce \(em reduce a volume group
2002-01-04 23:35:19 +03:00
.SH SYNOPSIS
.B vgreduce
2012-04-11 16:42:10 +04:00
.RB [ \- a | \- \- all ]
.RB [ \- A | \- \- autobackup
.RI { y | n }]
2014-05-21 16:53:56 +04:00
.RB [ \- \- commandprofile
.IR ProfileName ]
2012-04-11 16:42:10 +04:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- ? | \- \- help ]
.RB [ \- \- removemissing ]
.RB [ \- t | \- \- test ]
.RB [ \- v | \- \- verbose ]
.I VolumeGroupName
.RI [ PhysicalVolumePath ...]
2002-01-04 23:35:19 +03:00
.SH DESCRIPTION
vgreduce allows you to remove one or more unused physical volumes
from a volume group.
.SH OPTIONS
2012-04-11 16:42:10 +04:00
See \fB lvm\fP (8) for common options.
2002-01-04 23:35:19 +03:00
.TP
2012-04-11 16:42:10 +04:00
.BR \- a ", " \- \- all
2002-01-04 23:35:19 +03:00
Removes all empty physical volumes if none are given on command line.
2003-01-18 00:04:26 +03:00
.TP
2012-04-11 16:42:10 +04:00
.B \- \- removemissing
2008-09-19 10:42:00 +04:00
Removes all missing physical volumes from the volume group, if there are no
logical volumes allocated on those. This resumes normal operation of the volume
group (new logical volumes may again be created, changed and so on).
2003-01-18 00:04:26 +03:00
2008-09-19 10:42:00 +04:00
If this is not possible (there are logical volumes referencing the missing
physical volumes) and you cannot or do not want to remove them manually, you
2014-06-11 13:06:30 +04:00
can run this option with \fB \- \- force\fP to have \fB vgreduce\fP
2012-04-11 16:42:10 +04:00
remove any partial LVs.
2003-01-18 00:04:26 +03:00
Any logical volumes and dependent snapshots that were partly on the
missing disks get removed completely. This includes those parts
that lie on disks that are still present.
If your logical volumes spanned several disks including the ones that are
lost, you might want to try to salvage data first by activating your
2014-06-11 13:06:30 +04:00
logical volumes with \fB \- \- partial\fP as described in \fB lvm\fP (8).
2003-01-18 00:04:26 +03:00
2002-01-04 23:35:19 +03:00
.SH SEE ALSO
2008-10-08 16:50:13 +04:00
.BR lvm (8),
2002-01-04 23:35:19 +03:00
.BR vgextend (8)