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