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