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