]>
Commit | Line | Data |
---|---|---|
1f554f76 DM |
1 | *pvesm* `<COMMAND> [ARGS] [OPTIONS]` |
2 | ||
3 | *pvesm add* `<type> <storage>` `[OPTIONS]` | |
4 | ||
5 | Create a new storage. | |
6 | ||
27a7acb2 | 7 | `<type>`: `<cifs | dir | drbd | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | rbd | sheepdog | zfs | zfspool>` :: |
1f554f76 DM |
8 | |
9 | Storage type. | |
10 | ||
013dc89f | 11 | `<storage>`: `<string>` :: |
1f554f76 DM |
12 | |
13 | The storage identifier. | |
14 | ||
2489d6df | 15 | `--authsupported` `<string>` :: |
1f554f76 DM |
16 | |
17 | Authsupported. | |
18 | ||
2489d6df | 19 | `--base` `<string>` :: |
1f554f76 DM |
20 | |
21 | Base volume. This volume is automatically activated. | |
22 | ||
2489d6df | 23 | `--blocksize` `<string>` :: |
1f554f76 DM |
24 | |
25 | block size | |
26 | ||
27a7acb2 DM |
27 | `--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` :: |
28 | ||
29 | Set bandwidth/io limits various operations. | |
30 | ||
2489d6df | 31 | `--comstar_hg` `<string>` :: |
1f554f76 DM |
32 | |
33 | host group for comstar views | |
34 | ||
2489d6df | 35 | `--comstar_tg` `<string>` :: |
1f554f76 DM |
36 | |
37 | target group for comstar views | |
38 | ||
2489d6df | 39 | `--content` `<string>` :: |
1f554f76 | 40 | |
04ce4dfa DM |
41 | Allowed content types. |
42 | + | |
c2993fe5 | 43 | NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. |
1f554f76 | 44 | |
2489d6df | 45 | `--disable` `<boolean>` :: |
1f554f76 DM |
46 | |
47 | Flag to disable the storage. | |
48 | ||
27a7acb2 DM |
49 | `--domain` `<string>` :: |
50 | ||
51 | CIFS domain. | |
52 | ||
2489d6df | 53 | `--export` `<string>` :: |
1f554f76 DM |
54 | |
55 | NFS export path. | |
56 | ||
2489d6df | 57 | `--format` `<string>` :: |
1f554f76 | 58 | |
04ce4dfa | 59 | Default image format. |
1f554f76 | 60 | |
2489d6df | 61 | `--is_mountpoint` `<string>` ('default =' `no`):: |
2c0dde61 | 62 | |
2489d6df | 63 | Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. |
2c0dde61 | 64 | |
2489d6df | 65 | `--iscsiprovider` `<string>` :: |
1f554f76 DM |
66 | |
67 | iscsi provider | |
68 | ||
2489d6df | 69 | `--krbd` `<boolean>` :: |
1f554f76 DM |
70 | |
71 | Access rbd through krbd kernel module. | |
72 | ||
2489d6df | 73 | `--maxfiles` `<integer> (0 - N)` :: |
1f554f76 DM |
74 | |
75 | Maximal number of backup files per VM. Use '0' for unlimted. | |
76 | ||
2489d6df | 77 | `--mkdir` `<boolean>` ('default =' `yes`):: |
2c0dde61 DM |
78 | |
79 | Create the directory if it doesn't exist. | |
80 | ||
2489d6df | 81 | `--monhost` `<string>` :: |
1f554f76 | 82 | |
2489d6df | 83 | IP addresses of monitors (for external clusters). |
1f554f76 | 84 | |
2489d6df | 85 | `--nodes` `<string>` :: |
1f554f76 DM |
86 | |
87 | List of cluster node names. | |
88 | ||
2489d6df | 89 | `--nowritecache` `<boolean>` :: |
1f554f76 DM |
90 | |
91 | disable write caching on the target | |
92 | ||
2489d6df | 93 | `--options` `<string>` :: |
1f554f76 DM |
94 | |
95 | NFS mount options (see 'man nfs') | |
96 | ||
27a7acb2 DM |
97 | `--password` :: |
98 | ||
99 | Password for CIFS share. | |
100 | ||
2489d6df | 101 | `--path` `<string>` :: |
1f554f76 DM |
102 | |
103 | File system path. | |
104 | ||
2489d6df | 105 | `--pool` `<string>` :: |
1f554f76 DM |
106 | |
107 | Pool. | |
108 | ||
2489d6df | 109 | `--portal` `<string>` :: |
1f554f76 DM |
110 | |
111 | iSCSI portal (IP or DNS name with optional port). | |
112 | ||
2489d6df | 113 | `--redundancy` `<integer> (1 - 16)` ('default =' `2`):: |
1f554f76 | 114 | |
c2993fe5 | 115 | The redundancy count specifies the number of nodes to which the resource should be deployed. It must be at least 1 and at most the number of nodes in the cluster. |
1f554f76 | 116 | |
2489d6df | 117 | `--saferemove` `<boolean>` :: |
1f554f76 DM |
118 | |
119 | Zero-out data when removing LVs. | |
120 | ||
2489d6df | 121 | `--saferemove_throughput` `<string>` :: |
1f554f76 DM |
122 | |
123 | Wipe throughput (cstream -t parameter value). | |
124 | ||
2489d6df | 125 | `--server` `<string>` :: |
1f554f76 DM |
126 | |
127 | Server IP or DNS name. | |
128 | ||
2489d6df | 129 | `--server2` `<string>` :: |
1f554f76 DM |
130 | |
131 | Backup volfile server IP or DNS name. | |
132 | + | |
133 | NOTE: Requires option(s): `server` | |
134 | ||
27a7acb2 DM |
135 | `--share` `<string>` :: |
136 | ||
137 | CIFS share. | |
138 | ||
2489d6df | 139 | `--shared` `<boolean>` :: |
1f554f76 DM |
140 | |
141 | Mark storage as shared. | |
142 | ||
27a7acb2 DM |
143 | `--smbversion` `<string>` :: |
144 | ||
145 | no description available | |
146 | ||
2489d6df | 147 | `--sparse` `<boolean>` :: |
1f554f76 DM |
148 | |
149 | use sparse volumes | |
150 | ||
2489d6df | 151 | `--tagged_only` `<boolean>` :: |
2c0dde61 DM |
152 | |
153 | Only use logical volumes tagged with 'pve-vm-ID'. | |
154 | ||
2489d6df | 155 | `--target` `<string>` :: |
1f554f76 DM |
156 | |
157 | iSCSI target. | |
158 | ||
2489d6df | 159 | `--thinpool` `<string>` :: |
1f554f76 DM |
160 | |
161 | LVM thin pool LV name. | |
162 | ||
2489d6df | 163 | `--transport` `<rdma | tcp | unix>` :: |
1f554f76 DM |
164 | |
165 | Gluster transport: tcp or rdma | |
166 | ||
2489d6df | 167 | `--username` `<string>` :: |
1f554f76 DM |
168 | |
169 | RBD Id. | |
170 | ||
2489d6df | 171 | `--vgname` `<string>` :: |
1f554f76 DM |
172 | |
173 | Volume group name. | |
174 | ||
2489d6df | 175 | `--volume` `<string>` :: |
1f554f76 DM |
176 | |
177 | Glusterfs Volume. | |
178 | ||
1f554f76 DM |
179 | *pvesm alloc* `<storage> <vmid> <filename> <size>` `[OPTIONS]` |
180 | ||
181 | Allocate disk images. | |
182 | ||
013dc89f | 183 | `<storage>`: `<string>` :: |
1f554f76 DM |
184 | |
185 | The storage identifier. | |
186 | ||
013dc89f | 187 | `<vmid>`: `<integer> (1 - N)` :: |
1f554f76 DM |
188 | |
189 | Specify owner VM | |
190 | ||
013dc89f | 191 | `<filename>`: `<string>` :: |
1f554f76 DM |
192 | |
193 | The name of the file to create. | |
194 | ||
013dc89f | 195 | `<size>`: `\d+[MG]?` :: |
1f554f76 | 196 | |
c2993fe5 | 197 | Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M) |
1f554f76 | 198 | |
2489d6df | 199 | `--format` `<qcow2 | raw | subvol>` :: |
1f554f76 DM |
200 | |
201 | no description available | |
202 | + | |
203 | NOTE: Requires option(s): `size` | |
204 | ||
27a7acb2 DM |
205 | *pvesm cifsscan* `<server>` `[OPTIONS]` |
206 | ||
207 | Scan remote CIFS server. | |
208 | ||
209 | `<server>`: `<string>` :: | |
210 | ||
211 | no description available | |
212 | ||
213 | `--domain` `<string>` :: | |
214 | ||
215 | no description available | |
216 | ||
217 | `--password` :: | |
218 | ||
219 | no description available | |
220 | ||
221 | `--username` `<string>` :: | |
222 | ||
223 | no description available | |
224 | ||
5d9c884c DM |
225 | *pvesm export* `<volume> <format> <filename>` `[OPTIONS]` |
226 | ||
227 | Export a volume. | |
228 | ||
229 | `<volume>`: `<string>` :: | |
230 | ||
231 | Volume identifier | |
232 | ||
233 | `<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` :: | |
234 | ||
235 | Export stream format | |
236 | ||
237 | `<filename>`: `<string>` :: | |
238 | ||
239 | Destination file name | |
240 | ||
2489d6df | 241 | `--base` `(?^:[a-z0-9_\-]{1,40})` :: |
5d9c884c DM |
242 | |
243 | Snapshot to start an incremental stream from | |
244 | ||
2489d6df | 245 | `--snapshot` `(?^:[a-z0-9_\-]{1,40})` :: |
5d9c884c DM |
246 | |
247 | Snapshot to export | |
248 | ||
2489d6df | 249 | `--with-snapshots` `<boolean>` ('default =' `0`):: |
5d9c884c DM |
250 | |
251 | Whether to include intermediate snapshots in the stream | |
252 | ||
2c0dde61 DM |
253 | *pvesm extractconfig* `<volume>` |
254 | ||
255 | Extract configuration from vzdump backup archive. | |
256 | ||
013dc89f | 257 | `<volume>`: `<string>` :: |
2c0dde61 DM |
258 | |
259 | Volume identifier | |
260 | ||
1f554f76 DM |
261 | *pvesm free* `<volume>` `[OPTIONS]` |
262 | ||
263 | Delete volume | |
264 | ||
013dc89f | 265 | `<volume>`: `<string>` :: |
1f554f76 DM |
266 | |
267 | Volume identifier | |
268 | ||
2489d6df | 269 | `--storage` `<string>` :: |
1f554f76 DM |
270 | |
271 | The storage identifier. | |
272 | ||
1f554f76 DM |
273 | *pvesm glusterfsscan* `<server>` |
274 | ||
275 | Scan remote GlusterFS server. | |
276 | ||
013dc89f | 277 | `<server>`: `<string>` :: |
1f554f76 DM |
278 | |
279 | no description available | |
280 | ||
35a75dd3 | 281 | *pvesm help* `[OPTIONS]` |
1f554f76 DM |
282 | |
283 | Get help about specified command. | |
284 | ||
35a75dd3 | 285 | `--extra-args` `<array>` :: |
1f554f76 | 286 | |
35a75dd3 | 287 | Shows help for a specific command |
1f554f76 | 288 | |
2489d6df | 289 | `--verbose` `<boolean>` :: |
1f554f76 DM |
290 | |
291 | Verbose output format. | |
292 | ||
5d9c884c DM |
293 | *pvesm import* `<volume> <format> <filename>` `[OPTIONS]` |
294 | ||
295 | Import a volume. | |
296 | ||
297 | `<volume>`: `<string>` :: | |
298 | ||
299 | Volume identifier | |
300 | ||
301 | `<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` :: | |
302 | ||
303 | Import stream format | |
304 | ||
305 | `<filename>`: `<string>` :: | |
306 | ||
307 | Source file name | |
308 | ||
2489d6df | 309 | `--base` `(?^:[a-z0-9_\-]{1,40})` :: |
5d9c884c DM |
310 | |
311 | Base snapshot of an incremental stream | |
312 | ||
2489d6df | 313 | `--delete-snapshot` `(?^:[a-z0-9_\-]{1,80})` :: |
5d9c884c DM |
314 | |
315 | A snapshot to delete on success | |
316 | ||
2489d6df | 317 | `--with-snapshots` `<boolean>` ('default =' `0`):: |
5d9c884c DM |
318 | |
319 | Whether the stream includes intermediate snapshots | |
320 | ||
2489d6df | 321 | *pvesm iscsiscan* `--portal <string>` `[OPTIONS]` |
1f554f76 DM |
322 | |
323 | Scan remote iSCSI server. | |
324 | ||
2489d6df | 325 | `--portal` `<string>` :: |
1f554f76 DM |
326 | |
327 | no description available | |
328 | ||
1f554f76 DM |
329 | *pvesm list* `<storage>` `[OPTIONS]` |
330 | ||
331 | List storage content. | |
332 | ||
013dc89f | 333 | `<storage>`: `<string>` :: |
1f554f76 DM |
334 | |
335 | The storage identifier. | |
336 | ||
2489d6df | 337 | `--content` `<string>` :: |
1f554f76 DM |
338 | |
339 | Only list content of this type. | |
340 | ||
2489d6df | 341 | `--vmid` `<integer> (1 - N)` :: |
1f554f76 DM |
342 | |
343 | Only list images for this VM | |
344 | ||
1f554f76 DM |
345 | *pvesm lvmscan* |
346 | ||
347 | List local LVM volume groups. | |
348 | ||
9b3e4991 DM |
349 | *pvesm lvmthinscan* `<vg>` |
350 | ||
351 | List local LVM Thin Pools. | |
352 | ||
013dc89f | 353 | `<vg>`: `[a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+` :: |
9b3e4991 DM |
354 | |
355 | no description available | |
356 | ||
1f554f76 DM |
357 | *pvesm nfsscan* `<server>` |
358 | ||
359 | Scan remote NFS server. | |
360 | ||
013dc89f | 361 | `<server>`: `<string>` :: |
1f554f76 DM |
362 | |
363 | no description available | |
364 | ||
1f554f76 DM |
365 | *pvesm path* `<volume>` |
366 | ||
367 | Get filesystem path for specified volume | |
368 | ||
013dc89f | 369 | `<volume>`: `<string>` :: |
1f554f76 DM |
370 | |
371 | Volume identifier | |
372 | ||
1f554f76 DM |
373 | *pvesm remove* `<storage>` |
374 | ||
375 | Delete storage configuration. | |
376 | ||
013dc89f | 377 | `<storage>`: `<string>` :: |
1f554f76 DM |
378 | |
379 | The storage identifier. | |
380 | ||
1f554f76 DM |
381 | *pvesm set* `<storage>` `[OPTIONS]` |
382 | ||
383 | Update storage configuration. | |
384 | ||
013dc89f | 385 | `<storage>`: `<string>` :: |
1f554f76 DM |
386 | |
387 | The storage identifier. | |
388 | ||
2489d6df | 389 | `--blocksize` `<string>` :: |
1f554f76 DM |
390 | |
391 | block size | |
392 | ||
27a7acb2 DM |
393 | `--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` :: |
394 | ||
395 | Set bandwidth/io limits various operations. | |
396 | ||
2489d6df | 397 | `--comstar_hg` `<string>` :: |
1f554f76 DM |
398 | |
399 | host group for comstar views | |
400 | ||
2489d6df | 401 | `--comstar_tg` `<string>` :: |
1f554f76 DM |
402 | |
403 | target group for comstar views | |
404 | ||
2489d6df | 405 | `--content` `<string>` :: |
1f554f76 | 406 | |
04ce4dfa DM |
407 | Allowed content types. |
408 | + | |
c2993fe5 | 409 | NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs. |
1f554f76 | 410 | |
2489d6df | 411 | `--delete` `<string>` :: |
1f554f76 DM |
412 | |
413 | A list of settings you want to delete. | |
414 | ||
2489d6df | 415 | `--digest` `<string>` :: |
1f554f76 | 416 | |
c2993fe5 | 417 | Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. |
1f554f76 | 418 | |
2489d6df | 419 | `--disable` `<boolean>` :: |
1f554f76 DM |
420 | |
421 | Flag to disable the storage. | |
422 | ||
27a7acb2 DM |
423 | `--domain` `<string>` :: |
424 | ||
425 | CIFS domain. | |
426 | ||
2489d6df | 427 | `--format` `<string>` :: |
1f554f76 | 428 | |
04ce4dfa | 429 | Default image format. |
1f554f76 | 430 | |
2489d6df | 431 | `--is_mountpoint` `<string>` ('default =' `no`):: |
2c0dde61 | 432 | |
2489d6df | 433 | Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. |
2c0dde61 | 434 | |
2489d6df | 435 | `--krbd` `<boolean>` :: |
1f554f76 DM |
436 | |
437 | Access rbd through krbd kernel module. | |
438 | ||
2489d6df | 439 | `--maxfiles` `<integer> (0 - N)` :: |
1f554f76 DM |
440 | |
441 | Maximal number of backup files per VM. Use '0' for unlimted. | |
442 | ||
2489d6df | 443 | `--mkdir` `<boolean>` ('default =' `yes`):: |
2c0dde61 DM |
444 | |
445 | Create the directory if it doesn't exist. | |
446 | ||
2489d6df WB |
447 | `--monhost` `<string>` :: |
448 | ||
449 | IP addresses of monitors (for external clusters). | |
450 | ||
451 | `--nodes` `<string>` :: | |
1f554f76 DM |
452 | |
453 | List of cluster node names. | |
454 | ||
2489d6df | 455 | `--nowritecache` `<boolean>` :: |
1f554f76 DM |
456 | |
457 | disable write caching on the target | |
458 | ||
2489d6df | 459 | `--options` `<string>` :: |
1f554f76 DM |
460 | |
461 | NFS mount options (see 'man nfs') | |
462 | ||
27a7acb2 DM |
463 | `--password` :: |
464 | ||
465 | Password for CIFS share. | |
466 | ||
2489d6df | 467 | `--pool` `<string>` :: |
1f554f76 DM |
468 | |
469 | Pool. | |
470 | ||
2489d6df | 471 | `--redundancy` `<integer> (1 - 16)` ('default =' `2`):: |
1f554f76 | 472 | |
c2993fe5 | 473 | The redundancy count specifies the number of nodes to which the resource should be deployed. It must be at least 1 and at most the number of nodes in the cluster. |
1f554f76 | 474 | |
2489d6df | 475 | `--saferemove` `<boolean>` :: |
1f554f76 DM |
476 | |
477 | Zero-out data when removing LVs. | |
478 | ||
2489d6df | 479 | `--saferemove_throughput` `<string>` :: |
1f554f76 DM |
480 | |
481 | Wipe throughput (cstream -t parameter value). | |
482 | ||
2489d6df | 483 | `--server` `<string>` :: |
1f554f76 DM |
484 | |
485 | Server IP or DNS name. | |
486 | ||
2489d6df | 487 | `--server2` `<string>` :: |
1f554f76 DM |
488 | |
489 | Backup volfile server IP or DNS name. | |
490 | + | |
491 | NOTE: Requires option(s): `server` | |
492 | ||
2489d6df | 493 | `--shared` `<boolean>` :: |
1f554f76 DM |
494 | |
495 | Mark storage as shared. | |
496 | ||
27a7acb2 DM |
497 | `--smbversion` `<string>` :: |
498 | ||
499 | no description available | |
500 | ||
2489d6df | 501 | `--sparse` `<boolean>` :: |
1f554f76 DM |
502 | |
503 | use sparse volumes | |
504 | ||
2489d6df | 505 | `--tagged_only` `<boolean>` :: |
2c0dde61 DM |
506 | |
507 | Only use logical volumes tagged with 'pve-vm-ID'. | |
508 | ||
2489d6df | 509 | `--transport` `<rdma | tcp | unix>` :: |
1f554f76 DM |
510 | |
511 | Gluster transport: tcp or rdma | |
512 | ||
2489d6df | 513 | `--username` `<string>` :: |
1f554f76 DM |
514 | |
515 | RBD Id. | |
516 | ||
1f554f76 DM |
517 | *pvesm status* `[OPTIONS]` |
518 | ||
519 | Get status for all datastores. | |
520 | ||
2489d6df | 521 | `--content` `<string>` :: |
1f554f76 DM |
522 | |
523 | Only list stores which support this content type. | |
524 | ||
2489d6df | 525 | `--enabled` `<boolean>` ('default =' `0`):: |
1f554f76 DM |
526 | |
527 | Only list stores which are enabled (not disabled in config). | |
528 | ||
35a75dd3 DM |
529 | `--format` `<boolean>` ('default =' `0`):: |
530 | ||
531 | Include information about formats | |
532 | ||
2489d6df | 533 | `--storage` `<string>` :: |
1f554f76 DM |
534 | |
535 | Only list status for specified storage | |
536 | ||
2489d6df | 537 | `--target` `<string>` :: |
1f554f76 | 538 | |
c2993fe5 | 539 | If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node. |
1f554f76 | 540 | |
1f554f76 DM |
541 | *pvesm zfsscan* |
542 | ||
543 | Scan zfs pool list on local node. | |
544 | ||
545 |