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