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