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