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

man: --activate ay and auto_activation_volume_list

This commit is contained in:
Peter Rajnoha 2012-06-29 12:40:26 +02:00
parent ec8f377748
commit a54285a715
6 changed files with 43 additions and 10 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.97 - Version 2.02.97 -
=============================== ===============================
Update man pages with --activate ay option and auto_activation_volume_list.
Fix _alloc_parallel_area to avoid picking already-full areas for raid devices. Fix _alloc_parallel_area to avoid picking already-full areas for raid devices.
Use vgchange -aay instead of vgchange -ay in clmvd init script. Use vgchange -aay instead of vgchange -ay in clmvd init script.
Add activation/auto_activation_volume_list to lvm.conf. Add activation/auto_activation_volume_list to lvm.conf.

View File

@ -8,7 +8,7 @@ lvchange \- change attributes of a logical volume
.RB [ \-A | \-\-autobackup .RB [ \-A | \-\-autobackup
.RI { y | n }] .RI { y | n }]
.RB [ \-a | \-\-activate .RB [ \-a | \-\-activate
.RI [ e | l ]{ y | n }] .RI [ a | e | l ]{ y | n }]
.RB [ \-\-alloc .RB [ \-\-alloc
.IR AllocationPolicy ] .IR AllocationPolicy ]
.RB [ \-C | \-\-contiguous .RB [ \-C | \-\-contiguous
@ -46,11 +46,15 @@ including making them known to the kernel ready for use.
.SH OPTIONS .SH OPTIONS
See \fBlvm\fP(8) for common options. See \fBlvm\fP(8) for common options.
.TP .TP
.BR \-a ", " \-\-activate " [" \fIe | \fIl ]{ \fIy | \fIn } .BR \-a ", " \-\-activate " [" \fIa | \fIe | \fIl ]{ \fIy | \fIn }
Controls the availability of the logical volumes for use. Controls the availability of the logical volumes for use.
Communicates with the kernel device-mapper driver via Communicates with the kernel device-mapper driver via
libdevmapper to activate (\-ay) or deactivate (\-an) the libdevmapper to activate (\-ay) or deactivate (\-an) the
logical volumes. logical volumes. If autoactivation option is used (\-aay),
the logical volume is activated only if it matches an item in
the activation/auto_activation_volume_list set in lvm.conf.
Autoactivation is not yet supported for logical volumes that
are part of partial or clustered volume groups.
.IP .IP
If clustered locking is enabled, -aey will activate exclusively If clustered locking is enabled, -aey will activate exclusively
on one node and -aly will activate only on the local node. on one node and -aly will activate only on the local node.

View File

@ -8,7 +8,7 @@ lvcreate \- create a logical volume in an existing volume group
.RB [ \-\-alloc .RB [ \-\-alloc
.IR AllocationPolicy ] .IR AllocationPolicy ]
.RB [ \-a | \-\-activate .RB [ \-a | \-\-activate
.RI [ e | l ]{ y | n }] .RI [ a | e | l ]{ y | n }]
.RB [ \-A | \-\-autobackup .RB [ \-A | \-\-autobackup
.RI { y | n }] .RI { y | n }]
.RB [ \-C | \-\-contiguous .RB [ \-C | \-\-contiguous
@ -107,17 +107,21 @@ See
.BR lvm (8) .BR lvm (8)
for common options. for common options.
.TP .TP
.IR \fB\-a ", " \fB\-\-activate " {" y | n | ey | en | ly | ln } .IR \fB\-a ", " \fB\-\-activate " {" y | ay | n | ey | en | ly | ln }
Controls the availability of the Logical Volumes for immediate use after Controls the availability of the Logical Volumes for immediate use after
the command finishes running. the command finishes running.
By default, new Logical Volumes are activated automatically (\fB-a\fIy\fR). By default, new Logical Volumes are activated (\fB-a\fIy\fR).
If it is possible technically, \fB-a\fIn\fR will leave the new Logical If it is possible technically, \fB-a\fIn\fR will leave the new Logical
Volume inactive. But for example, snapshots can only be created Volume inactive. But for example, snapshots can only be created
in the active state so \fB\-a\fIn\fR cannot be used with \fB\-\-snapshot\fP. in the active state so \fB\-a\fIn\fR cannot be used with \fB\-\-snapshot\fP.
Normally the \fB\-\-zero n\fP argument has to be supplied too because Normally the \fB\-\-zero n\fP argument has to be supplied too because
zeroing (the default behaviour) also requires activation. zeroing (the default behaviour) also requires activation.
If clustered locking is enabled, \fB\-a\fIey\fR will activate exclusively If autoactivation option is used (\fB\-a\fIay\fR), the logical volume is
on one node and \fB\-a\fIly\fR will activate only on the local node. activated only if it matches an item in the activation/auto_activation_volume_list
set in lvm.conf. For autoactivated logical volumes, \fB\-\-zero n\fP is
always assumed and it can't be overridden. If clustered locking is enabled,
\fB\-a\fIey\fR will activate exclusively on one node and \fB\-a\fIly\fR will
activate only on the local node.
.TP .TP
.BR \-c ", " \-\-chunksize " " \fIChunkSize .BR \-c ", " \-\-chunksize " " \fIChunkSize
Gives the size of chunk for snapshot and thin pool logical volumes. Gives the size of chunk for snapshot and thin pool logical volumes.

