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