]> sourceware.org Git - lvm2.git/blame - man/lvchange.8.in
Propagate commit and revert metadata event to other nodes in cluster.
[lvm2.git] / man / lvchange.8.in
CommitLineData
5951ef33 1.TH LVCHANGE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
922ce479
AK
2.SH NAME
3lvchange \- change attributes of a logical volume
4.SH SYNOPSIS
5.B lvchange
12da72ad 6[\-\-addtag Tag]
82dcb097 7[\-A|\-\-autobackup y|n] [\-a|\-\-available y|n|ey|en|ly|ln]
63bea03e 8[\-\-alloc AllocationPolicy]
82dcb097 9[\-C|\-\-contiguous y|n] [\-d|\-\-debug] [\-\-deltag Tag]
e51d50a1 10[\-\-resync]
82dcb097 11[\-h|\-?|\-\-help]
5a52dca9 12[\-\-ignorelockingfailure]
53c774b9 13[\-\-ignoremonitoring]
48432c88 14[\-\-monitor {y|n}]
b42929dc 15[\-\-noudevsync]
82dcb097
DW
16[\-M|\-\-persistent y|n] [\-\-minor minor]
17[\-P|\-\-partial]
18[\-p|\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none]
d6cf4325 19[\-\-refresh]
82dcb097
DW
20[\-t|\-\-test]
21[\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
922ce479 22.SH DESCRIPTION
d6cf4325
AK
23lvchange allows you to change the attributes of a logical volume
24including making them known to the kernel ready for use.
922ce479
AK
25.SH OPTIONS
26See \fBlvm\fP for common options.
27.TP
82dcb097 28.I \-a, \-\-available y|n|ey|en|ly|ln
922ce479 29Controls the availability of the logical volumes for use.
d6cf4325
AK
30Communicates with the kernel device-mapper driver via
31libdevmapper to activate (-ay) or deactivate (-an) the
32logical volumes.
33.IP
b2d6cb06 34If clustered locking is enabled, -aey will activate exclusively
d6cf4325
AK
35on one node and -aly will activate only on the local node.
36To deactivate only on the local node use -aln.
37Logical volumes with single-host snapshots are always activated
38exclusively because they can only be used on one node at once.
922ce479 39.TP
82dcb097 40.I \-C, \-\-contiguous y|n
5a52dca9 41Tries to set or reset the contiguous allocation policy for
922ce479
AK
42logical volumes. It's only possible to change a non-contiguous
43logical volume's allocation policy to contiguous, if all of the
44allocated physical extents are already contiguous.
45.TP
e51d50a1 46.I \-\-resync
b23f88bf
AK
47Forces the complete resynchronization of a mirror. In normal
48circumstances you should not need this option because synchronization
49happens automatically. Data is read from the primary mirror device
50and copied to the others, so this can take a considerable amount of
51time - and during this time you are without a complete redundant copy
52of your data.
04e023be 53.TP
5a52dca9
AK
54.I \-\-minor minor
55Set the minor number.
56.TP
82dcb097 57.I \-\-monitor y|n
9380176b
AK
58Controls whether or not a mirrored logical volume is monitored by
59dmeventd, if it is installed.
60If a device used by a monitored mirror reports an I/O error,
61the failure is handled according to
62\fBmirror_image_fault_policy\fP and \fBmirror_log_fault_policy\fP
63set in \fBlvm.conf\fP.
48432c88 64.TP
b42929dc
AK
65.I \-\-noudevsync
66Disable udev synchronisation. The
67process will not wait for notification from udev.
68It will continue irrespective of any possible udev processing
69in the background. You should only use this if udev is not running
70or has rules that ignore the devices LVM2 creates.
71.TP
53c774b9
AK
72.I \-\-ignoremonitoring
73Make no attempt to interact with dmeventd unless \-\-monitor
74is specified.
75Do not use this if dmeventd is already monitoring a device.
76.TP
82dcb097 77.I \-M, \-\-persistent y|n
5a52dca9
AK
78Set to y to make the minor number specified persistent.
79.TP
3a91213c 80.I \-p, \-\-permission r|rw
922ce479
AK
81Change access permission to read-only or read/write.
82.TP
b4068515
AK
83.I \-r, \-\-readahead ReadAheadSectors|auto|none
84Set read ahead sector count of this logical volume.
85For volume groups with metadata in lvm1 format, this must
b680c5c6 86be a value between 2 and 120 sectors.
b4068515
AK
87The default value is "auto" which allows the kernel to choose
88a suitable value automatically.
89"None" is equivalent to specifying zero.
d6cf4325
AK
90.TP
91.I \-\-refresh
92If the logical volume is active, reload its metadata.
93This is not necessary in normal operation, but may be useful
94if something has gone wrong or if you're doing clustering
95manually without a clustered lock manager.
922ce479 96.SH Examples
d6cf4325 97"lvchange -pr vg00/lvol1" changes the permission on
075ab744
PC
98volume lvol1 in volume group vg00 to be read-only.
99
922ce479
AK
100.SH SEE ALSO
101.BR lvm (8),
d6cf4325
AK
102.BR lvcreate (8),
103.BR vgchange (8)
This page took 0.062387 seconds and 5 git commands to generate.