]>
Commit | Line | Data |
---|---|---|
269930c0 | 1 | /* |
6606c3ae | 2 | * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. |
df933c2a | 3 | * Copyright (C) 2004-2014 Red Hat, Inc. All rights reserved. |
269930c0 | 4 | * |
6606c3ae | 5 | * This file is part of LVM2. |
269930c0 | 6 | * |
6606c3ae AK |
7 | * This copyrighted material is made available to anyone wishing to use, |
8 | * modify, copy, or redistribute it subject to the terms and conditions | |
be684599 | 9 | * of the GNU Lesser General Public License v.2.1. |
269930c0 | 10 | * |
be684599 | 11 | * You should have received a copy of the GNU Lesser General Public License |
6606c3ae | 12 | * along with this program; if not, write to the Free Software Foundation, |
fcbef05a | 13 | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
269930c0 AK |
14 | */ |
15 | ||
3f043405 AK |
16 | xx(config, |
17 | "Display and manipulate configuration information", | |
1e2420bc | 18 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
3f043405 | 19 | |
a3a5f58c AK |
20 | xx(devtypes, |
21 | "Display recognised built-in block device types", | |
1e2420bc | 22 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
a3a5f58c | 23 | |
dcc31da5 | 24 | xx(dumpconfig, |
3f043405 | 25 | "Display and manipulate configuration information", |
1e2420bc | 26 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
dcc31da5 | 27 | |
156dd4f1 AK |
28 | xx(formats, |
29 | "List available metadata formats", | |
1e2420bc | 30 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
156dd4f1 | 31 | |
26c43c6c PR |
32 | xx(fullreport, |
33 | "Display full report", | |
d3d6a0e8 | 34 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | ALLOW_HINTS | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
26c43c6c | 35 | |
f87d1a2a ZK |
36 | xx(help, |
37 | "Display help for commands", | |
38 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) | |
39 | ||
89e2aef6 PR |
40 | xx(lastlog, |
41 | "Display last command's log report", | |
1e2420bc | 42 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
89e2aef6 | 43 | |
269930c0 AK |
44 | xx(lvchange, |
45 | "Change the attributes of logical volume(s)", | |
6620dc94 | 46 | PERMITTED_READ_ONLY | ALLOW_HINTS) |
b2988a91 | 47 | |
1a1f3d3e AK |
48 | xx(lvconvert, |
49 | "Change logical volume layout", | |
95e38607 | 50 | GET_VGNAME_FROM_OPTIONS) |
1a1f3d3e | 51 | |
269930c0 AK |
52 | xx(lvcreate, |
53 | "Create a logical volume", | |
83c0b19f | 54 | ALLOW_HINTS | ALTERNATIVE_EXTENTS) |
269930c0 AK |
55 | |
56 | xx(lvdisplay, | |
57 | "Display information about a logical volume", | |
d3d6a0e8 | 58 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | CAN_USE_ONE_SCAN | ALLOW_HINTS | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
269930c0 AK |
59 | |
60 | xx(lvextend, | |
61 | "Add space to a logical volume", | |
83c0b19f | 62 | ALLOW_HINTS | ALTERNATIVE_EXTENTS) |
269930c0 AK |
63 | |
64 | xx(lvmchange, | |
a03f2320 | 65 | "With the device mapper, this is obsolete and does nothing.", |
1e2420bc | 66 | 0) |
269930c0 | 67 | |
3f043405 AK |
68 | xx(lvmconfig, |
69 | "Display and manipulate configuration information", | |
1e2420bc | 70 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
3f043405 | 71 | |
83fe6e72 DT |
72 | xx(lvmdevices, |
73 | "Manage the devices file", | |
d3d6a0e8 | 74 | DEVICE_ID_NOT_FOUND) |
83fe6e72 | 75 | |
269930c0 AK |
76 | xx(lvmdiskscan, |
77 | "List devices that may be used as physical volumes", | |
d3d6a0e8 | 78 | PERMITTED_READ_ONLY | ENABLE_ALL_DEVS | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
269930c0 AK |
79 | |
80 | xx(lvmsadc, | |
81 | "Collect activity data", | |
1e2420bc | 82 | 0) |
269930c0 AK |
83 | |
84 | xx(lvmsar, | |
85 | "Create activity report", | |
1e2420bc | 86 | 0) |
269930c0 | 87 | |
f87d1a2a ZK |
88 | xx(lvpoll, |
89 | "Continue already initiated poll operation on a logical volume", | |
90 | 0) | |
91 | ||
269930c0 AK |
92 | xx(lvreduce, |
93 | "Reduce the size of a logical volume", | |
83c0b19f | 94 | ALLOW_HINTS | ALTERNATIVE_EXTENTS) |
269930c0 AK |
95 | |
96 | xx(lvremove, | |
97 | "Remove logical volume(s) from the system", | |
6620dc94 | 98 | ALL_VGS_IS_DEFAULT | ALLOW_HINTS) /* all VGs only with --select */ |
269930c0 AK |
99 | |
100 | xx(lvrename, | |
101 | "Rename a logical volume", | |
6620dc94 | 102 | ALLOW_HINTS) |
269930c0 | 103 | |
03a8a07d AK |
104 | xx(lvresize, |
105 | "Resize a logical volume", | |
83c0b19f | 106 | ALLOW_HINTS | ALTERNATIVE_EXTENTS) |
03a8a07d | 107 | |
4c64ed4c AK |
108 | xx(lvs, |
109 | "Display information about logical volumes", | |
d3d6a0e8 | 110 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | CAN_USE_ONE_SCAN | ALLOW_HINTS | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
4c64ed4c | 111 | |
269930c0 AK |
112 | xx(lvscan, |
113 | "List all logical volumes in all volume groups", | |
d3d6a0e8 | 114 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
269930c0 AK |
115 | |
116 | xx(pvchange, | |
117 | "Change attributes of physical volume(s)", | |
1e2420bc | 118 | 0) |
269930c0 | 119 | |
cc5a4e1d | 120 | xx(pvck, |
52586b10 | 121 | "Check metadata on physical volumes", |
b4402bd8 | 122 | LOCKD_VG_SH | ALLOW_EXPORTED) |
cc5a4e1d | 123 | |
269930c0 AK |
124 | xx(pvcreate, |
125 | "Initialize physical volume(s) for use by LVM", | |
1e2420bc | 126 | ENABLE_ALL_DEVS) |
269930c0 AK |
127 | |
128 | xx(pvdata, | |
129 | "Display the on-disk metadata for physical volume(s)", | |
1e2420bc | 130 | 0) |
269930c0 AK |
131 | |
132 | xx(pvdisplay, | |
4c64ed4c | 133 | "Display various attributes of physical volume(s)", |
d3d6a0e8 | 134 | PERMITTED_READ_ONLY | ENABLE_ALL_DEVS | ENABLE_DUPLICATE_DEVS | LOCKD_VG_SH | CAN_USE_ONE_SCAN | ALLOW_HINTS | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
269930c0 | 135 | |
b321d2b1 DT |
136 | /* ALL_VGS_IS_DEFAULT is for polldaemon to find pvmoves in-progress using process_each_vg. */ |
137 | ||
269930c0 AK |
138 | xx(pvmove, |
139 | "Move extents from one physical volume to another", | |
1e2420bc | 140 | ALL_VGS_IS_DEFAULT | DISALLOW_TAG_ARGS) |
269930c0 | 141 | |
5a52dca9 AK |
142 | xx(pvremove, |
143 | "Remove LVM label(s) from physical volume(s)", | |
1e2420bc | 144 | ENABLE_ALL_DEVS) |
5a52dca9 | 145 | |
f87d1a2a ZK |
146 | xx(pvresize, |
147 | "Resize physical volume(s)", | |
148 | 0) | |
149 | ||
4c64ed4c AK |
150 | xx(pvs, |
151 | "Display information about physical volumes", | |
d3d6a0e8 | 152 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | ENABLE_ALL_DEVS | ENABLE_DUPLICATE_DEVS | LOCKD_VG_SH | CAN_USE_ONE_SCAN | ALLOW_HINTS | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
4c64ed4c | 153 | |
269930c0 AK |
154 | xx(pvscan, |
155 | "List all physical volumes", | |
d3d6a0e8 | 156 | PERMITTED_READ_ONLY | LOCKD_VG_SH | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
269930c0 | 157 | |
156dd4f1 AK |
158 | xx(segtypes, |
159 | "List available segment types", | |
1e2420bc | 160 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
156dd4f1 | 161 | |
36a6c0df AK |
162 | xx(systemid, |
163 | "Display the system ID, if any, currently set on this host", | |
1e2420bc | 164 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
36a6c0df | 165 | |
83358d4c AK |
166 | xx(tags, |
167 | "List tags defined on this host", | |
1e2420bc | 168 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) |
83358d4c | 169 | |
f87d1a2a ZK |
170 | xx(version, |
171 | "Display software and driver version information", | |
172 | PERMITTED_READ_ONLY | NO_METADATA_PROCESSING) | |
173 | ||
269930c0 AK |
174 | xx(vgcfgbackup, |
175 | "Backup volume group configuration(s)", | |
b4402bd8 | 176 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | ALLOW_EXPORTED) |
269930c0 AK |
177 | |
178 | xx(vgcfgrestore, | |
179 | "Restore volume group configuration", | |
b4402bd8 | 180 | ALLOW_EXPORTED) |
269930c0 AK |
181 | |
182 | xx(vgchange, | |
183 | "Change volume group attributes", | |
6620dc94 | 184 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | ALLOW_HINTS) |
269930c0 AK |
185 | |
186 | xx(vgck, | |
187 | "Check the consistency of volume group(s)", | |
47effdc0 | 188 | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH) |
269930c0 | 189 | |
5a52dca9 AK |
190 | xx(vgconvert, |
191 | "Change volume group metadata format", | |
1e2420bc | 192 | 0) |
5a52dca9 | 193 | |
269930c0 AK |
194 | xx(vgcreate, |
195 | "Create a volume group", | |
1e2420bc | 196 | MUST_USE_ALL_ARGS | ENABLE_ALL_DEVS) |
269930c0 AK |
197 | |
198 | xx(vgdisplay, | |
199 | "Display volume group information", | |
d3d6a0e8 | 200 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | CAN_USE_ONE_SCAN | ALLOW_HINTS | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
269930c0 AK |
201 | |
202 | xx(vgexport, | |
203 | "Unregister volume group(s) from the system", | |
1e2420bc | 204 | ALL_VGS_IS_DEFAULT) |
269930c0 AK |
205 | |
206 | xx(vgextend, | |
207 | "Add physical volumes to a volume group", | |
1e2420bc | 208 | MUST_USE_ALL_ARGS | ENABLE_ALL_DEVS) |
269930c0 AK |
209 | |
210 | xx(vgimport, | |
211 | "Register exported volume group with system", | |
b4402bd8 | 212 | ALL_VGS_IS_DEFAULT | ALLOW_EXPORTED) |
269930c0 | 213 | |
ebd2758d | 214 | xx(vgimportclone, |
b4402bd8 DT |
215 | "Import a VG from cloned PVs", |
216 | ALLOW_EXPORTED) | |
ebd2758d | 217 | |
83fe6e72 DT |
218 | xx(vgimportdevices, |
219 | "Add devices for a VG to the devices file.", | |
220 | ALL_VGS_IS_DEFAULT | ALLOW_EXPORTED) | |
221 | ||
269930c0 AK |
222 | xx(vgmerge, |
223 | "Merge volume groups", | |
1e2420bc | 224 | 0) |
269930c0 AK |
225 | |
226 | xx(vgmknodes, | |
227 | "Create the special files for volume group devices in /dev", | |
1e2420bc | 228 | ALL_VGS_IS_DEFAULT) |
269930c0 AK |
229 | |
230 | xx(vgreduce, | |
231 | "Remove physical volume(s) from a volume group", | |
1e2420bc | 232 | 0) |
269930c0 AK |
233 | |
234 | xx(vgremove, | |
235 | "Remove volume group(s)", | |
1e2420bc | 236 | ALL_VGS_IS_DEFAULT) /* all VGs only with select */ |
269930c0 AK |
237 | |
238 | xx(vgrename, | |
239 | "Rename a volume group", | |
b4402bd8 | 240 | ALLOW_UUID_AS_NAME | ALLOW_EXPORTED) |
269930c0 | 241 | |
4c64ed4c AK |
242 | xx(vgs, |
243 | "Display information about volume groups", | |
d3d6a0e8 | 244 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | CAN_USE_ONE_SCAN | ALLOW_HINTS | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
4c64ed4c | 245 | |
269930c0 AK |
246 | xx(vgscan, |
247 | "Search for all volume groups", | |
d3d6a0e8 | 248 | PERMITTED_READ_ONLY | ALL_VGS_IS_DEFAULT | LOCKD_VG_SH | ALLOW_EXPORTED | CHECK_DEVS_USED | DEVICE_ID_NOT_FOUND) |
269930c0 AK |
249 | |
250 | xx(vgsplit, | |
1ce224d1 | 251 | "Move physical volumes into a new or existing volume group", |
1e2420bc | 252 | 0) |