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