VGREDUCESection: Maintenance Commands (8)
Updated: LVM TOOLS 2.02.95(2)-RHEL6 (2012-10-16)
Index Return to Main Contents
NAMEvgreduce - reduce a volume group
SYNOPSISvgreduce [-a|--all] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--removemissing] [-t|--test] [-v|--verbose] VolumeGroupName [PhysicalVolumePath...]
DESCRIPTIONvgreduce allows you to remove one or more unused physical volumes from a volume group.
OPTIONSSee lvm for common options.
- -a, --all
- Removes all empty physical volumes if none are given on command line.
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).
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 can run this option with --force to have vgreduce remove any partial LVs.
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 logical volumes with --partial as described in lvm (8).
SEE ALSOlvm(8), vgextend(8)
This document was created by man2html, using the manual pages.
Time: 05:34:31 GMT, December 24, 2015