]>
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}] |
b42929dc | 15 | [\-\-noudevsync] |
82dcb097 DW |
16 | [\-M|\-\-persistent y|n] [\-\-minor minor] |
17 | [\-P|\-\-partial] | |
18 | [\-p|\-\-permission r|rw] [\-r/\-\-readahead ReadAheadSectors|auto|none] | |
d6cf4325 | 19 | [\-\-refresh] |
82dcb097 DW |
20 | [\-t|\-\-test] |
21 | [\-v|\-\-verbose] LogicalVolumePath [LogicalVolumePath...] | |
922ce479 | 22 | .SH DESCRIPTION |
d6cf4325 AK |
23 | lvchange allows you to change the attributes of a logical volume |
24 | including making them known to the kernel ready for use. | |
922ce479 AK |
25 | .SH OPTIONS |
26 | See \fBlvm\fP for common options. | |
27 | .TP | |
82dcb097 | 28 | .I \-a, \-\-available y|n|ey|en|ly|ln |
922ce479 | 29 | Controls the availability of the logical volumes for use. |
d6cf4325 AK |
30 | Communicates with the kernel device-mapper driver via |
31 | libdevmapper to activate (-ay) or deactivate (-an) the | |
32 | logical volumes. | |
33 | .IP | |
b2d6cb06 | 34 | If clustered locking is enabled, -aey will activate exclusively |
d6cf4325 AK |
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. | |
922ce479 | 39 | .TP |
82dcb097 | 40 | .I \-C, \-\-contiguous y|n |
5a52dca9 | 41 | Tries to set or reset the contiguous allocation policy for |
922ce479 AK |
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 | |
e51d50a1 | 46 | .I \-\-resync |
b23f88bf AK |
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. | |
04e023be | 53 | .TP |
5a52dca9 AK |
54 | .I \-\-minor minor |
55 | Set the minor number. | |
56 | .TP | |
82dcb097 | 57 | .I \-\-monitor y|n |
9380176b AK |
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. | |
48432c88 | 64 | .TP |
b42929dc AK |
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 | |
53c774b9 AK |
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 | |
82dcb097 | 77 | .I \-M, \-\-persistent y|n |
5a52dca9 AK |
78 | Set to y to make the minor number specified persistent. |
79 | .TP | |
3a91213c | 80 | .I \-p, \-\-permission r|rw |
922ce479 AK |
81 | Change access permission to read-only or read/write. |
82 | .TP | |
b4068515 AK |
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 | |
b680c5c6 | 86 | be a value between 2 and 120 sectors. |
b4068515 AK |
87 | The default value is "auto" which allows the kernel to choose |
88 | a suitable value automatically. | |
89 | "None" is equivalent to specifying zero. | |
d6cf4325 AK |
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. | |
922ce479 | 96 | .SH Examples |
d6cf4325 | 97 | "lvchange -pr vg00/lvol1" changes the permission on |
075ab744 PC |
98 | volume lvol1 in volume group vg00 to be read-only. |
99 | ||
922ce479 AK |
100 | .SH SEE ALSO |
101 | .BR lvm (8), | |
d6cf4325 AK |
102 | .BR lvcreate (8), |
103 | .BR vgchange (8) |