]>
Commit | Line | Data |
---|---|---|
922ce479 AK |
1 | .TH LVCHANGE 8 "LVM TOOLS" "Sistina Software UK" \" -*- nroff -*- |
2 | .SH NAME | |
3 | lvchange \- 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 | 9 | [\-C/\-\-contiguous y/n] [\-d/\-\-debug] [\-\-deltag Tag] |
e51d50a1 | 10 | [\-\-resync] |
12da72ad | 11 | [\-h/\-?/\-\-help] |
5a52dca9 | 12 | [\-\-ignorelockingfailure] |
53c774b9 | 13 | [\-\-ignoremonitoring] |
48432c88 | 14 | [\-\-monitor {y|n}] |
5a52dca9 | 15 | [\-M/\-\-persistent y/n] [\-\-minor minor] |
d8ff86fd | 16 | [\-P/\-\-partial] |
b4068515 | 17 | [\-p/\-\-permission r/w] [\-r/\-\-readahead ReadAheadSectors|auto|none] |
d6cf4325 | 18 | [\-\-refresh] |
5a52dca9 | 19 | [\-t/\-\-test] |
922ce479 AK |
20 | [\-v/\-\-verbose] LogicalVolumePath [LogicalVolumePath...] |
21 | .SH DESCRIPTION | |
d6cf4325 AK |
22 | lvchange allows you to change the attributes of a logical volume |
23 | including making them known to the kernel ready for use. | |
922ce479 AK |
24 | .SH OPTIONS |
25 | See \fBlvm\fP for common options. | |
26 | .TP | |
d6cf4325 | 27 | .I \-a, \-\-available y/n/ey/en/ly/ln |
922ce479 | 28 | Controls the availability of the logical volumes for use. |
d6cf4325 AK |
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, -ae 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. | |
922ce479 AK |
38 | .TP |
39 | .I \-C, \-\-contiguous y/n | |
5a52dca9 | 40 | Tries to set or reset the contiguous allocation policy for |
922ce479 AK |
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 | |
e51d50a1 | 45 | .I \-\-resync |
b23f88bf AK |
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. | |
04e023be | 52 | .TP |
5a52dca9 AK |
53 | .I \-\-minor minor |
54 | Set the minor number. | |
55 | .TP | |
48432c88 | 56 | .I \-\-monitor y/n |
9380176b AK |
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. | |
48432c88 | 63 | .TP |
53c774b9 AK |
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 | |
5a52dca9 AK |
69 | .I \-M, \-\-persistent y/n |
70 | Set to y to make the minor number specified persistent. | |
71 | .TP | |
922ce479 AK |
72 | .I \-p, \-\-permission r/w |
73 | Change access permission to read-only or read/write. | |
74 | .TP | |
b4068515 AK |
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. | |
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 | N.B. This setting is currently disregarded and "auto" is always used. | |
d6cf4325 AK |
83 | .TP |
84 | .I \-\-refresh | |
85 | If the logical volume is active, reload its metadata. | |
86 | This is not necessary in normal operation, but may be useful | |
87 | if something has gone wrong or if you're doing clustering | |
88 | manually without a clustered lock manager. | |
922ce479 | 89 | .SH Examples |
d6cf4325 | 90 | "lvchange -pr vg00/lvol1" changes the permission on |
075ab744 PC |
91 | volume lvol1 in volume group vg00 to be read-only. |
92 | ||
922ce479 AK |
93 | .SH SEE ALSO |
94 | .BR lvm (8), | |
d6cf4325 AK |
95 | .BR lvcreate (8), |
96 | .BR vgchange (8) |