]>
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 | |
12da72ad | 6 | [\-\-addtag Tag] |
82dcb097 | 7 | [\-A|\-\-autobackup y|n] [\-a|\-\-available y|n|ey|en|ly|ln] |
63bea03e | 8 | [\-\-alloc AllocationPolicy] |
82dcb097 | 9 | [\-C|\-\-contiguous y|n] [\-d|\-\-debug] [\-\-deltag Tag] |
e51d50a1 | 10 | [\-\-resync] |
82dcb097 | 11 | [\-h|\-?|\-\-help] |
5a52dca9 | 12 | [\-\-ignorelockingfailure] |
53c774b9 | 13 | [\-\-ignoremonitoring] |
48432c88 | 14 | [\-\-monitor {y|n}] |
7a8fa6aa | 15 | [\-\-poll {y|n}] |
b42929dc | 16 | [\-\-noudevsync] |
82dcb097 DW |
17 | [\-M|\-\-persistent y|n] [\-\-minor minor] |
18 | [\-P|\-\-partial] | |
19 | [\-p|\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none] | |
d6cf4325 | 20 | [\-\-refresh] |
82dcb097 DW |
21 | [\-t|\-\-test] |
22 | [\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...] | |
922ce479 | 23 | .SH DESCRIPTION |
d6cf4325 AK |
24 | lvchange allows you to change the attributes of a logical volume |
25 | including making them known to the kernel ready for use. | |
922ce479 AK |
26 | .SH OPTIONS |
27 | See \fBlvm\fP for common options. | |
28 | .TP | |
82dcb097 | 29 | .I \-a, \-\-available y|n|ey|en|ly|ln |
922ce479 | 30 | Controls the availability of the logical volumes for use. |
d6cf4325 AK |
31 | Communicates with the kernel device-mapper driver via |
32 | libdevmapper to activate (-ay) or deactivate (-an) the | |
33 | logical volumes. | |
34 | .IP | |
b2d6cb06 | 35 | If clustered locking is enabled, -aey will activate exclusively |
d6cf4325 AK |
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. | |
922ce479 | 40 | .TP |
82dcb097 | 41 | .I \-C, \-\-contiguous y|n |
5a52dca9 | 42 | Tries to set or reset the contiguous allocation policy for |
922ce479 AK |
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. | |
46 | .TP | |
e51d50a1 | 47 | .I \-\-resync |
b23f88bf AK |
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 | |
53 | of your data. | |
04e023be | 54 | .TP |
5a52dca9 AK |
55 | .I \-\-minor minor |
56 | Set the minor number. | |
57 | .TP | |
82dcb097 | 58 | .I \-\-monitor y|n |
a6bc975a | 59 | Start or stop monitoring a mirrored or snapshot logical volume with |
9380176b AK |
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. | |
48432c88 | 65 | .TP |
7a8fa6aa | 66 | .I \-\-poll y|n |
f407c8af MS |
67 | Without polling a logical volume's backgrounded transformation process |
68 | will never complete. If there is an incomplete pvmove or lvconvert (for | |
69 | example, on rebooting after a crash), use \fB--poll y\fP to restart the | |
70 | process from its last checkpoint. However, it may not be appropriate to | |
71 | immediately poll a logical volume when it is activated, use \fB--poll | |
72 | n\fP to defer and then \fB--poll y\fP to restart the process. | |
7a8fa6aa | 73 | .TP |
b42929dc AK |
74 | .I \-\-noudevsync |
75 | Disable udev synchronisation. The | |
76 | process will not wait for notification from udev. | |
77 | It will continue irrespective of any possible udev processing | |
78 | in the background. You should only use this if udev is not running | |
79 | or has rules that ignore the devices LVM2 creates. | |
80 | .TP | |
53c774b9 AK |
81 | .I \-\-ignoremonitoring |
82 | Make no attempt to interact with dmeventd unless \-\-monitor | |
83 | is specified. | |
84 | Do not use this if dmeventd is already monitoring a device. | |
85 | .TP | |
82dcb097 | 86 | .I \-M, \-\-persistent y|n |
5a52dca9 AK |
87 | Set to y to make the minor number specified persistent. |
88 | .TP | |
3a91213c | 89 | .I \-p, \-\-permission r|rw |
922ce479 AK |
90 | Change access permission to read-only or read/write. |
91 | .TP | |
b4068515 AK |
92 | .I \-r, \-\-readahead ReadAheadSectors|auto|none |
93 | Set read ahead sector count of this logical volume. | |
94 | For volume groups with metadata in lvm1 format, this must | |
b680c5c6 | 95 | be a value between 2 and 120 sectors. |
b4068515 AK |
96 | The default value is "auto" which allows the kernel to choose |
97 | a suitable value automatically. | |
98 | "None" is equivalent to specifying zero. | |
d6cf4325 AK |
99 | .TP |
100 | .I \-\-refresh | |
101 | If the logical volume is active, reload its metadata. | |
102 | This is not necessary in normal operation, but may be useful | |
103 | if something has gone wrong or if you're doing clustering | |
104 | manually without a clustered lock manager. | |
922ce479 | 105 | .SH Examples |
d6cf4325 | 106 | "lvchange -pr vg00/lvol1" changes the permission on |
075ab744 PC |
107 | volume lvol1 in volume group vg00 to be read-only. |
108 | ||
922ce479 AK |
109 | .SH SEE ALSO |
110 | .BR lvm (8), | |
d6cf4325 AK |
111 | .BR lvcreate (8), |
112 | .BR vgchange (8) |