View File

@ -424,6 +424,17 @@ metadata for a match.
Logical volume and volume groups can also be included in the list Logical volume and volume groups can also be included in the list
by name e.g. vg00, vg00/lvol1. by name e.g. vg00, vg00/lvol1.
.IP .IP
\fBauto_activation_volume_list\fP \(em This acts as a filter through
which all requests to autoactivate a logical volume on this machine
are passed. A logical volume is autoactivated if it matches
an item in the list. Volumes must also pass the \fBvolume_list\fP
filter, if present. Tags must be preceded by @ and are checked against
all tags defined in the logical volume and volume group metadata for
a match. @* is short-hand to check every tag set on the host machine
(see \fBtags\fP above).
Logical volume and volume groups can also be included in the list
by name e.g. vg00, vg00/lvol1.
.IP
\fBread_only_volume_list\fP \(em This acts as a filter through \fBread_only_volume_list\fP \(em This acts as a filter through
which all requests to activate a logical volume on this machine which all requests to activate a logical volume on this machine
are passed. A logical volume is activated in read-only mode (instead are passed. A logical volume is activated in read-only mode (instead

View File

@ -18,6 +18,7 @@ pvscan \- scan all disks for physical volumes
.RB [ \-d | \-\-debug ] .RB [ \-d | \-\-debug ]
.RB [ \-h | \-\-help ] .RB [ \-h | \-\-help ]
.B \-\-cache .B \-\-cache
.RB [ \-a | \-\-activate " " \fIay ]
.RB [ \-\-major .RB [ \-\-major
.I major .I major
.B \-\-minor .B \-\-minor
@ -42,6 +43,13 @@ Short listing format.
.BR \-u ", " \-\-uuid .BR \-u ", " \-\-uuid
Show UUIDs (Uniform Unique Identifiers) in addition to device special names. Show UUIDs (Uniform Unique Identifiers) in addition to device special names.
.TP .TP
.BR \-a ", " \-\-activate " " \fIay
Together with the information already cached in lvmetad, automatically activate
any logical volumes that become activatable after the scan done on one or more devices.
The logical volume to autoactivate is matched against the
activation/auto_activation_volume_list set in lvm.conf. Autoactivation is not yet
supported on logical volumes that are part of partial or clustered volume groups.
.TP
.BR \-\-cache " [" \-\-major " " \fImajor " " \-\-minor " " \fIminor " | " \fIDevicePath " ]..." .BR \-\-cache " [" \-\-major " " \fImajor " " \-\-minor " " \fIminor " | " \fIDevicePath " ]..."
Scan one or more devices and instruct the lvmetad daemon to update its cached Scan one or more devices and instruct the lvmetad daemon to update its cached
state accordingly. Called internally by udev rules. state accordingly. Called internally by udev rules.

View File

@ -10,7 +10,7 @@ vgchange \- change attributes of a volume group
.RB [ \-A | \-\-autobackup .RB [ \-A | \-\-autobackup
.RI { y | n }] .RI { y | n }]
.RB [ \-a | \-\-activate .RB [ \-a | \-\-activate
.RI [ e | l ] .RI [ a | e | l ]
.RI { y | n }] .RI { y | n }]
.RB [ \-\-monitor .RB [ \-\-monitor
.RI { y | n }] .RI { y | n }]
@ -64,10 +64,15 @@ Controls automatic backup of metadata after the change. See
.BR vgcfgbackup (8). .BR vgcfgbackup (8).
Default is yes. Default is yes.
.TP .TP
.BR \-a ", " \-\-activate " [" \fIe | \fIl ]{ \fIy | \fIn } .BR \-a ", " \-\-activate " [" \fIa | \fIe | \fIl ]{ \fIy | \fIn }
Controls the availability of the logical volumes in the volume Controls the availability of the logical volumes in the volume
group for input/output. group for input/output.
In other words, makes the logical volumes known/unknown to the kernel. In other words, makes the logical volumes known/unknown to the kernel.
If autoactivation option is used (\-aay), each logical volume in
the volume group is activated only if it matches an item in the
activation/auto_activation_volume_list set in lvm.conf.
Autoactivation is not yet supported for partial or clustered
volume groups.
.IP .IP
If clustered locking is enabled, add 'e' to activate/deactivate If clustered locking is enabled, add 'e' to activate/deactivate
exclusively on one node or 'l' to activate/deactivate only exclusively on one node or 'l' to activate/deactivate only