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