]> sourceware.org Git - lvm2.git/blame - man/lvchange.8.in
Add dm_list_splice() to join two lists.
[lvm2.git] / man / lvchange.8.in
CommitLineData
5951ef33 1.TH LVCHANGE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
922ce479
AK
2.SH NAME
3lvchange \- 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
24lvchange allows you to change the attributes of a logical volume
25including making them known to the kernel ready for use.
922ce479
AK
26.SH OPTIONS
27See \fBlvm\fP for common options.
28.TP
82dcb097 29.I \-a, \-\-available y|n|ey|en|ly|ln
922ce479 30Controls the availability of the logical volumes for use.
d6cf4325
AK
31Communicates with the kernel device-mapper driver via
32libdevmapper to activate (-ay) or deactivate (-an) the
33logical volumes.
34.IP
b2d6cb06 35If clustered locking is enabled, -aey will activate exclusively
d6cf4325
AK
36on one node and -aly will activate only on the local node.
37To deactivate only on the local node use -aln.
38Logical volumes with single-host snapshots are always activated
39exclusively because they can only be used on one node at once.
922ce479 40.TP
82dcb097 41.I \-C, \-\-contiguous y|n
5a52dca9 42Tries to set or reset the contiguous allocation policy for
922ce479
AK
43logical volumes. It's only possible to change a non-contiguous
44logical volume's allocation policy to contiguous, if all of the
45allocated physical extents are already contiguous.
46.TP
e51d50a1 47.I \-\-resync
b23f88bf
AK
48Forces the complete resynchronization of a mirror. In normal
49circumstances you should not need this option because synchronization
50happens automatically. Data is read from the primary mirror device
51and copied to the others, so this can take a considerable amount of
52time - and during this time you are without a complete redundant copy
53of your data.
04e023be 54.TP
5a52dca9
AK
55.I \-\-minor minor
56Set the minor number.
57.TP
82dcb097 58.I \-\-monitor y|n
a6bc975a 59Start or stop monitoring a mirrored or snapshot logical volume with
9380176b
AK
60dmeventd, if it is installed.
61If a device used by a monitored mirror reports an I/O error,
62the failure is handled according to
63\fBmirror_image_fault_policy\fP and \fBmirror_log_fault_policy\fP
64set in \fBlvm.conf\fP.
48432c88 65.TP
7a8fa6aa 66.I \-\-poll y|n
f407c8af
MS
67Without polling a logical volume's backgrounded transformation process
68will never complete. If there is an incomplete pvmove or lvconvert (for
69example, on rebooting after a crash), use \fB--poll y\fP to restart the
70process from its last checkpoint. However, it may not be appropriate to
71immediately poll a logical volume when it is activated, use \fB--poll
72n\fP to defer and then \fB--poll y\fP to restart the process.
7a8fa6aa 73.TP
b42929dc
AK
74.I \-\-noudevsync
75Disable udev synchronisation. The
76process will not wait for notification from udev.
77It will continue irrespective of any possible udev processing
78in the background. You should only use this if udev is not running
79or has rules that ignore the devices LVM2 creates.
80.TP
53c774b9
AK
81.I \-\-ignoremonitoring
82Make no attempt to interact with dmeventd unless \-\-monitor
83is specified.
84Do not use this if dmeventd is already monitoring a device.
85.TP
82dcb097 86.I \-M, \-\-persistent y|n
5a52dca9
AK
87Set to y to make the minor number specified persistent.
88.TP
3a91213c 89.I \-p, \-\-permission r|rw
922ce479
AK
90Change access permission to read-only or read/write.
91.TP
b4068515
AK
92.I \-r, \-\-readahead ReadAheadSectors|auto|none
93Set read ahead sector count of this logical volume.
94For volume groups with metadata in lvm1 format, this must
b680c5c6 95be a value between 2 and 120 sectors.
b4068515
AK
96The default value is "auto" which allows the kernel to choose
97a suitable value automatically.
98"None" is equivalent to specifying zero.
d6cf4325
AK
99.TP
100.I \-\-refresh
101If the logical volume is active, reload its metadata.
102This is not necessary in normal operation, but may be useful
103if something has gone wrong or if you're doing clustering
104manually without a clustered lock manager.
922ce479 105.SH Examples
d6cf4325 106"lvchange -pr vg00/lvol1" changes the permission on
075ab744
PC
107volume 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)
This page took 0.067333 seconds and 5 git commands to generate.