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