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