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