mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Document metadata tagging.
This commit is contained in:
parent
f2046e0aeb
commit
12da72adeb
@ -3,8 +3,10 @@
|
|||||||
lvchange \- change attributes of a logical volume
|
lvchange \- change attributes of a logical volume
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B lvchange
|
.B lvchange
|
||||||
|
[\-\-addtag Tag]
|
||||||
[\-A/\-\-autobackup y/n] [\-a/\-\-available y/n]
|
[\-A/\-\-autobackup y/n] [\-a/\-\-available y/n]
|
||||||
[\-C/\-\-contiguous y/n] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
[\-C/\-\-contiguous y/n] [\-d/\-\-debug] [\-\-deltag Tag]
|
||||||
|
[\-h/\-?/\-\-help]
|
||||||
[\-\-ignorelockingfailure]
|
[\-\-ignorelockingfailure]
|
||||||
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
||||||
[\-P/\-\-partial y/n]
|
[\-P/\-\-partial y/n]
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
lvcreate \- create a logical volume in an existing volume group
|
lvcreate \- create a logical volume in an existing volume group
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B lvcreate
|
.B lvcreate
|
||||||
|
[\-\-addtag Tag]
|
||||||
[\-A/\-\-autobackup y/n] [\-C/\-\-contiguous y/n] [\-d/\-\-debug]
|
[\-A/\-\-autobackup y/n] [\-C/\-\-contiguous y/n] [\-d/\-\-debug]
|
||||||
[\-h/\-?/\-\-help]
|
[\-h/\-?/\-\-help]
|
||||||
[\-i/\-\-stripes Stripes [\-I/\-\-stripesize StripeSize]]
|
[\-i/\-\-stripes Stripes [\-I/\-\-stripesize StripeSize]]
|
||||||
|
29
man/lvm.8
29
man/lvm.8
@ -75,11 +75,40 @@ changed with this option. To insert a replacement physical volume
|
|||||||
of the same or large size use \fBpvcreate -u\fP to set the uuid to
|
of the same or large size use \fBpvcreate -u\fP to set the uuid to
|
||||||
match the original followed by \fBvgcfgrestore (8)\fP.
|
match the original followed by \fBvgcfgrestore (8)\fP.
|
||||||
.TP
|
.TP
|
||||||
|
\fB-M | --metadatatype type\fP
|
||||||
|
Specifies which type of on-disk metadata to use, such as \fBlvm1\fP
|
||||||
|
or \fBlvm2\fP, which can be abbreviated to \fB1\fP or \fB2\fP respectively.
|
||||||
|
The default (lvm2) can be changed by setting \fBformat\fP in the \fBglobal\fP
|
||||||
|
section of the config file.
|
||||||
|
.TP
|
||||||
\fB--ignorelockingfailure\fP
|
\fB--ignorelockingfailure\fP
|
||||||
This lets you proceed with read-only metadata operations such as
|
This lets you proceed with read-only metadata operations such as
|
||||||
\fBlvchange -ay\fP and \fBvgchange -ay\fP even if the locking module fails.
|
\fBlvchange -ay\fP and \fBvgchange -ay\fP even if the locking module fails.
|
||||||
One use for this is in a system init script if the lock directory
|
One use for this is in a system init script if the lock directory
|
||||||
is mounted read-only when the script runs.
|
is mounted read-only when the script runs.
|
||||||
|
.TP
|
||||||
|
\fB--addtag tag\fP
|
||||||
|
Add the tag \fBtag\fP to a PV, VG or LV.
|
||||||
|
A tag is a word that can be used to group LVM2 objects of the same type
|
||||||
|
together.
|
||||||
|
Tags can be given on the command line in place of PV, VG or LV
|
||||||
|
arguments. Tags should be prefixed with @ to avoid ambiguity.
|
||||||
|
Each tag is expanded by replacing it with all objects possessing
|
||||||
|
that tag which are of the type expected by its position on the command line.
|
||||||
|
PVs can only possess tags while they are part of a Volume Group:
|
||||||
|
PV tags are discarded if the PV is removed from the VG.
|
||||||
|
As an example, you could tag some LVs as \fBdatabase\fP and others
|
||||||
|
as \fBuserdata\fP and then activate the database ones
|
||||||
|
with \fBlvchange -ay @database\fP.
|
||||||
|
Objects can possess multiple tags simultaneously.
|
||||||
|
Only the new LVM2 metadata format supports tagging: objects using the
|
||||||
|
LVM1 metadata format cannot be tagged because the on-disk format does not
|
||||||
|
support it.
|
||||||
|
Snapshots cannot be tagged.
|
||||||
|
Characters allowed in tags are: A-Z a-z 0-9 _ + . -
|
||||||
|
.TP
|
||||||
|
\fB--deltag tag\fP
|
||||||
|
Delete the tag \fBtag\fP from a PV, VG or LV, if it's present.
|
||||||
.SH ENVIRONMENT VARIABLES
|
.SH ENVIRONMENT VARIABLES
|
||||||
.TP
|
.TP
|
||||||
\fBLVM_SYSTEM_DIR\fP
|
\fBLVM_SYSTEM_DIR\fP
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
pvchange \- change attributes of a physical volume
|
pvchange \- change attributes of a physical volume
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B pvchange
|
.B pvchange
|
||||||
[\-A/\-\-autobackup y/n] [\-d/\-\-debug] [\-h/\-?/\-\-help]
|
[\-\-addtag Tag]
|
||||||
|
[\-A/\-\-autobackup y/n] [\-d/\-\-debug]
|
||||||
|
[\-\-deltag Tag]
|
||||||
|
[\-h/\-?/\-\-help]
|
||||||
[\-t/\-\-test]
|
[\-t/\-\-test]
|
||||||
[\-v/\-\-verbose] [\-a/\-\-all] [\-x/\-\-allocatable y/n] [PhysicalVolumePath...]
|
[\-v/\-\-verbose] [\-a/\-\-all] [\-x/\-\-allocatable y/n] [PhysicalVolumePath...]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -3,9 +3,13 @@
|
|||||||
vgchange \- change attributes of a volume group
|
vgchange \- change attributes of a volume group
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B vgchange
|
.B vgchange
|
||||||
|
.RB [\-\-addtag
|
||||||
|
.IR Tag ]
|
||||||
.RB [\-A | \-\-autobackup " {" y | n }]
|
.RB [\-A | \-\-autobackup " {" y | n }]
|
||||||
.RB [\-a | \-\-available " {" y | n }]
|
.RB [\-a | \-\-available " {" y | n }]
|
||||||
.RB [\-d | \-\-debug]
|
.RB [\-d | \-\-debug]
|
||||||
|
.RB [\-\-deltag
|
||||||
|
.IR Tag ]
|
||||||
.RB [\-h | \-\-help]
|
.RB [\-h | \-\-help]
|
||||||
.RB [\-\-ignorelockingfailure]
|
.RB [\-\-ignorelockingfailure]
|
||||||
.RB [\-l | \-\-logicalvolume
|
.RB [\-l | \-\-logicalvolume
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
vgcreate \- create a volume group
|
vgcreate \- create a volume group
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B vgcreate
|
.B vgcreate
|
||||||
|
.RB [ \-\-addtag
|
||||||
|
.IR Tag ]
|
||||||
.RB [ \-A | \-\-autobackup " {" y | n }]
|
.RB [ \-A | \-\-autobackup " {" y | n }]
|
||||||
.RB [ \-d | \-\-debug ]
|
.RB [ \-d | \-\-debug ]
|
||||||
.RB [ \-h | \-\-help ]
|
.RB [ \-h | \-\-help ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user