]> git.proxmox.com Git - pve-docs.git/blame - pvesm.1-synopsis.adoc
more ACME documentation
[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
27a7acb2 7`<type>`: `<cifs | dir | drbd | glusterfs | iscsi | iscsidirect | lvm | lvmthin | nfs | rbd | sheepdog | 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
2489d6df 61`--is_mountpoint` `<string>` ('default =' `no`)::
2c0dde61 62
2489d6df 63Assume 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 64
2489d6df 65`--iscsiprovider` `<string>` ::
1f554f76
DM
66
67iscsi provider
68
2489d6df 69`--krbd` `<boolean>` ::
1f554f76
DM
70
71Access rbd through krbd kernel module.
72
2489d6df 73`--maxfiles` `<integer> (0 - N)` ::
1f554f76
DM
74
75Maximal number of backup files per VM. Use '0' for unlimted.
76
2489d6df 77`--mkdir` `<boolean>` ('default =' `yes`)::
2c0dde61
DM
78
79Create the directory if it doesn't exist.
80
2489d6df 81`--monhost` `<string>` ::
1f554f76 82
2489d6df 83IP addresses of monitors (for external clusters).
1f554f76 84
2489d6df 85`--nodes` `<string>` ::
1f554f76
DM
86
87List of cluster node names.
88
2489d6df 89`--nowritecache` `<boolean>` ::
1f554f76
DM
90
91disable write caching on the target
92
2489d6df 93`--options` `<string>` ::
1f554f76
DM
94
95NFS mount options (see 'man nfs')
96
27a7acb2
DM
97`--password` ::
98
99Password for CIFS share.
100
2489d6df 101`--path` `<string>` ::
1f554f76
DM
102
103File system path.
104
2489d6df 105`--pool` `<string>` ::
1f554f76
DM
106
107Pool.
108
2489d6df 109`--portal` `<string>` ::
1f554f76
DM
110
111iSCSI portal (IP or DNS name with optional port).
112
2489d6df 113`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
1f554f76 114
c2993fe5 115The 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 116
2489d6df 117`--saferemove` `<boolean>` ::
1f554f76
DM
118
119Zero-out data when removing LVs.
120
2489d6df 121`--saferemove_throughput` `<string>` ::
1f554f76
DM
122
123Wipe throughput (cstream -t parameter value).
124
2489d6df 125`--server` `<string>` ::
1f554f76
DM
126
127Server IP or DNS name.
128
2489d6df 129`--server2` `<string>` ::
1f554f76
DM
130
131Backup volfile server IP or DNS name.
132+
133NOTE: Requires option(s): `server`
134
27a7acb2
DM
135`--share` `<string>` ::
136
137CIFS share.
138
2489d6df 139`--shared` `<boolean>` ::
1f554f76
DM
140
141Mark storage as shared.
142
27a7acb2
DM
143`--smbversion` `<string>` ::
144
145no description available
146
2489d6df 147`--sparse` `<boolean>` ::
1f554f76
DM
148
149use sparse volumes
150
2489d6df 151`--tagged_only` `<boolean>` ::
2c0dde61
DM
152
153Only use logical volumes tagged with 'pve-vm-ID'.
154
2489d6df 155`--target` `<string>` ::
1f554f76
DM
156
157iSCSI target.
158
2489d6df 159`--thinpool` `<string>` ::
1f554f76
DM
160
161LVM thin pool LV name.
162
2489d6df 163`--transport` `<rdma | tcp | unix>` ::
1f554f76
DM
164
165Gluster transport: tcp or rdma
166
2489d6df 167`--username` `<string>` ::
1f554f76
DM
168
169RBD Id.
170
2489d6df 171`--vgname` `<string>` ::
1f554f76
DM
172
173Volume group name.
174
2489d6df 175`--volume` `<string>` ::
1f554f76
DM
176
177Glusterfs Volume.
178
1f554f76
DM
179*pvesm alloc* `<storage> <vmid> <filename> <size>` `[OPTIONS]`
180
181Allocate disk images.
182
013dc89f 183`<storage>`: `<string>` ::
1f554f76
DM
184
185The storage identifier.
186
013dc89f 187`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
188
189Specify owner VM
190
013dc89f 191`<filename>`: `<string>` ::
1f554f76
DM
192
193The name of the file to create.
194
013dc89f 195`<size>`: `\d+[MG]?` ::
1f554f76 196
c2993fe5 197Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)
1f554f76 198
2489d6df 199`--format` `<qcow2 | raw | subvol>` ::
1f554f76
DM
200
201no description available
202+
203NOTE: Requires option(s): `size`
204
27a7acb2
DM
205*pvesm cifsscan* `<server>` `[OPTIONS]`
206
207Scan remote CIFS server.
208
209`<server>`: `<string>` ::
210
211no description available
212
213`--domain` `<string>` ::
214
215no description available
216
217`--password` ::
218
219no description available
220
221`--username` `<string>` ::
222
223no description available
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
2489d6df 269`--storage` `<string>` ::
1f554f76
DM
270
271The storage identifier.
272
1f554f76
DM
273*pvesm glusterfsscan* `<server>`
274
275Scan remote GlusterFS server.
276
013dc89f 277`<server>`: `<string>` ::
1f554f76
DM
278
279no description available
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
307Source file name
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
2489d6df 321*pvesm iscsiscan* `--portal <string>` `[OPTIONS]`
1f554f76
DM
322
323Scan remote iSCSI server.
324
2489d6df 325`--portal` `<string>` ::
1f554f76
DM
326
327no description available
328
1f554f76
DM
329*pvesm list* `<storage>` `[OPTIONS]`
330
331List storage content.
332
013dc89f 333`<storage>`: `<string>` ::
1f554f76
DM
334
335The storage identifier.
336
2489d6df 337`--content` `<string>` ::
1f554f76
DM
338
339Only list content of this type.
340
2489d6df 341`--vmid` `<integer> (1 - N)` ::
1f554f76
DM
342
343Only list images for this VM
344
1f554f76
DM
345*pvesm lvmscan*
346
347List local LVM volume groups.
348
9b3e4991
DM
349*pvesm lvmthinscan* `<vg>`
350
351List local LVM Thin Pools.
352
013dc89f 353`<vg>`: `[a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+` ::
9b3e4991
DM
354
355no description available
356
1f554f76
DM
357*pvesm nfsscan* `<server>`
358
359Scan remote NFS server.
360
013dc89f 361`<server>`: `<string>` ::
1f554f76
DM
362
363no description available
364
1f554f76
DM
365*pvesm path* `<volume>`
366
367Get filesystem path for specified volume
368
013dc89f 369`<volume>`: `<string>` ::
1f554f76
DM
370
371Volume identifier
372
1f554f76
DM
373*pvesm remove* `<storage>`
374
375Delete storage configuration.
376
013dc89f 377`<storage>`: `<string>` ::
1f554f76
DM
378
379The storage identifier.
380
1f554f76
DM
381*pvesm set* `<storage>` `[OPTIONS]`
382
383Update storage configuration.
384
013dc89f 385`<storage>`: `<string>` ::
1f554f76
DM
386
387The storage identifier.
388
2489d6df 389`--blocksize` `<string>` ::
1f554f76
DM
390
391block size
392
27a7acb2
DM
393`--bwlimit` `[clone=<LIMIT>] [,default=<LIMIT>] [,migration=<LIMIT>] [,move=<LIMIT>] [,restore=<LIMIT>]` ::
394
395Set bandwidth/io limits various operations.
396
2489d6df 397`--comstar_hg` `<string>` ::
1f554f76
DM
398
399host group for comstar views
400
2489d6df 401`--comstar_tg` `<string>` ::
1f554f76
DM
402
403target group for comstar views
404
2489d6df 405`--content` `<string>` ::
1f554f76 406
04ce4dfa
DM
407Allowed content types.
408+
c2993fe5 409NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
1f554f76 410
2489d6df 411`--delete` `<string>` ::
1f554f76
DM
412
413A list of settings you want to delete.
414
2489d6df 415`--digest` `<string>` ::
1f554f76 416
c2993fe5 417Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 418
2489d6df 419`--disable` `<boolean>` ::
1f554f76
DM
420
421Flag to disable the storage.
422
27a7acb2
DM
423`--domain` `<string>` ::
424
425CIFS domain.
426
2489d6df 427`--format` `<string>` ::
1f554f76 428
04ce4dfa 429Default image format.
1f554f76 430
2489d6df 431`--is_mountpoint` `<string>` ('default =' `no`)::
2c0dde61 432
2489d6df 433Assume 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 434
2489d6df 435`--krbd` `<boolean>` ::
1f554f76
DM
436
437Access rbd through krbd kernel module.
438
2489d6df 439`--maxfiles` `<integer> (0 - N)` ::
1f554f76
DM
440
441Maximal number of backup files per VM. Use '0' for unlimted.
442
2489d6df 443`--mkdir` `<boolean>` ('default =' `yes`)::
2c0dde61
DM
444
445Create the directory if it doesn't exist.
446
2489d6df
WB
447`--monhost` `<string>` ::
448
449IP addresses of monitors (for external clusters).
450
451`--nodes` `<string>` ::
1f554f76
DM
452
453List of cluster node names.
454
2489d6df 455`--nowritecache` `<boolean>` ::
1f554f76
DM
456
457disable write caching on the target
458
2489d6df 459`--options` `<string>` ::
1f554f76
DM
460
461NFS mount options (see 'man nfs')
462
27a7acb2
DM
463`--password` ::
464
465Password for CIFS share.
466
2489d6df 467`--pool` `<string>` ::
1f554f76
DM
468
469Pool.
470
2489d6df 471`--redundancy` `<integer> (1 - 16)` ('default =' `2`)::
1f554f76 472
c2993fe5 473The 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 474
2489d6df 475`--saferemove` `<boolean>` ::
1f554f76
DM
476
477Zero-out data when removing LVs.
478
2489d6df 479`--saferemove_throughput` `<string>` ::
1f554f76
DM
480
481Wipe throughput (cstream -t parameter value).
482
2489d6df 483`--server` `<string>` ::
1f554f76
DM
484
485Server IP or DNS name.
486
2489d6df 487`--server2` `<string>` ::
1f554f76
DM
488
489Backup volfile server IP or DNS name.
490+
491NOTE: Requires option(s): `server`
492
2489d6df 493`--shared` `<boolean>` ::
1f554f76
DM
494
495Mark storage as shared.
496
27a7acb2
DM
497`--smbversion` `<string>` ::
498
499no description available
500
2489d6df 501`--sparse` `<boolean>` ::
1f554f76
DM
502
503use sparse volumes
504
2489d6df 505`--tagged_only` `<boolean>` ::
2c0dde61
DM
506
507Only use logical volumes tagged with 'pve-vm-ID'.
508
2489d6df 509`--transport` `<rdma | tcp | unix>` ::
1f554f76
DM
510
511Gluster transport: tcp or rdma
512
2489d6df 513`--username` `<string>` ::
1f554f76
DM
514
515RBD Id.
516
1f554f76
DM
517*pvesm status* `[OPTIONS]`
518
519Get status for all datastores.
520
2489d6df 521`--content` `<string>` ::
1f554f76
DM
522
523Only list stores which support this content type.
524
2489d6df 525`--enabled` `<boolean>` ('default =' `0`)::
1f554f76
DM
526
527Only list stores which are enabled (not disabled in config).
528
35a75dd3
DM
529`--format` `<boolean>` ('default =' `0`)::
530
531Include information about formats
532
2489d6df 533`--storage` `<string>` ::
1f554f76
DM
534
535Only list status for specified storage
536
2489d6df 537`--target` `<string>` ::
1f554f76 538
c2993fe5 539If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node.
1f554f76 540
1f554f76
DM
541*pvesm zfsscan*
542
543Scan zfs pool list on local node.
544
545