2008-10-08 16:50:13 +04:00
.TH VGEXTEND 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-01-04 23:35:19 +03:00
.SH NAME
vgextend \- add physical volumes to a volume group
.SH SYNOPSIS
.B vgextend
2012-04-11 16:42:10 +04:00
.RB [ \- A | \- \- autobackup
.RI { y | n }]
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- ? | \- \- help ]
.RB [ \- \- restoremissing ]
.RB [ \- f | \- \- force ]
.RB [ \- t | \- \- test ]
.RB [ \- v | \- \- verbose ]
.RB [ "PHYSICAL DEVICE OPTIONS" ]
.I VolumeGroupName PhysicalDevicePath
.RI [ PhysicalDevicePath ...]
2002-01-04 23:35:19 +03:00
.SH DESCRIPTION
2012-04-11 16:42:10 +04:00
vgextend allows you to add one or more initialized physical volumes
(see \fB pvcreate\fP (8)) to an existing volume group to extend it in size. Moreover, it allows you to
2010-10-13 14:34:31 +04:00
re-add a physical volume that has gone missing previously, due to a transient
2012-04-11 16:42:10 +04:00
device failure, without re-initialising it. Use
\fB vgextend \- \- restoremissing\fP to that effect.
2009-10-06 00:04:21 +04:00
.sp
If \fI PhysicalDevicePath\fP was not previously configured for LVM with
2012-04-11 16:42:10 +04:00
\fB pvcreate\fP (8), the device will be initialized with the same
default values used with \fB pvcreate\fP (8). If non-default
\fP pvcreate\fP (8) values are desired, they may be given on the
commandline with the same options as \fP pvcreate\fP (8). See
.B PHYSICAL DEVICE OPTIONS
for available options. Note that the restore-related options such as
.BR \- \- restorefile ", " \- \- uuid " and " \- \- physicalvolumesize
are not available. If a restore operation
is needed, use \fB pvcreate\fP (8) and \fB vgcfgrestore\fP (8).
2002-01-04 23:35:19 +03:00
.SH OPTIONS
2012-04-11 16:42:10 +04:00
See \fB lvm\fP (8) for common options.
2009-10-06 00:04:21 +04:00
.SH PHYSICAL DEVICE OPTIONS
The following options are available for initializing physical devices in the
2012-04-11 16:42:10 +04:00
volume group. These options are further described in the
\fB pvcreate\fP (8) man page.
2009-10-06 00:04:21 +04:00
.TP
.BR \- f ", " \- \- force
.TP
.BR \- y ", " \- \- yes
.TP
2012-04-11 16:42:10 +04:00
.BR \- Z ", " \- \- zero " {" \fI y | \fI n }
2009-10-06 00:04:21 +04:00
.TP
2012-04-11 16:42:10 +04:00
.B \- \- labelsector \fI sector
2009-10-06 00:04:21 +04:00
.TP
2012-04-11 16:42:10 +04:00
.B \- \- metadatasize \fI size
2009-10-06 00:04:21 +04:00
.TP
2012-04-11 16:42:10 +04:00
.BR \- \- metadataignore " {" \fI y | \fI n }
2010-06-30 17:03:48 +04:00
.TP
2012-04-11 16:42:10 +04:00
.B \- \- pvmetadatacopies \fI copies
2009-10-06 00:04:21 +04:00
.TP
2012-04-11 16:42:10 +04:00
.B \- \- dataalignment \fI alignment
2009-10-06 00:04:21 +04:00
.TP
2012-04-11 16:42:10 +04:00
.B \- \- dataalignmentoffset \fI alignment_offset
2002-01-04 23:35:19 +03:00
.SH Examples
2012-04-11 16:42:10 +04:00
Extends the existing volume group "vg00" by the new physical volumes
(see \fB pvcreate\fP (8)) "/dev/sda4" and "/dev/sdn1".
.sp
.B vgextend vg00 /dev/sda4 /dev/sdn1
2002-01-04 23:35:19 +03:00
.SH SEE ALSO
2008-10-08 16:50:13 +04:00
.BR lvm (8),
.BR vgcreate (8),
.BR vgreduce (8),
2002-01-04 23:35:19 +03:00
.BR pvcreate (8)