Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / contrib / lvm2 / dist / man / vgchange.8.in
1 .TH VGCHANGE 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2 .SH NAME
3 vgchange \- change attributes of a volume group
4 .SH SYNOPSIS
5 .B vgchange
6 .RB [ \-\-addtag
7 .IR Tag ]
8 .RB [ \-\-alloc
9 .IR AllocationPolicy ]
10 .RB [ \-A | \-\-autobackup " {" y | n }]
11 .RB [ \-a | \-\-available " [e|l] {" y | n }]
12 .RB [ \-\-monitor " {" y | n }]
13 .RB [ \-c | \-\-clustered " {" y | n }]
14 .RB [ \-u | \-\-uuid ]
15 .RB [ \-d | \-\-debug]
16 .RB [ \-\-deltag
17 .IR Tag ]
18 .RB [ \-h | \-\-help]
19 .RB [ \-\-ignorelockingfailure]
20 .RB [ \-\-ignoremonitoring]
21 .RB [ \-\-noudevsync ]
22 .RB [ \-l | \-\-logicalvolume
23 .IR MaxLogicalVolumes ]
24 .RB [ -p | \-\-maxphysicalvolumes
25 .IR MaxPhysicalVolumes ]
26 .RB [ \-P | \-\-partial]
27 .RB [ \-s | \-\-physicalextentsize
28 .IR PhysicalExtentSize [ \fBbBsSkKmMgGtTpPeE\fR ]]
29 .RB [ \-\-refresh]
30 .RB [ -t | \-\-test]
31 .RB [ \-v | \-\-verbose]
32 .RB [ \-\-version ]
33 .RB [ \-x | \-\-resizeable " {" y | n }]
34 .RI [ VolumeGroupName ...]
35 .SH DESCRIPTION
36 .B vgchange
37 allows you to change the attributes of one or more volume groups.
38 Its main purpose is to activate and deactivate
39 .IR VolumeGroupName ,
40 or all volume groups if none is specified.  Only active volume groups
41 are subject to changes and allow access to their logical volumes.
42 [Not yet implemented: During volume group activation, if
43 .B vgchange
44 recognizes snapshot logical volumes which were dropped because they ran
45 out of space, it displays a message informing the administrator that such
46 snapshots should be removed (see
47 .BR lvremove (8)).
48 ]
49 .SH OPTIONS
50 See \fBlvm\fP for common options.
51 .TP
52 .BR \-A ", " \-\-autobackup " " { y | n }
53 Controls automatic backup of metadata after the change.  See
54 .B vgcfgbackup (8).
55 Default is yes.
56 .TP
57 .BR \-a ", " \-\-available " " [e|l] { y | n }
58 Controls the availability of the logical volumes in the volume 
59 group for input/output.
60 In other words, makes the logical volumes known/unknown to the kernel.
61 .IP
62 If clustered locking is enabled, add 'e' to activate/deactivate
63 exclusively on one node or 'l' to activate/deactivate only
64 on the local node.  
65 Logical volumes with single-host snapshots are always activated
66 exclusively because they can only be used on one node at once.
67 .TP
68 .BR \-c ", " \-\-clustered " " { y | n }
69 If clustered locking is enabled, this indicates whether this
70 Volume Group is shared with other nodes in the cluster or whether
71 it contains only local disks that are not visible on the other nodes.
72 If the cluster infrastructure is unavailable on a particular node at a
73 particular time, you may still be able to use Volume Groups that
74 are not marked as clustered.
75 .TP
76 .BR \-u ", " \-\-uuid
77 Generate new random UUID for specified Volume Groups.
78 .TP
79 .BR \-\-monitor " " { y | n }
80 Controls whether or not a mirrored logical volume is monitored by
81 dmeventd, if it is installed.
82 If a device used by a monitored mirror reports an I/O error,
83 the failure is handled according to 
84 .BR mirror_image_fault_policy
85 and 
86 .BR mirror_log_fault_policy
87 set in 
88 .BR lvm.conf (5).
89 .TP
90 .BR \-\-noudevsync
91 Disable udev synchronisation. The
92 process will not wait for notification from udev.
93 It will continue irrespective of any possible udev processing
94 in the background.  You should only use this if udev is not running
95 or has rules that ignore the devices LVM2 creates.
96 .TP
97 .BR \-\-ignoremonitoring
98 Make no attempt to interact with dmeventd unless 
99 .BR \-\-monitor
100 is specified.
101 Do not use this if dmeventd is already monitoring a device.
102 .TP
103 .BR \-l ", " \-\-logicalvolume " " \fIMaxLogicalVolumes\fR
104 Changes the maximum logical volume number of an existing inactive
105 volume group.
106 .TP
107 .BR \-p ", " \-\-maxphysicalvolumes " " \fIMaxPhysicalVolumes\fR
108 Changes the maximum number of physical volumes that can belong
109 to this volume group.
110 For volume groups with metadata in lvm1 format, the limit is 255.
111 If the metadata uses lvm2 format, the value 0
112 removes this restriction: there is then no limit.
113 If you have a large number of physical volumes in
114 a volume group with metadata in lvm2 format,
115 for tool performance reasons, you should consider
116 some use of \fB--pvmetadatacopies 0\fP
117 as described in \fBpvcreate(8)\fP.
118 .TP
119 .BR \-s ", " \-\-physicalextentsize " " \fIPhysicalExtentSize\fR[\fBbBsSkKmMgGtTpPeE\fR]
120 Changes the physical extent size on physical volumes of this volume group.
121 A size suffix (k for kilobytes up to t for terabytes) is optional, megabytes
122 is the default if no suffix is present.
123 The default is 4 MB and it must be at least 1 KB and a power of 2.
124  
125 Before increasing the physical extent size, you might need to use lvresize,
126 pvresize and/or pvmove so that everything fits.  For example, every
127 contiguous range of extents used in a logical volume must start and 
128 end on an extent boundary.
129  
130 If the volume group metadata uses lvm1 format, extents can vary in size from
131 8KB to 16GB and there is a limit of 65534 extents in each logical volume.  The
132 default of 4 MB leads to a maximum logical volume size of around 256GB.
133  
134 If the volume group metadata uses lvm2 format those restrictions do not apply,
135 but having a large number of extents will slow down the tools but have no
136 impact on I/O performance to the logical volume.  The smallest PE is 1KB.
137  
138 The 2.4 kernel has a limitation of 2TB per block device.
139 .TP
140 .BR \-\-refresh
141 If any logical volume in the volume group is active, reload its metadata.
142 This is not necessary in normal operation, but may be useful
143 if something has gone wrong or if you're doing clustering
144 manually without a clustered lock manager.
145 .TP
146 .BR \-x ", " \-\-resizeable " " { y | n }
147 Enables or disables the extension/reduction of this volume group
148 with/by physical volumes.
149 .SH EXAMPLES
150 To activate all known volume groups in the system:
151 .nf
152
153 \       vgchange -a y
154
155 .fi
156 To change the maximum number of logical volumes of inactive volume group
157 .B vg00
158 to 128.
159 .nf
160
161 \       vgchange -l 128 /dev/vg00
162
163 .fi
164 .SH SEE ALSO
165 .BR lvchange (8),
166 .BR lvm (8),
167 .BR vgcreate (8)