1LVCHANGE(8)                 System Manager's Manual                LVCHANGE(8)
2
3
4

NAME

6       lvchange - change attributes of a logical volume
7

SYNOPSIS

9       lvchange   [--addtag   Tag]   [-A/--autobackup   y/n]   [-a/--available
10       y/n/ey/en/ly/ln]  [--alloc  AllocationPolicy]   [-C/--contiguous   y/n]
11       [-d/--debug] [--deltag Tag] [--resync] [-h/-?/--help] [--ignorelocking‐
12       failure]  [--monitor  {y|n}]  [-M/--persistent  y/n]  [--minor   minor]
13       [-P/--partial]  [-p/--permission r/w] [-r/--readahead ReadAheadSectors]
14       [--refresh] [-t/--test] [-v/--verbose]  LogicalVolumePath  [LogicalVol‐
15       umePath...]
16

DESCRIPTION

18       lvchange  allows  you  to  change  the  attributes  of a logical volume
19       including making them known to the kernel ready for use.
20

OPTIONS

22       See lvm for common options.
23
24       -a, --available y/n/ey/en/ly/ln
25              Controls the availability of the logical volumes for use.   Com‐
26              municates  with the kernel device-mapper driver via libdevmapper
27              to activate (-ay) or deactivate (-an) the logical volumes.
28
29              If clustered locking is enabled, -ae will  activate  exclusively
30              on  one  node and -aly will activate only on the local node.  To
31              deactivate only on the local node  use  -aln.   Logical  volumes
32              with  single-host  snapshots  are  always  activated exclusively
33              because they can only be used on one node at once.
34
35       -C, --contiguous y/n
36              Tries to set or reset the contiguous allocation policy for logi‐
37              cal volumes. It's only possible to change a non-contiguous logi‐
38              cal volume's allocation policy to  contiguous,  if  all  of  the
39              allocated physical extents are already contiguous.
40
41       --resync
42              Forces  the  complete  resynchronization of a mirror.  In normal
43              circumstances you should not need this option  because  synchro‐
44              nization  happens  automatically.  Data is read from the primary
45              mirror device and copied to the others, so this can take a  con‐
46              siderable  amount of time - and during this time you are without
47              a complete redundant copy of your data.
48
49       --minor minor
50              Set the minor number.
51
52       --monitor y/n
53              Controls whether or not a mirrored logical volume  is  monitored
54              by  dmeventd,  if  it is installed.  If a device used by a moni‐
55              tored mirror reports  an  I/O  error,  the  failure  is  handled
56              according to mirror_image_fault_policy and mirror_log_fault_pol‐
57              icy set in lvm.conf.
58
59       -M, --persistent y/n
60              Set to y to make the minor number specified persistent.
61
62       -p, --permission r/w
63              Change access permission to read-only or read/write.
64
65       -r, --readahead ReadAheadSectors
66              Change read ahead sector count per logical between  2  and  120.
67              For compatability with LVM1 only. Ignored by LVM2.
68
69       --refresh
70              If  the  logical volume is active, reload its metadata.  This is
71              not necessary in normal operation, but may be  useful  if  some‐
72              thing  has  gone  wrong  or  if you're doing clustering manually
73              without a clustered lock manager.
74

Examples

76       "lvchange -pr vg00/lvol1" changes the permission  on  volume  lvol1  in
77       volume group vg00 to be read-only.
78
79

SEE ALSO

81       lvm(8), lvcreate(8), vgchange(8)
82
83
84
85Sistina Software UK                LVM TOOLS                       LVCHANGE(8)
Impressum