2008-10-08 16:50:13 +04:00
.TH VGCHANGE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-01-04 23:35:19 +03:00
.SH NAME
vgchange \- change attributes of a volume group
.SH SYNOPSIS
.B vgchange
2004-11-16 21:09:32 +03:00
.RB [ \- \- addtag
2004-03-22 18:08:50 +03:00
.IR Tag ]
2004-11-16 21:09:32 +03:00
.RB [ \- \- alloc
.IR AllocationPolicy ]
.RB [ \- A | \- \- autobackup " {" y | n }]
.RB [ \- a | \- \- available " [e|l] {" y | n }]
2006-08-19 01:49:19 +04:00
.RB [ \- \- monitor " {" y | n }]
2007-01-23 16:08:34 +03:00
.RB [ \- c | \- \- clustered " {" y | n }]
2008-01-04 14:48:40 +03:00
.RB [ \- u | \- \- uuid ]
2004-11-16 21:09:32 +03:00
.RB [ \- d | \- \- debug]
.RB [ \- \- deltag
2004-03-22 18:08:50 +03:00
.IR Tag ]
2004-11-16 21:09:32 +03:00
.RB [ \- h | \- \- help]
.RB [ \- \- ignorelockingfailure]
2007-06-18 18:14:33 +04:00
.RB [ \- \- ignoremonitoring]
2004-11-16 21:09:32 +03:00
.RB [ \- l | \- \- logicalvolume
2002-01-04 23:35:19 +03:00
.IR MaxLogicalVolumes ]
2006-08-16 18:41:42 +04:00
.RB [ -p | \- \- maxphysicalvolumes
.IR MaxPhysicalVolumes ]
2004-11-16 21:09:32 +03:00
.RB [ \- P | \- \- partial]
2006-04-07 01:15:14 +04:00
.RB [ \- s | \- \- physicalextentsize
.IR PhysicalExtentSize [ \fB kKmMgGtT\fR ]]
2009-02-25 16:17:40 +03:00
.RB [ \- \- refresh]
2004-11-16 21:09:32 +03:00
.RB [ -t | \- \- test]
.RB [ \- v | \- \- verbose]
.RB [ \- \- version ]
.RB [ \- x | \- \- resizeable " {" y | n }]
2002-01-04 23:35:19 +03:00
.RI [ VolumeGroupName ...]
.SH DESCRIPTION
.B vgchange
allows you to change the attributes of one or more volume groups.
Its main purpose is to activate and deactivate
.IR VolumeGroupName ,
or all volume groups if none is specified. Only active volume groups
are subject to changes and allow access to their logical volumes.
2002-11-18 17:04:08 +03:00
[Not yet implemented: During volume group activation, if
2002-01-04 23:35:19 +03:00
.B vgchange
recognizes snapshot logical volumes which were dropped because they ran
out of space, it displays a message informing the administrator that such
snapshots should be removed (see
.BR lvremove (8)).
2002-11-18 17:04:08 +03:00
]
2002-01-04 23:35:19 +03:00
.SH OPTIONS
See \fB lvm\fP for common options.
.TP
2007-01-23 16:08:34 +03:00
.BR \- A ", " \- \- autobackup " " { y | n }
2002-01-04 23:35:19 +03:00
Controls automatic backup of metadata after the change. See
.B vgcfgbackup (8).
Default is yes.
.TP
2007-01-23 16:08:34 +03:00
.BR \- a ", " \- \- available " " [e|l] { y | n }
2004-11-12 18:59:09 +03:00
Controls the availability of the logical volumes in the volume
group for input/output.
In other words, makes the logical volumes known/unknown to the kernel.
.IP
If clustered locking is enabled, add 'e' to activate/deactivate
exclusively on one node or 'l' to activate/deactivate only
on the local node.
Logical volumes with single-host snapshots are always activated
exclusively because they can only be used on one node at once.
2002-01-04 23:35:19 +03:00
.TP
2007-01-23 16:08:34 +03:00
.BR \- c ", " \- \- clustered " " { y | n }
If clustered locking is enabled, this indicates whether this
Volume Group is shared with other nodes in the cluster or whether
it contains only local disks that are not visible on the other nodes.
If the cluster infrastructure is unavailable on a particular node at a
particular time, you may still be able to use Volume Groups that
are not marked as clustered.
.TP
2008-01-04 14:48:40 +03:00
.BR \- u ", " \- \- uuid
Generate new random UUID for specified Volume Groups.
.TP
2006-08-19 02:27:01 +04:00
.BR \- \- monitor " " { y | n }
Controls whether or not a mirrored logical volume is monitored by
dmeventd, if it is installed.
If a device used by a monitored mirror reports an I/O error,
the failure is handled according to
.BR mirror_image_fault_policy
and
.BR mirror_log_fault_policy
set in
2006-08-19 02:35:59 +04:00
.BR lvm.conf (5).
2006-08-19 01:49:19 +04:00
.TP
2007-06-18 18:14:33 +04:00
.BR \- \- ignoremonitoring
Make no attempt to interact with dmeventd unless
.BR \- \- monitor
is specified.
Do not use this if dmeventd is already monitoring a device.
.TP
2002-01-04 23:35:19 +03:00
.BR \- l ", " \- \- logicalvolume " " \fI MaxLogicalVolumes\fR
Changes the maximum logical volume number of an existing inactive
volume group.
.TP
2006-08-16 18:41:42 +04:00
.BR \- p ", " \- \- maxphysicalvolumes " " \fI MaxPhysicalVolumes\fR
Changes the maximum number of physical volumes that can belong
to this volume group.
For volume groups with metadata in lvm1 format, the limit is 255.
If the metadata uses lvm2 format, the value 0
removes this restriction: there is then no limit.
If you have a large number of physical volumes in
a volume group with metadata in lvm2 format,
for tool performance reasons, you should consider
some use of \fB --metadatacopies 0\fP
as described in \fB pvcreate(8)\fP .
.TP
2006-04-07 01:15:14 +04:00
.BR \- s ", " \- \- physicalextentsize " " \fI PhysicalExtentSize\fR[\fBkKmMgGtT\fR]
Changes the physical extent size on physical volumes of this volume group.
A size suffix (k for kilobytes up to t for terabytes) is optional, megabytes
is the default if no suffix is present.
The default is 4 MB and it must be at least 1 KB and a power of 2.
Before increasing the physical extent size, you might need to use lvresize,
pvresize and/or pvmove so that everything fits. For example, every
contiguous range of extents used in a logical volume must start and
end on an extent boundary.
If the volume group metadata uses lvm1 format, extents can vary in size from
8KB to 16GB and there is a limit of 65534 extents in each logical volume. The
default of 4 MB leads to a maximum logical volume size of around 256GB.
If the volume group metadata uses lvm2 format those restrictions do not apply,
but having a large number of extents will slow down the tools but have no
impact on I/O performance to the logical volume. The smallest PE is 1KB.
The 2.4 kernel has a limitation of 2TB per block device.
.TP
2009-02-25 16:17:40 +03:00
.BR \- \- refresh
If any logical volume in the volume group is active, reload its metadata.
This is not necessary in normal operation, but may be useful
if something has gone wrong or if you're doing clustering
manually without a clustered lock manager.
.TP
2007-01-23 16:08:34 +03:00
.BR \- x ", " \- \- resizeable " " { y | n }
2002-01-04 23:35:19 +03:00
Enables or disables the extension/reduction of this volume group
with/by physical volumes.
.SH EXAMPLES
To activate all known volume groups in the system:
.nf
\ vgchange -a y
.fi
To change the maximum number of logical volumes of inactive volume group
.B vg00
to 128.
.nf
\ vgchange -l 128 /dev/vg00
.fi
.SH SEE ALSO
2004-11-12 18:59:09 +03:00
.BR lvchange (8),
2002-01-04 23:35:19 +03:00
.BR lvm (8),
.BR vgcreate (8)