]> sourceware.org Git - lvm2.git/blame - man/lvchange.8
Add mirroring into man pages
[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
AK
9[\-C/\-\-contiguous y/n] [\-d/\-\-debug] [\-\-deltag Tag]
10[\-h/\-?/\-\-help]
5a52dca9 11[\-\-ignorelockingfailure]
48432c88 12[\-\-monitor {y|n}]
5a52dca9
AK
13[\-M/\-\-persistent y/n] [\-\-minor minor]
14[\-P/\-\-partial y/n]
922ce479 15[\-p/\-\-permission r/w] [\-r/\-\-readahead ReadAheadSectors]
d6cf4325 16[\-\-refresh]
5a52dca9 17[\-t/\-\-test]
922ce479
AK
18[\-v/\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
19.SH DESCRIPTION
d6cf4325
AK
20lvchange allows you to change the attributes of a logical volume
21including making them known to the kernel ready for use.
922ce479
AK
22.SH OPTIONS
23See \fBlvm\fP for common options.
24.TP
d6cf4325 25.I \-a, \-\-available y/n/ey/en/ly/ln
922ce479 26Controls the availability of the logical volumes for use.
d6cf4325
AK
27Communicates with the kernel device-mapper driver via
28libdevmapper to activate (-ay) or deactivate (-an) the
29logical volumes.
30.IP
31If clustered locking is enabled, -ae will activate exclusively
32on one node and -aly will activate only on the local node.
33To deactivate only on the local node use -aln.
34Logical volumes with single-host snapshots are always activated
35exclusively because they can only be used on one node at once.
922ce479
AK
36.TP
37.I \-C, \-\-contiguous y/n
5a52dca9 38Tries to set or reset the contiguous allocation policy for
922ce479
AK
39logical volumes. It's only possible to change a non-contiguous
40logical volume's allocation policy to contiguous, if all of the
41allocated physical extents are already contiguous.
42.TP
5a52dca9
AK
43.I \-\-minor minor
44Set the minor number.
45.TP
48432c88
AK
46.I \-\-monitor y/n
47Controls whether the mirrored logical volume is monitored by
48dmeventd. If monitored (the default), a failed mirror device
49will automatically be removed from the volume group.
50.TP
5a52dca9
AK
51.I \-M, \-\-persistent y/n
52Set to y to make the minor number specified persistent.
53.TP
922ce479
AK
54.I \-p, \-\-permission r/w
55Change access permission to read-only or read/write.
56.TP
57.I \-r, \-\-readahead ReadAheadSectors
58Change read ahead sector count per logical between 2 and 120.
d6cf4325
AK
59For compatability with LVM1 only. Ignored by LVM2.
60.TP
61.I \-\-refresh
62If the logical volume is active, reload its metadata.
63This is not necessary in normal operation, but may be useful
64if something has gone wrong or if you're doing clustering
65manually without a clustered lock manager.
922ce479 66.SH Examples
d6cf4325 67"lvchange -pr vg00/lvol1" changes the permission on
075ab744
PC
68volume lvol1 in volume group vg00 to be read-only.
69
922ce479
AK
70.SH SEE ALSO
71.BR lvm (8),
d6cf4325
AK
72.BR lvcreate (8),
73.BR vgchange (8)
This page took 0.041612 seconds and 5 git commands to generate.