1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Minor man page updates related to metadataignore and vgmetadatacopies.

pvchange: Add --metadataignore description
vgchange: Fix minor formatting
pvcreate: Update metadataignore description to refer to pvchange
lvm.conf: Refer to pvcreate and pvchange for metadata options.
This commit is contained in:
Dave Wysochanski 2010-07-13 15:04:23 +00:00
parent 8c4e8a185a
commit 8c013d78b6
4 changed files with 25 additions and 15 deletions

View File

@ -386,7 +386,8 @@ to store on each physical volume.
Currently it can be set to 0, 1 or 2. The default is 1.
If set to 2, one copy is placed at the beginning of the disk
and the other is placed at the end.
It can be overridden on the command line with \fB--pvmetadatacopies\fP.
It can be overridden on the command line with \fB--pvmetadatacopies\fP
(see \fBpvcreate\fP).
If creating a volume group with just one physical volume, it's a
good idea to have 2 copies. If creating a large volume group with
many physical volumes, you may decide that 3 copies of the metadata
@ -411,8 +412,9 @@ metadata format, this states whether metadata areas should be ignored.
The default is "n". If metadata areas on a physical volume are ignored,
LVM will not not store metadata in the metadata areas present on newly
created Physical Volumes. The option can be overridden on the command
line with \fB--metadataignore\fP. Metadata areas cannot be created
or extended after Logical Volumes have been allocated on the device.
line with \fB--metadataignore\fP (See \fBpvcreate\fP and \fBpvchange\fP).
Metadata areas cannot be created or extended after Logical Volumes have
been allocated on the device.
If you do not want to store metadata on this device, it is still wise
always to allocate a metadata area (use a non-zero value for
\fB--pvmetadatacopies\fP) in case you need it in the future and to use
@ -422,13 +424,14 @@ this option to instruct LVM2 to ignore it.
LVM2 metadata format, this is the default number of copies of metadata
desired across all the physical volumes in the volume group. If set to
a non-zero value, LVM will automatically set or clear the metadataignore
flag on the physical volumes (see \fBpvchange --metadataignore\fP) in order
to achieve the desired number of metadata copies. An LVM command that
adds or removes physical volumes (for example, \fBvgextend\fP, \fBvgreduce\fP,
\fBvgsplit\fP, or \fBvgmerge\fP), may cause LVM to automatically set or
clear the metadataignore flags. Also, if physical volumes go missing or
reappear, or a new number of copies is explicitly set (see
\fBvgchange --vgmetadatacopies\fP), LVM may adjust the metadataignore flags.
flag on the physical volumes (see \fBpvcreate\fP and \fBpvchange\fP
\fB--metadataignore\fP) in order to achieve the desired number of metadata
copies. An LVM command that adds or removes physical volumes (for example,
\fBvgextend\fP, \fBvgreduce\fP, \fBvgsplit\fP, or \fBvgmerge\fP), may cause
LVM to automatically set or clear the metadataignore flags. Also, if
physical volumes go missing or reappear, or a new number of copies is
explicitly set (see \fBvgchange --vgmetadatacopies\fP), LVM may adjust
the metadataignore flags.
Set \fBvgmetadatacopies\fP to 0 instructs LVM not to set or clear the
metadataignore flags automatically. You may set a value larger than the
sum of all metadata areas on all physical volumes. The value can

View File

@ -22,6 +22,12 @@ See \fBlvm\fP for common options.
If PhysicalVolumePath is not specified on the command line all
physical volumes are searched for and used.
.TP
.I \-\-metadataignore " y|n"
Ignore or un-ignore metadata areas on this physical volume.
If metadata areas on a physical volume are ignored, LVM will
not not store metadata in the metadata areas present on this Physical
Volume.
.TP
.I \-u, \-\-uuid
Generate new random UUID for specified physical volumes.
.TP

View File

@ -118,9 +118,10 @@ with VGs containing large numbers of PVs. But if you do this and
then later use \fBvgsplit\fP you must ensure that each VG is still going
to have a suitable number of copies of the metadata after the split!
.TP
.I \-\-metadataignore y|n
Ignore or un-ignore metadata areas on this physical volume. The default
is "n". If metadata areas on a physical volume are ignored, LVM will
.BR \-\-metadataignore " y|n"
Ignore or un-ignore metadata areas on this physical volume.
The default is "n". This setting can be changed with \fBpvchange\fP.
If metadata areas on a physical volume are ignored, LVM will
not not store metadata in the metadata areas present on this Physical
Volume. Metadata areas cannot be created or extended after Logical
Volumes have been allocated on the device. If you do not want to store

View File

@ -135,10 +135,10 @@ a volume group with metadata in lvm2 format, for tool performance reasons,
you should consider some use of \fB--pvmetadatacopies 0\fP as described in
\fBpvcreate(8)\fP, and/or use \fB--vgmetadatacopies\fP.
.TP
.BR \-\-vgmetadatacopies " " \fINumberOfCopies|unmanaged|all\fP
.BR \-\-[vg]metadatacopies " " \fINumberOfCopies|unmanaged|all\fP
Sets the desired number of metadata copies in the volume group. If set to
a non-zero value, LVM will automatically manage the 'metadataignore'
flags on the physical volumes (see \fBpvchange\fP or \fBpvcreate\fP --metadataignore\fP) in order
flags on the physical volumes (see \fBpvchange\fP or \fBpvcreate --metadataignore\fP) in order
to achieve \fINumberOfCopies\fP copies of metadata. If set to \fIunmanaged\fP,
LVM will not automatically manage the 'metadataignore' flags. If set to
\fIall\fP, LVM will first clear all of the 'metadataignore' flags on all