]> git.proxmox.com Git - pve-docs.git/blame_incremental - pvesm.1-synopsis.adoc
update static and schema information
[pve-docs.git] / pvesm.1-synopsis.adoc
... / ...
CommitLineData
1*pvesm* `<COMMAND> [ARGS] [OPTIONS]`
2
3*pvesm add* `<type> <storage>` `[OPTIONS]`
4
5Create a new storage.
6
7`<type>`: `<cephfs | cifs | dir | drbd | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | pbs | rbd | zfs | zfspool>` ::
8
9Storage type.
10
11`<storage>`: `<string>` ::
12
13The storage identifier.
14
15`--authsupported` `<string>` ::
16
17Authsupported.
18
19`--base` `<string>` ::
20
21Base volume. This volume is automatically activated.
22
23`--blocksize` `<string>` ::
24
25block size
26
27`--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
28
29Set bandwidth/io limits various operations.
30
31`--comstar_hg` `<string>` ::
32
33host group for comstar views
34
35`--comstar_tg` `<string>` ::
36
37target group for comstar views
38
39`--content` `<string>` ::
40
41Allowed content types.
42+
43NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
44
45`--datastore` `<string>` ::
46
47Proxmox backup server datastore name.
48
49`--disable` `<boolean>` ::
50
51Flag to disable the storage.
52
53`--domain` `<string>` ::
54
55CIFS domain.
56
57`--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
58
59Encryption key. Use 'autogen' to generate one automatically without passphrase.
60
61`--export` `<string>` ::
62
63NFS export path.
64
65`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
66
67Certificate SHA 256 fingerprint.
68
69`--format` `<string>` ::
70
71Default image format.
72
73`--fuse` `<boolean>` ::
74
75Mount CephFS through FUSE.
76
77`--is_mountpoint` `<string>` ('default =' `no`)::
78
79Assume 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.
80
81`--iscsiprovider` `<string>` ::
82
83iscsi provider
84
85`--krbd` `<boolean>` ::
86
87Always access rbd through krbd kernel module.
88
89`--lio_tpg` `<string>` ::
90
91target portal group for Linux LIO targets
92
93`--maxfiles` `<integer> (0 - N)` ::
94
95Maximal number of backup files per VM. Use '0' for unlimted.
96
97`--mkdir` `<boolean>` ('default =' `yes`)::
98
99Create the directory if it doesn't exist.
100
101`--monhost` `<string>` ::
102
103IP addresses of monitors (for external clusters).
104
105`--mountpoint` `<string>` ::
106
107mount point
108
109`--nodes` `<string>` ::
110
111List of cluster node names.
112
113`--nowritecache` `<boolean>` ::
114
115disable write caching on the target
116
117`--options` `<string>` ::
118
119NFS mount options (see 'man nfs')
120
121`--password` `<password>` ::
122
123Password for accessing the share/datastore.
124
125`--path` `<string>` ::
126
127File system path.
128
129`--pool` `<string>` ::
130
131Pool.
132
133`--portal` `<string>` ::
134
135iSCSI portal (IP or DNS name with optional port).
136
137`--prune-backups` `[keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
138
139The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.
140
141`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
142
143The 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.
144
145`--saferemove` `<boolean>` ::
146
147Zero-out data when removing LVs.
148
149`--saferemove_throughput` `<string>` ::
150
151Wipe throughput (cstream -t parameter value).
152
153`--server` `<string>` ::
154
155Server IP or DNS name.
156
157`--server2` `<string>` ::
158
159Backup volfile server IP or DNS name.
160+
161NOTE: Requires option(s): `server`
162
163`--share` `<string>` ::
164
165CIFS share.
166
167`--shared` `<boolean>` ::
168
169Mark storage as shared.
170
171`--smbversion` `<2.0 | 2.1 | 3.0>` ::
172
173SMB protocol version
174
175`--sparse` `<boolean>` ::
176
177use sparse volumes
178
179`--subdir` `<string>` ::
180
181Subdir to mount.
182
183`--tagged_only` `<boolean>` ::
184
185Only use logical volumes tagged with 'pve-vm-ID'.
186
187`--target` `<string>` ::
188
189iSCSI target.
190
191`--thinpool` `<string>` ::
192
193LVM thin pool LV name.
194
195`--transport` `<rdma | tcp | unix>` ::
196
197Gluster transport: tcp or rdma
198
199`--username` `<string>` ::
200
201RBD Id.
202
203`--vgname` `<string>` ::
204
205Volume group name.
206
207`--volume` `<string>` ::
208
209Glusterfs Volume.
210
211*pvesm alloc* `<storage> <vmid> <filename> <size>` `[OPTIONS]`
212
213Allocate disk images.
214
215`<storage>`: `<string>` ::
216
217The storage identifier.
218
219`<vmid>`: `<integer> (1 - N)` ::
220
221Specify owner VM
222
223`<filename>`: `<string>` ::
224
225The name of the file to create.
226
227`<size>`: `\d+[MG]?` ::
228
229Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)
230
231`--format` `<qcow2 | raw | subvol>` ::
232
233no description available
234+
235NOTE: Requires option(s): `size`
236
237*pvesm apiinfo*
238
239Returns APIVER and APIAGE.
240
241*pvesm cifsscan*
242
243An alias for 'pvesm scan cifs'.
244
245*pvesm export* `<volume> <format> <filename>` `[OPTIONS]`
246
247Used internally to export a volume.
248
249`<volume>`: `<string>` ::
250
251Volume identifier
252
253`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
254
255Export stream format
256
257`<filename>`: `<string>` ::
258
259Destination file name
260
261`--base` `(?^:[a-z0-9_\-]{1,40})` ::
262
263Snapshot to start an incremental stream from
264
265`--snapshot` `(?^:[a-z0-9_\-]{1,40})` ::
266
267Snapshot to export
268
269`--with-snapshots` `<boolean>` ('default =' `0`)::
270
271Whether to include intermediate snapshots in the stream
272
273*pvesm extractconfig* `<volume>`
274
275Extract configuration from vzdump backup archive.
276
277`<volume>`: `<string>` ::
278
279Volume identifier
280
281*pvesm free* `<volume>` `[OPTIONS]`
282
283Delete volume
284
285`<volume>`: `<string>` ::
286
287Volume identifier
288
289`--delay` `<integer> (1 - 30)` ::
290
291Time to wait for the task to finish. We return 'null' if the task finish within that time.
292
293`--storage` `<string>` ::
294
295The storage identifier.
296
297*pvesm glusterfsscan*
298
299An alias for 'pvesm scan glusterfs'.
300
301*pvesm help* `[OPTIONS]`
302
303Get help about specified command.
304
305`--extra-args` `<array>` ::
306
307Shows help for a specific command
308
309`--verbose` `<boolean>` ::
310
311Verbose output format.
312
313*pvesm import* `<volume> <format> <filename>` `[OPTIONS]`
314
315Used internally to import a volume.
316
317`<volume>`: `<string>` ::
318
319Volume identifier
320
321`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
322
323Import stream format
324
325`<filename>`: `<string>` ::
326
327Source file name. For '-' stdin is used, the tcp://<IP-or-CIDR> format allows to use a TCP connection as input. Else, the file is treated as common file.
328
329`--allow-rename` `<boolean>` ('default =' `0`)::
330
331Choose a new volume ID if the requested volume ID already exists, instead of throwing an error.
332
333`--base` `(?^:[a-z0-9_\-]{1,40})` ::
334
335Base snapshot of an incremental stream
336
337`--delete-snapshot` `(?^:[a-z0-9_\-]{1,80})` ::
338
339A snapshot to delete on success
340
341`--with-snapshots` `<boolean>` ('default =' `0`)::
342
343Whether the stream includes intermediate snapshots
344
345*pvesm iscsiscan*
346
347An alias for 'pvesm scan iscsi'.
348
349*pvesm list* `<storage>` `[OPTIONS]`
350
351List storage content.
352
353`<storage>`: `<string>` ::
354
355The storage identifier.
356
357`--content` `<string>` ::
358
359Only list content of this type.
360
361`--vmid` `<integer> (1 - N)` ::
362
363Only list images for this VM
364
365*pvesm lvmscan*
366
367An alias for 'pvesm scan lvm'.
368
369*pvesm lvmthinscan*
370
371An alias for 'pvesm scan lvmthin'.
372
373*pvesm nfsscan*
374
375An alias for 'pvesm scan nfs'.
376
377*pvesm path* `<volume>`
378
379Get filesystem path for specified volume
380
381`<volume>`: `<string>` ::
382
383Volume identifier
384
385*pvesm prune-backups* `<storage>` `[OPTIONS]`
386
387Prune backups. This is only a wrapper for the proper API endpoints.
388
389`<storage>`: `<string>` ::
390
391The storage identifier.
392
393`--dry-run` `<boolean>` ::
394
395Only show what would be pruned, don't delete anything.
396
397`--prune-backups` `[keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
398
399Use these retention options instead of those from the storage configuration.
400
401`--type` `<lxc | qemu>` ::
402
403Either 'qemu' or 'lxc'. Only consider backups for guests of this type.
404
405`--vmid` `<integer> (1 - N)` ::
406
407Only consider backups for this guest.
408
409*pvesm remove* `<storage>`
410
411Delete storage configuration.
412
413`<storage>`: `<string>` ::
414
415The storage identifier.
416
417*pvesm scan cifs* `<server>` `[OPTIONS]`
418
419Scan remote CIFS server.
420
421`<server>`: `<string>` ::
422
423The server address (name or IP).
424
425`--domain` `<string>` ::
426
427SMB domain (Workgroup).
428
429`--password` `<password>` ::
430
431User password.
432
433`--username` `<string>` ::
434
435User name.
436
437*pvesm scan glusterfs* `<server>`
438
439Scan remote GlusterFS server.
440
441`<server>`: `<string>` ::
442
443The server address (name or IP).
444
445*pvesm scan iscsi* `<portal>`
446
447Scan remote iSCSI server.
448
449`<portal>`: `<string>` ::
450
451The iSCSI portal (IP or DNS name with optional port).
452
453*pvesm scan lvm*
454
455List local LVM volume groups.
456
457*pvesm scan lvmthin* `<vg>`
458
459List local LVM Thin Pools.
460
461`<vg>`: `[a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+` ::
462
463no description available
464
465*pvesm scan nfs* `<server>`
466
467Scan remote NFS server.
468
469`<server>`: `<string>` ::
470
471The server address (name or IP).
472
473*pvesm scan zfs*
474
475Scan zfs pool list on local node.
476
477*pvesm set* `<storage>` `[OPTIONS]`
478
479Update storage configuration.
480
481`<storage>`: `<string>` ::
482
483The storage identifier.
484
485`--blocksize` `<string>` ::
486
487block size
488
489`--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
490
491Set bandwidth/io limits various operations.
492
493`--comstar_hg` `<string>` ::
494
495host group for comstar views
496
497`--comstar_tg` `<string>` ::
498
499target group for comstar views
500
501`--content` `<string>` ::
502
503Allowed content types.
504+
505NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
506
507`--delete` `<string>` ::
508
509A list of settings you want to delete.
510
511`--digest` `<string>` ::
512
513Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
514
515`--disable` `<boolean>` ::
516
517Flag to disable the storage.
518
519`--domain` `<string>` ::
520
521CIFS domain.
522
523`--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
524
525Encryption key. Use 'autogen' to generate one automatically without passphrase.
526
527`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
528
529Certificate SHA 256 fingerprint.
530
531`--format` `<string>` ::
532
533Default image format.
534
535`--fuse` `<boolean>` ::
536
537Mount CephFS through FUSE.
538
539`--is_mountpoint` `<string>` ('default =' `no`)::
540
541Assume 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.
542
543`--krbd` `<boolean>` ::
544
545Always access rbd through krbd kernel module.
546
547`--lio_tpg` `<string>` ::
548
549target portal group for Linux LIO targets
550
551`--maxfiles` `<integer> (0 - N)` ::
552
553Maximal number of backup files per VM. Use '0' for unlimted.
554
555`--mkdir` `<boolean>` ('default =' `yes`)::
556
557Create the directory if it doesn't exist.
558
559`--monhost` `<string>` ::
560
561IP addresses of monitors (for external clusters).
562
563`--mountpoint` `<string>` ::
564
565mount point
566
567`--nodes` `<string>` ::
568
569List of cluster node names.
570
571`--nowritecache` `<boolean>` ::
572
573disable write caching on the target
574
575`--options` `<string>` ::
576
577NFS mount options (see 'man nfs')
578
579`--password` `<password>` ::
580
581Password for accessing the share/datastore.
582
583`--pool` `<string>` ::
584
585Pool.
586
587`--prune-backups` `[keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
588
589The retention options with shorter intervals are processed first with --keep-last being the very first one. Each option covers a specific period of time. We say that backups within this period are covered by this option. The next option does not take care of already covered backups and only considers older backups.
590
591`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
592
593The 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.
594
595`--saferemove` `<boolean>` ::
596
597Zero-out data when removing LVs.
598
599`--saferemove_throughput` `<string>` ::
600
601Wipe throughput (cstream -t parameter value).
602
603`--server` `<string>` ::
604
605Server IP or DNS name.
606
607`--server2` `<string>` ::
608
609Backup volfile server IP or DNS name.
610+
611NOTE: Requires option(s): `server`
612
613`--shared` `<boolean>` ::
614
615Mark storage as shared.
616
617`--smbversion` `<2.0 | 2.1 | 3.0>` ::
618
619SMB protocol version
620
621`--sparse` `<boolean>` ::
622
623use sparse volumes
624
625`--subdir` `<string>` ::
626
627Subdir to mount.
628
629`--tagged_only` `<boolean>` ::
630
631Only use logical volumes tagged with 'pve-vm-ID'.
632
633`--transport` `<rdma | tcp | unix>` ::
634
635Gluster transport: tcp or rdma
636
637`--username` `<string>` ::
638
639RBD Id.
640
641*pvesm status* `[OPTIONS]`
642
643Get status for all datastores.
644
645`--content` `<string>` ::
646
647Only list stores which support this content type.
648
649`--enabled` `<boolean>` ('default =' `0`)::
650
651Only list stores which are enabled (not disabled in config).
652
653`--format` `<boolean>` ('default =' `0`)::
654
655Include information about formats
656
657`--storage` `<string>` ::
658
659Only list status for specified storage
660
661`--target` `<string>` ::
662
663If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node.
664
665*pvesm zfsscan*
666
667An alias for 'pvesm scan zfs'.
668
669