]>
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 AK |
9 | [\-C/\-\-contiguous y/n] [\-d/\-\-debug] [\-\-deltag Tag] |
10 | [\-h/\-?/\-\-help] | |
5a52dca9 | 11 | [\-\-ignorelockingfailure] |
48432c88 | 12 | [\-\-monitor {y|n}] |
5a52dca9 AK |
13 | [\-M/\-\-persistent y/n] [\-\-minor minor] |
14 | [\-P/\-\-partial y/n] | |
922ce479 | 15 | [\-p/\-\-permission r/w] [\-r/\-\-readahead ReadAheadSectors] |
d6cf4325 | 16 | [\-\-refresh] |
5a52dca9 | 17 | [\-t/\-\-test] |
922ce479 AK |
18 | [\-v/\-\-verbose] LogicalVolumePath [LogicalVolumePath...] |
19 | .SH DESCRIPTION | |
d6cf4325 AK |
20 | lvchange allows you to change the attributes of a logical volume |
21 | including making them known to the kernel ready for use. | |
922ce479 AK |
22 | .SH OPTIONS |
23 | See \fBlvm\fP for common options. | |
24 | .TP | |
d6cf4325 | 25 | .I \-a, \-\-available y/n/ey/en/ly/ln |
922ce479 | 26 | Controls the availability of the logical volumes for use. |
d6cf4325 AK |
27 | Communicates with the kernel device-mapper driver via |
28 | libdevmapper to activate (-ay) or deactivate (-an) the | |
29 | logical volumes. | |
30 | .IP | |
31 | If clustered locking is enabled, -ae will activate exclusively | |
32 | on one node and -aly will activate only on the local node. | |
33 | To deactivate only on the local node use -aln. | |
34 | Logical volumes with single-host snapshots are always activated | |
35 | exclusively because they can only be used on one node at once. | |
922ce479 AK |
36 | .TP |
37 | .I \-C, \-\-contiguous y/n | |
5a52dca9 | 38 | Tries to set or reset the contiguous allocation policy for |
922ce479 AK |
39 | logical volumes. It's only possible to change a non-contiguous |
40 | logical volume's allocation policy to contiguous, if all of the | |
41 | allocated physical extents are already contiguous. | |
42 | .TP | |
5a52dca9 AK |
43 | .I \-\-minor minor |
44 | Set the minor number. | |
45 | .TP | |
48432c88 AK |
46 | .I \-\-monitor y/n |
47 | Controls whether the mirrored logical volume is monitored by | |
48 | dmeventd. If monitored (the default), a failed mirror device | |
49 | will automatically be removed from the volume group. | |
50 | .TP | |
5a52dca9 AK |
51 | .I \-M, \-\-persistent y/n |
52 | Set to y to make the minor number specified persistent. | |
53 | .TP | |
922ce479 AK |
54 | .I \-p, \-\-permission r/w |
55 | Change access permission to read-only or read/write. | |
56 | .TP | |
57 | .I \-r, \-\-readahead ReadAheadSectors | |
58 | Change read ahead sector count per logical between 2 and 120. | |
d6cf4325 AK |
59 | For compatability with LVM1 only. Ignored by LVM2. |
60 | .TP | |
61 | .I \-\-refresh | |
62 | If the logical volume is active, reload its metadata. | |
63 | This is not necessary in normal operation, but may be useful | |
64 | if something has gone wrong or if you're doing clustering | |
65 | manually without a clustered lock manager. | |
922ce479 | 66 | .SH Examples |
d6cf4325 | 67 | "lvchange -pr vg00/lvol1" changes the permission on |
075ab744 PC |
68 | volume lvol1 in volume group vg00 to be read-only. |
69 | ||
922ce479 AK |
70 | .SH SEE ALSO |
71 | .BR lvm (8), | |
d6cf4325 AK |
72 | .BR lvcreate (8), |
73 | .BR vgchange (8) |