Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / contrib / lvm2 / dist / 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 [\-\-noudevsync]
16 [\-M|\-\-persistent y|n] [\-\-minor minor]
17 [\-P|\-\-partial]
18 [\-p|\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none]
19 [\-\-refresh]
20 [\-t|\-\-test]
21 [\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...]
22 .SH DESCRIPTION
23 lvchange allows you to change the attributes of a logical volume
24 including making them known to the kernel ready for use.
25 .SH OPTIONS
26 See \fBlvm\fP for common options.
27 .TP
28 .I \-a, \-\-available y|n|ey|en|ly|ln
29 Controls the availability of the logical volumes for use.
30 Communicates with the kernel device-mapper driver via
31 libdevmapper to activate (-ay) or deactivate (-an) the 
32 logical volumes.
33 .IP
34 If clustered locking is enabled, -aey will activate exclusively
35 on one node and -aly will activate only on the local node.
36 To deactivate only on the local node use -aln.
37 Logical volumes with single-host snapshots are always activated 
38 exclusively because they can only be used on one node at once.
39 .TP
40 .I \-C, \-\-contiguous y|n
41 Tries to set or reset the contiguous allocation policy for
42 logical volumes. It's only possible to change a non-contiguous
43 logical volume's allocation policy to contiguous, if all of the
44 allocated physical extents are already contiguous.
45 .TP
46 .I \-\-resync
47 Forces the complete resynchronization of a mirror.  In normal
48 circumstances you should not need this option because synchronization
49 happens automatically.  Data is read from the primary mirror device
50 and copied to the others, so this can take a considerable amount of
51 time - and during this time you are without a complete redundant copy
52 of your data.
53 .TP
54 .I \-\-minor minor
55 Set the minor number.
56 .TP
57 .I \-\-monitor y|n
58 Controls whether or not a mirrored logical volume is monitored by
59 dmeventd, if it is installed.
60 If a device used by a monitored mirror reports an I/O error,
61 the failure is handled according to 
62 \fBmirror_image_fault_policy\fP and \fBmirror_log_fault_policy\fP
63 set in \fBlvm.conf\fP.
64 .TP
65 .I \-\-noudevsync
66 Disable udev synchronisation. The
67 process will not wait for notification from udev.
68 It will continue irrespective of any possible udev processing
69 in the background.  You should only use this if udev is not running
70 or has rules that ignore the devices LVM2 creates.
71 .TP
72 .I \-\-ignoremonitoring
73 Make no attempt to interact with dmeventd unless \-\-monitor
74 is specified.
75 Do not use this if dmeventd is already monitoring a device.
76 .TP
77 .I \-M, \-\-persistent y|n
78 Set to y to make the minor number specified persistent.
79 .TP
80 .I \-p, \-\-permission r|rw
81 Change access permission to read-only or read/write.
82 .TP
83 .I \-r, \-\-readahead ReadAheadSectors|auto|none
84 Set read ahead sector count of this logical volume.
85 For volume groups with metadata in lvm1 format, this must
86 be a value between 2 and 120 sectors.
87 The default value is "auto" which allows the kernel to choose
88 a suitable value automatically.
89 "None" is equivalent to specifying zero.
90 .TP
91 .I \-\-refresh
92 If the logical volume is active, reload its metadata.
93 This is not necessary in normal operation, but may be useful
94 if something has gone wrong or if you're doing clustering 
95 manually without a clustered lock manager.
96 .SH Examples
97 "lvchange -pr vg00/lvol1" changes the permission on 
98 volume lvol1 in volume group vg00 to be read-only.
99
100 .SH SEE ALSO
101 .BR lvm (8), 
102 .BR lvcreate (8),
103 .BR vgchange (8)