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