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