]>
Commit | Line | Data |
---|---|---|
5951ef33 | 1 | .TH LVCHANGE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*- |
922ce479 AK |
2 | .SH NAME |
3 | lvchange \- change attributes of a logical volume | |
4 | .SH SYNOPSIS | |
5 | .B lvchange | |
c63b155d ZK |
6 | .RB [ \-\-addtag |
7 | .IR Tag ] | |
8 | .RB [ \-A | \-\-autobackup | |
9 | .RI { y | n }] | |
2729720f | 10 | .RB [ \-a | \-\-activate |
a54285a7 | 11 | .RI [ a | e | l ]{ y | n }] |
c63b155d ZK |
12 | .RB [ \-\-alloc |
13 | .IR AllocationPolicy ] | |
14 | .RB [ \-C | \-\-contiguous | |
15 | .RI { y | n }] | |
16 | .RB [ \-d | \-\-debug ] | |
17 | .RB [ \-\-deltag | |
18 | .IR Tag ] | |
19 | .RB [ \-\-resync ] | |
20 | .RB [ \-h | \-? | \-\-help ] | |
21 | .RB [ \-\-ignorelockingfailure ] | |
22 | .RB [ \-\-ignoremonitoring ] | |
23 | .RB [ \-\-monitor | |
24 | .RI { y | n }] | |
25 | .RB [ \-\-poll | |
26 | .RI { y | n }] | |
27 | .RB [ \-\-sysinit ] | |
28 | .RB [ \-\-noudevsync ] | |
29 | .RB [ \-M | \-\-persistent | |
30 | .RI { y | n }] | |
31 | .RB [ \-\-minor | |
32 | .IR minor ] | |
33 | .RB [ \-P | \-\-partial ] | |
34 | .RB [ \-p | \-\-permission | |
35 | .RI { r | rw }] | |
36 | .RB [ \-r | \-\-readahead | |
37 | .RI { ReadAheadSectors | auto | none }] | |
38 | .RB [ \-\-refresh ] | |
39 | .RB [ \-t | \-\-test ] | |
40 | .RB [ \-v | \-\-verbose] | |
41 | .I LogicalVolumePath | |
42 | .RI [ LogicalVolumePath ...] | |
922ce479 | 43 | .SH DESCRIPTION |
d6cf4325 AK |
44 | lvchange allows you to change the attributes of a logical volume |
45 | including making them known to the kernel ready for use. | |
922ce479 | 46 | .SH OPTIONS |
c63b155d | 47 | See \fBlvm\fP(8) for common options. |
922ce479 | 48 | .TP |
a54285a7 | 49 | .BR \-a ", " \-\-activate " [" \fIa | \fIe | \fIl ]{ \fIy | \fIn } |
922ce479 | 50 | Controls the availability of the logical volumes for use. |
d6cf4325 | 51 | Communicates with the kernel device-mapper driver via |
c63b155d | 52 | libdevmapper to activate (\-ay) or deactivate (\-an) the |
a54285a7 PR |
53 | logical volumes. If autoactivation option is used (\-aay), |
54 | the logical volume is activated only if it matches an item in | |
55 | the activation/auto_activation_volume_list set in lvm.conf. | |
56 | Autoactivation is not yet supported for logical volumes that | |
57 | are part of partial or clustered volume groups. | |
d6cf4325 | 58 | .IP |
b2d6cb06 | 59 | If clustered locking is enabled, -aey will activate exclusively |
d6cf4325 AK |
60 | on one node and -aly will activate only on the local node. |
61 | To deactivate only on the local node use -aln. | |
c63b155d | 62 | Logical volumes with single-host snapshots are always activated |
d6cf4325 | 63 | exclusively because they can only be used on one node at once. |
922ce479 | 64 | .TP |
c63b155d | 65 | .BR \-C ", " \-\-contiguous " {" \fIy | \fIn } |
5a52dca9 | 66 | Tries to set or reset the contiguous allocation policy for |
922ce479 AK |
67 | logical volumes. It's only possible to change a non-contiguous |
68 | logical volume's allocation policy to contiguous, if all of the | |
69 | allocated physical extents are already contiguous. | |
70 | .TP | |
c63b155d | 71 | .B \-\-resync |
b23f88bf AK |
72 | Forces the complete resynchronization of a mirror. In normal |
73 | circumstances you should not need this option because synchronization | |
74 | happens automatically. Data is read from the primary mirror device | |
75 | and copied to the others, so this can take a considerable amount of | |
76 | time - and during this time you are without a complete redundant copy | |
77 | of your data. | |
04e023be | 78 | .TP |
c63b155d | 79 | .B \-\-minor \fIminor |
5a52dca9 AK |
80 | Set the minor number. |
81 | .TP | |
c63b155d | 82 | .BR \-\-monitor " {" \fIy | \fIn } |
a6bc975a | 83 | Start or stop monitoring a mirrored or snapshot logical volume with |
9380176b AK |
84 | dmeventd, if it is installed. |
85 | If a device used by a monitored mirror reports an I/O error, | |
c63b155d | 86 | the failure is handled according to |
9380176b AK |
87 | \fBmirror_image_fault_policy\fP and \fBmirror_log_fault_policy\fP |
88 | set in \fBlvm.conf\fP. | |
48432c88 | 89 | .TP |
c63b155d | 90 | .BR \-\-poll " {" \fIy | \fIn } |
f407c8af MS |
91 | Without polling a logical volume's backgrounded transformation process |
92 | will never complete. If there is an incomplete pvmove or lvconvert (for | |
c63b155d | 93 | example, on rebooting after a crash), use \fB\-\-poll y\fP to restart the |
f407c8af | 94 | process from its last checkpoint. However, it may not be appropriate to |
c63b155d ZK |
95 | immediately poll a logical volume when it is activated, use |
96 | \fB\-\-poll n\fP to defer and then \fB\-\-poll y\fP to restart the process. | |
7a8fa6aa | 97 | .TP |
c63b155d ZK |
98 | .B \-\-sysinit |
99 | Indicates that \fBlvchange\fP(8) is being invoked from early system | |
100 | initialisation scripts (e.g. rc.sysinit or an initrd), | |
101 | before writeable filesystems are available. As such, | |
102 | some functionality needs to be disabled and this option | |
d50c6d4b | 103 | acts as a shortcut which selects an appropriate set of options. Currently |
c63b155d ZK |
104 | this is equivalent to using \fB\-\-ignorelockingfailure\fP, |
105 | \fB\-\-ignoremonitoring\fP, \fB\-\-poll n\fP and setting | |
106 | \fBLVM_SUPPRESS_LOCKING_FAILURE_MESSAGES\fP | |
d50c6d4b PR |
107 | environment variable. |
108 | .TP | |
c63b155d | 109 | .B \-\-noudevsync |
b42929dc AK |
110 | Disable udev synchronisation. The |
111 | process will not wait for notification from udev. | |
112 | It will continue irrespective of any possible udev processing | |
113 | in the background. You should only use this if udev is not running | |
114 | or has rules that ignore the devices LVM2 creates. | |
115 | .TP | |
c63b155d ZK |
116 | .B \-\-ignoremonitoring |
117 | Make no attempt to interact with dmeventd unless \fB\-\-monitor\fP | |
53c774b9 AK |
118 | is specified. |
119 | Do not use this if dmeventd is already monitoring a device. | |
120 | .TP | |
c63b155d | 121 | .BR \-M ", " \-\-persistent " {" \fIy | \fIn } |
5a52dca9 AK |
122 | Set to y to make the minor number specified persistent. |
123 | .TP | |
c63b155d | 124 | .BR \-p ", " \-\-permission " {" \fIr | \fIrw } |
922ce479 AK |
125 | Change access permission to read-only or read/write. |
126 | .TP | |
c63b155d | 127 | .BR \-r ", " \-\-readahead " {" \fIReadAheadSectors | \fIauto | \fInone } |
b4068515 AK |
128 | Set read ahead sector count of this logical volume. |
129 | For volume groups with metadata in lvm1 format, this must | |
b680c5c6 | 130 | be a value between 2 and 120 sectors. |
b4068515 AK |
131 | The default value is "auto" which allows the kernel to choose |
132 | a suitable value automatically. | |
133 | "None" is equivalent to specifying zero. | |
d6cf4325 | 134 | .TP |
c63b155d | 135 | .B \-\-refresh |
d6cf4325 AK |
136 | If the logical volume is active, reload its metadata. |
137 | This is not necessary in normal operation, but may be useful | |
c63b155d | 138 | if something has gone wrong or if you're doing clustering |
d6cf4325 | 139 | manually without a clustered lock manager. |
922ce479 | 140 | .SH Examples |
c63b155d ZK |
141 | Changes the permission on volume lvol1 in volume group vg00 to be read-only: |
142 | .sp | |
143 | .B lvchange -pr vg00/lvol1 | |
922ce479 | 144 | .SH SEE ALSO |
c63b155d | 145 | .BR lvm (8), |
d6cf4325 AK |
146 | .BR lvcreate (8), |
147 | .BR vgchange (8) |