]> git.proxmox.com Git - pve-docs.git/blame_incremental - pvesm.1-synopsis.adoc
qm mappings: stylistic fixes
[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>`: `<btrfs | cephfs | cifs | dir | 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 I/O bandwidth limit for various operations (in KiB/s).
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`--content-dirs` `<string>` ::
46
47Overrides for default content type directories.
48
49`--create-base-path` `<boolean>` ('default =' `yes`)::
50
51Create the base directory if it doesn't exist.
52
53`--create-subdirs` `<boolean>` ('default =' `yes`)::
54
55Populate the directory with the default structure.
56
57`--data-pool` `<string>` ::
58
59Data Pool (for erasure coding only)
60
61`--datastore` `<string>` ::
62
63Proxmox Backup Server datastore name.
64
65`--disable` `<boolean>` ::
66
67Flag to disable the storage.
68
69`--domain` `<string>` ::
70
71CIFS domain.
72
73`--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
74
75Encryption key. Use 'autogen' to generate one automatically without passphrase.
76
77`--export` `<string>` ::
78
79NFS export path.
80
81`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
82
83Certificate SHA 256 fingerprint.
84
85`--format` `<string>` ::
86
87Default image format.
88
89`--fs-name` `<string>` ::
90
91The Ceph filesystem name.
92
93`--fuse` `<boolean>` ::
94
95Mount CephFS through FUSE.
96
97`--is_mountpoint` `<string>` ('default =' `no`)::
98
99Assume 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.
100
101`--iscsiprovider` `<string>` ::
102
103iscsi provider
104
105`--keyring` `file containing the keyring to authenticate in the Ceph cluster` ::
106
107Client keyring contents (for external clusters).
108
109`--krbd` `<boolean>` ::
110
111Always access rbd through krbd kernel module.
112
113`--lio_tpg` `<string>` ::
114
115target portal group for Linux LIO targets
116
117`--master-pubkey` `a file containing a PEM-formatted master public key` ::
118
119Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
120
121`--max-protected-backups` `<integer> (-1 - N)` ('default =' `Unlimited for users with Datastore.Allocate privilege, 5 for other users`)::
122
123Maximal number of protected backups per guest. Use '-1' for unlimited.
124
125`--maxfiles` `<integer> (0 - N)` ::
126
127Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.
128
129`--mkdir` `<boolean>` ('default =' `yes`)::
130
131Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead.
132
133`--monhost` `<string>` ::
134
135IP addresses of monitors (for external clusters).
136
137`--mountpoint` `<string>` ::
138
139mount point
140
141`--namespace` `<string>` ::
142
143Namespace.
144
145`--nocow` `<boolean>` ('default =' `0`)::
146
147Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.
148
149`--nodes` `<string>` ::
150
151List of cluster node names.
152
153`--nowritecache` `<boolean>` ::
154
155disable write caching on the target
156
157`--options` `<string>` ::
158
159NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')
160
161`--password` `<password>` ::
162
163Password for accessing the share/datastore.
164
165`--path` `<string>` ::
166
167File system path.
168
169`--pool` `<string>` ::
170
171Pool.
172
173`--port` `<integer> (1 - 65535)` ('default =' `8007`)::
174
175For non default port.
176
177`--portal` `<string>` ::
178
179iSCSI portal (IP or DNS name with optional port).
180
181`--preallocation` `<falloc | full | metadata | off>` ('default =' `metadata`)::
182
183Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.
184
185`--prune-backups` `[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
186
187The 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.
188
189`--saferemove` `<boolean>` ::
190
191Zero-out data when removing LVs.
192
193`--saferemove_throughput` `<string>` ::
194
195Wipe throughput (cstream -t parameter value).
196
197`--server` `<string>` ::
198
199Server IP or DNS name.
200
201`--server2` `<string>` ::
202
203Backup volfile server IP or DNS name.
204+
205NOTE: Requires option(s): `server`
206
207`--share` `<string>` ::
208
209CIFS share.
210
211`--shared` `<boolean>` ::
212
213Mark storage as shared.
214
215`--smbversion` `<2.0 | 2.1 | 3 | 3.0 | 3.11 | default>` ('default =' `default`)::
216
217SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.
218
219`--sparse` `<boolean>` ::
220
221use sparse volumes
222
223`--subdir` `<string>` ::
224
225Subdir to mount.
226
227`--tagged_only` `<boolean>` ::
228
229Only use logical volumes tagged with 'pve-vm-ID'.
230
231`--target` `<string>` ::
232
233iSCSI target.
234
235`--thinpool` `<string>` ::
236
237LVM thin pool LV name.
238
239`--transport` `<rdma | tcp | unix>` ::
240
241Gluster transport: tcp or rdma
242
243`--username` `<string>` ::
244
245RBD Id.
246
247`--vgname` `<string>` ::
248
249Volume group name.
250
251`--volume` `<string>` ::
252
253Glusterfs Volume.
254
255*pvesm alloc* `<storage> <vmid> <filename> <size>` `[OPTIONS]`
256
257Allocate disk images.
258
259`<storage>`: `<string>` ::
260
261The storage identifier.
262
263`<vmid>`: `<integer> (1 - N)` ::
264
265Specify owner VM
266
267`<filename>`: `<string>` ::
268
269The name of the file to create.
270
271`<size>`: `\d+[MG]?` ::
272
273Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)
274
275`--format` `<qcow2 | raw | subvol>` ::
276
277no description available
278+
279NOTE: Requires option(s): `size`
280
281*pvesm apiinfo*
282
283Returns APIVER and APIAGE.
284
285*pvesm cifsscan*
286
287An alias for 'pvesm scan cifs'.
288
289*pvesm export* `<volume> <format> <filename>` `[OPTIONS]`
290
291Used internally to export a volume.
292
293`<volume>`: `<string>` ::
294
295Volume identifier
296
297`<format>`: `<btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
298
299Export stream format
300
301`<filename>`: `<string>` ::
302
303Destination file name
304
305`--base` `(?^i:[a-z0-9_\-]{1,40})` ::
306
307Snapshot to start an incremental stream from
308
309`--snapshot` `(?^i:[a-z0-9_\-]{1,40})` ::
310
311Snapshot to export
312
313`--snapshot-list` `<string>` ::
314
315Ordered list of snapshots to transfer
316
317`--with-snapshots` `<boolean>` ('default =' `0`)::
318
319Whether to include intermediate snapshots in the stream
320
321*pvesm extractconfig* `<volume>`
322
323Extract configuration from vzdump backup archive.
324
325`<volume>`: `<string>` ::
326
327Volume identifier
328
329*pvesm free* `<volume>` `[OPTIONS]`
330
331Delete volume
332
333`<volume>`: `<string>` ::
334
335Volume identifier
336
337`--delay` `<integer> (1 - 30)` ::
338
339Time to wait for the task to finish. We return 'null' if the task finish within that time.
340
341`--storage` `<string>` ::
342
343The storage identifier.
344
345*pvesm glusterfsscan*
346
347An alias for 'pvesm scan glusterfs'.
348
349*pvesm help* `[OPTIONS]`
350
351Get help about specified command.
352
353`--extra-args` `<array>` ::
354
355Shows help for a specific command
356
357`--verbose` `<boolean>` ::
358
359Verbose output format.
360
361*pvesm import* `<volume> <format> <filename>` `[OPTIONS]`
362
363Used internally to import a volume.
364
365`<volume>`: `<string>` ::
366
367Volume identifier
368
369`<format>`: `<btrfs | qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
370
371Import stream format
372
373`<filename>`: `<string>` ::
374
375Source file name. For '-' stdin is used, the tcp://<IP-or-CIDR> format allows to use a TCP connection, the unix://PATH-TO-SOCKET format a UNIX socket as input.Else, the file is treated as common file.
376
377`--allow-rename` `<boolean>` ('default =' `0`)::
378
379Choose a new volume ID if the requested volume ID already exists, instead of throwing an error.
380
381`--base` `(?^i:[a-z0-9_\-]{1,40})` ::
382
383Base snapshot of an incremental stream
384
385`--delete-snapshot` `(?^i:[a-z0-9_\-]{1,80})` ::
386
387A snapshot to delete on success
388
389`--snapshot` `(?^i:[a-z0-9_\-]{1,40})` ::
390
391The current-state snapshot if the stream contains snapshots
392
393`--with-snapshots` `<boolean>` ('default =' `0`)::
394
395Whether the stream includes intermediate snapshots
396
397*pvesm iscsiscan*
398
399An alias for 'pvesm scan iscsi'.
400
401*pvesm list* `<storage>` `[OPTIONS]`
402
403List storage content.
404
405`<storage>`: `<string>` ::
406
407The storage identifier.
408
409`--content` `<string>` ::
410
411Only list content of this type.
412
413`--vmid` `<integer> (1 - N)` ::
414
415Only list images for this VM
416
417*pvesm lvmscan*
418
419An alias for 'pvesm scan lvm'.
420
421*pvesm lvmthinscan*
422
423An alias for 'pvesm scan lvmthin'.
424
425*pvesm nfsscan*
426
427An alias for 'pvesm scan nfs'.
428
429*pvesm path* `<volume>`
430
431Get filesystem path for specified volume
432
433`<volume>`: `<string>` ::
434
435Volume identifier
436
437*pvesm prune-backups* `<storage>` `[OPTIONS]`
438
439Prune backups. Only those using the standard naming scheme are considered.
440If no keep options are specified, those from the storage configuration are
441used.
442
443`<storage>`: `<string>` ::
444
445The storage identifier.
446
447`--dry-run` `<boolean>` ::
448
449Only show what would be pruned, don't delete anything.
450
451`--keep-all` `<boolean>` ::
452
453Keep all backups. Conflicts with the other options when true.
454
455`--keep-daily` `<N>` ::
456
457Keep backups for the last <N> different days. If there is morethan one backup for a single day, only the latest one is kept.
458
459`--keep-hourly` `<N>` ::
460
461Keep backups for the last <N> different hours. If there is morethan one backup for a single hour, only the latest one is kept.
462
463`--keep-last` `<N>` ::
464
465Keep the last <N> backups.
466
467`--keep-monthly` `<N>` ::
468
469Keep backups for the last <N> different months. If there is morethan one backup for a single month, only the latest one is kept.
470
471`--keep-weekly` `<N>` ::
472
473Keep backups for the last <N> different weeks. If there is morethan one backup for a single week, only the latest one is kept.
474
475`--keep-yearly` `<N>` ::
476
477Keep backups for the last <N> different years. If there is morethan one backup for a single year, only the latest one is kept.
478
479`--type` `<lxc | qemu>` ::
480
481Either 'qemu' or 'lxc'. Only consider backups for guests of this type.
482
483`--vmid` `<integer> (1 - N)` ::
484
485Only consider backups for this guest.
486
487*pvesm remove* `<storage>`
488
489Delete storage configuration.
490
491`<storage>`: `<string>` ::
492
493The storage identifier.
494
495*pvesm scan cifs* `<server>` `[OPTIONS]`
496
497Scan remote CIFS server.
498
499`<server>`: `<string>` ::
500
501The server address (name or IP).
502
503`--domain` `<string>` ::
504
505SMB domain (Workgroup).
506
507`--password` `<password>` ::
508
509User password.
510
511`--username` `<string>` ::
512
513User name.
514
515*pvesm scan glusterfs* `<server>`
516
517Scan remote GlusterFS server.
518
519`<server>`: `<string>` ::
520
521The server address (name or IP).
522
523*pvesm scan iscsi* `<portal>`
524
525Scan remote iSCSI server.
526
527`<portal>`: `<string>` ::
528
529The iSCSI portal (IP or DNS name with optional port).
530
531*pvesm scan lvm*
532
533List local LVM volume groups.
534
535*pvesm scan lvmthin* `<vg>`
536
537List local LVM Thin Pools.
538
539`<vg>`: `[a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+` ::
540
541no description available
542
543*pvesm scan nfs* `<server>`
544
545Scan remote NFS server.
546
547`<server>`: `<string>` ::
548
549The server address (name or IP).
550
551*pvesm scan pbs* `<server> <username> --password <string>` `[OPTIONS]` `[FORMAT_OPTIONS]`
552
553Scan remote Proxmox Backup Server.
554
555`<server>`: `<string>` ::
556
557The server address (name or IP).
558
559`<username>`: `<string>` ::
560
561User-name or API token-ID.
562
563`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
564
565Certificate SHA 256 fingerprint.
566
567`--password` `<string>` ::
568
569User password or API token secret.
570
571`--port` `<integer> (1 - 65535)` ('default =' `8007`)::
572
573Optional port.
574
575*pvesm scan zfs*
576
577Scan zfs pool list on local node.
578
579*pvesm set* `<storage>` `[OPTIONS]`
580
581Update storage configuration.
582
583`<storage>`: `<string>` ::
584
585The storage identifier.
586
587`--blocksize` `<string>` ::
588
589block size
590
591`--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
592
593Set I/O bandwidth limit for various operations (in KiB/s).
594
595`--comstar_hg` `<string>` ::
596
597host group for comstar views
598
599`--comstar_tg` `<string>` ::
600
601target group for comstar views
602
603`--content` `<string>` ::
604
605Allowed content types.
606+
607NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
608
609`--content-dirs` `<string>` ::
610
611Overrides for default content type directories.
612
613`--create-base-path` `<boolean>` ('default =' `yes`)::
614
615Create the base directory if it doesn't exist.
616
617`--create-subdirs` `<boolean>` ('default =' `yes`)::
618
619Populate the directory with the default structure.
620
621`--data-pool` `<string>` ::
622
623Data Pool (for erasure coding only)
624
625`--delete` `<string>` ::
626
627A list of settings you want to delete.
628
629`--digest` `<string>` ::
630
631Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
632
633`--disable` `<boolean>` ::
634
635Flag to disable the storage.
636
637`--domain` `<string>` ::
638
639CIFS domain.
640
641`--encryption-key` `a file containing an encryption key, or the special value "autogen"` ::
642
643Encryption key. Use 'autogen' to generate one automatically without passphrase.
644
645`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
646
647Certificate SHA 256 fingerprint.
648
649`--format` `<string>` ::
650
651Default image format.
652
653`--fs-name` `<string>` ::
654
655The Ceph filesystem name.
656
657`--fuse` `<boolean>` ::
658
659Mount CephFS through FUSE.
660
661`--is_mountpoint` `<string>` ('default =' `no`)::
662
663Assume 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.
664
665`--keyring` `file containing the keyring to authenticate in the Ceph cluster` ::
666
667Client keyring contents (for external clusters).
668
669`--krbd` `<boolean>` ::
670
671Always access rbd through krbd kernel module.
672
673`--lio_tpg` `<string>` ::
674
675target portal group for Linux LIO targets
676
677`--master-pubkey` `a file containing a PEM-formatted master public key` ::
678
679Base64-encoded, PEM-formatted public RSA key. Used to encrypt a copy of the encryption-key which will be added to each encrypted backup.
680
681`--max-protected-backups` `<integer> (-1 - N)` ('default =' `Unlimited for users with Datastore.Allocate privilege, 5 for other users`)::
682
683Maximal number of protected backups per guest. Use '-1' for unlimited.
684
685`--maxfiles` `<integer> (0 - N)` ::
686
687Deprecated: use 'prune-backups' instead. Maximal number of backup files per VM. Use '0' for unlimited.
688
689`--mkdir` `<boolean>` ('default =' `yes`)::
690
691Create the directory if it doesn't exist and populate it with default sub-dirs. NOTE: Deprecated, use the 'create-base-path' and 'create-subdirs' options instead.
692
693`--monhost` `<string>` ::
694
695IP addresses of monitors (for external clusters).
696
697`--mountpoint` `<string>` ::
698
699mount point
700
701`--namespace` `<string>` ::
702
703Namespace.
704
705`--nocow` `<boolean>` ('default =' `0`)::
706
707Set the NOCOW flag on files. Disables data checksumming and causes data errors to be unrecoverable from while allowing direct I/O. Only use this if data does not need to be any more safe than on a single ext4 formatted disk with no underlying raid system.
708
709`--nodes` `<string>` ::
710
711List of cluster node names.
712
713`--nowritecache` `<boolean>` ::
714
715disable write caching on the target
716
717`--options` `<string>` ::
718
719NFS/CIFS mount options (see 'man nfs' or 'man mount.cifs')
720
721`--password` `<password>` ::
722
723Password for accessing the share/datastore.
724
725`--pool` `<string>` ::
726
727Pool.
728
729`--port` `<integer> (1 - 65535)` ('default =' `8007`)::
730
731For non default port.
732
733`--preallocation` `<falloc | full | metadata | off>` ('default =' `metadata`)::
734
735Preallocation mode for raw and qcow2 images. Using 'metadata' on raw images results in preallocation=off.
736
737`--prune-backups` `[keep-all=<1|0>] [,keep-daily=<N>] [,keep-hourly=<N>] [,keep-last=<N>] [,keep-monthly=<N>] [,keep-weekly=<N>] [,keep-yearly=<N>]` ::
738
739The 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.
740
741`--saferemove` `<boolean>` ::
742
743Zero-out data when removing LVs.
744
745`--saferemove_throughput` `<string>` ::
746
747Wipe throughput (cstream -t parameter value).
748
749`--server` `<string>` ::
750
751Server IP or DNS name.
752
753`--server2` `<string>` ::
754
755Backup volfile server IP or DNS name.
756+
757NOTE: Requires option(s): `server`
758
759`--shared` `<boolean>` ::
760
761Mark storage as shared.
762
763`--smbversion` `<2.0 | 2.1 | 3 | 3.0 | 3.11 | default>` ('default =' `default`)::
764
765SMB protocol version. 'default' if not set, negotiates the highest SMB2+ version supported by both the client and server.
766
767`--sparse` `<boolean>` ::
768
769use sparse volumes
770
771`--subdir` `<string>` ::
772
773Subdir to mount.
774
775`--tagged_only` `<boolean>` ::
776
777Only use logical volumes tagged with 'pve-vm-ID'.
778
779`--transport` `<rdma | tcp | unix>` ::
780
781Gluster transport: tcp or rdma
782
783`--username` `<string>` ::
784
785RBD Id.
786
787*pvesm status* `[OPTIONS]`
788
789Get status for all datastores.
790
791`--content` `<string>` ::
792
793Only list stores which support this content type.
794
795`--enabled` `<boolean>` ('default =' `0`)::
796
797Only list stores which are enabled (not disabled in config).
798
799`--format` `<boolean>` ('default =' `0`)::
800
801Include information about formats
802
803`--storage` `<string>` ::
804
805Only list status for specified storage
806
807`--target` `<string>` ::
808
809If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node.
810
811*pvesm zfsscan*
812
813An alias for 'pvesm scan zfs'.
814
815