Import lvm2 from NetBSD
[dragonfly.git] / contrib / lvm2 / dist / man / vgreduce.8.in
1 .TH VGREDUCE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2 .SH NAME
3 vgreduce \- reduce a volume group
4 .SH SYNOPSIS
5 .B vgreduce
6 [\-a|\-\-all] [\-A|\-\-autobackup y|n] [\-d|\-\-debug] [\-h|\-?|\-\-help]
7 [\-\-removemissing]
8 [\-t|\-\-test]
9 [\-v|\-\-verbose] VolumeGroupName
10 [PhysicalVolumePath...]
11 .SH DESCRIPTION
12 vgreduce allows you to remove one or more unused physical volumes
13 from a volume group.
14 .SH OPTIONS
15 See \fBlvm\fP for common options.
16 .TP
17 .I \-a, \-\-all
18 Removes all empty physical volumes if none are given on command line.
19 .TP
20 .I \-\-removemissing
21 Removes all missing physical volumes from the volume group, if there are no
22 logical volumes allocated on those. This resumes normal operation of the volume
23 group (new logical volumes may again be created, changed and so on).
24
25 If this is not possible (there are logical volumes referencing the missing
26 physical volumes) and you cannot or do not want to remove them manually, you
27 can run this option with --force to have vgreduce remove any partial LVs.
28
29 Any logical volumes and dependent snapshots that were partly on the 
30 missing disks get removed completely. This includes those parts 
31 that lie on disks that are still present.
32
33 If your logical volumes spanned several disks including the ones that are
34 lost, you might want to try to salvage data first by activating your
35 logical volumes with --partial as described in \fBlvm (8)\fP.
36
37 .SH SEE ALSO
38 .BR lvm (8),
39 .BR vgextend (8)