3 .TH LVCHANGE 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Sistina Software UK" \" -*- nroff -*-
5 lvchange \- change attributes of a logical volume
9 [\-A|\-\-autobackup y|n] [\-a|\-\-available y|n|ey|en|ly|ln]
10 [\-\-alloc AllocationPolicy]
11 [\-C|\-\-contiguous y|n] [\-d|\-\-debug] [\-\-deltag Tag]
14 [\-\-ignorelockingfailure]
15 [\-\-ignoremonitoring]
17 [\-M|\-\-persistent y|n] [\-\-minor minor]
19 [\-p|\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none]
22 [\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
24 lvchange allows you to change the attributes of a logical volume
25 including making them known to the kernel ready for use.
27 See \fBlvm\fP for common options.
29 .I \-a, \-\-available y|n|ey|en|ly|ln
30 Controls the availability of the logical volumes for use.
31 Communicates with the kernel device-mapper driver via
32 libdevmapper to activate (-ay) or deactivate (-an) the
35 If clustered locking is enabled, -aey will activate exclusively
36 on one node and -aly will activate only on the local node.
37 To deactivate only on the local node use -aln.
38 Logical volumes with single-host snapshots are always activated
39 exclusively because they can only be used on one node at once.
41 .I \-C, \-\-contiguous y|n
42 Tries to set or reset the contiguous allocation policy for
43 logical volumes. It's only possible to change a non-contiguous
44 logical volume's allocation policy to contiguous, if all of the
45 allocated physical extents are already contiguous.
48 Forces the complete resynchronization of a mirror. In normal
49 circumstances you should not need this option because synchronization
50 happens automatically. Data is read from the primary mirror device
51 and copied to the others, so this can take a considerable amount of
52 time - and during this time you are without a complete redundant copy
59 Controls whether or not a mirrored logical volume is monitored by
60 dmeventd, if it is installed.
61 If a device used by a monitored mirror reports an I/O error,
62 the failure is handled according to
63 \fBmirror_image_fault_policy\fP and \fBmirror_log_fault_policy\fP
64 set in \fBlvm.conf\fP.
66 .I \-\-ignoremonitoring
67 Make no attempt to interact with dmeventd unless \-\-monitor
69 Do not use this if dmeventd is already monitoring a device.
71 .I \-M, \-\-persistent y|n
72 Set to y to make the minor number specified persistent.
74 .I \-p, \-\-permission r|rw
75 Change access permission to read-only or read/write.
77 .I \-r, \-\-readahead ReadAheadSectors|auto|none
78 Set read ahead sector count of this logical volume.
79 For volume groups with metadata in lvm1 format, this must
80 be a value between 2 and 120 sectors.
81 The default value is "auto" which allows the kernel to choose
82 a suitable value automatically.
83 "None" is equivalent to specifying zero.
86 If the logical volume is active, reload its metadata.
87 This is not necessary in normal operation, but may be useful
88 if something has gone wrong or if you're doing clustering
89 manually without a clustered lock manager.
91 "lvchange -pr vg00/lvol1" changes the permission on
92 volume lvol1 in volume group vg00 to be read-only.