]> git.proxmox.com Git - pve-docs.git/blame - pvesm.1-synopsis.adoc
bump version to 5.0-5
[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
013dc89f 7`<type>`: `<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
013dc89f 15`-authsupported` `<string>` ::
1f554f76
DM
16
17Authsupported.
18
013dc89f 19`-base` `<string>` ::
1f554f76
DM
20
21Base volume. This volume is automatically activated.
22
013dc89f 23`-blocksize` `<string>` ::
1f554f76
DM
24
25block size
26
013dc89f 27`-comstar_hg` `<string>` ::
1f554f76
DM
28
29host group for comstar views
30
013dc89f 31`-comstar_tg` `<string>` ::
1f554f76
DM
32
33target group for comstar views
34
013dc89f 35`-content` `<string>` ::
1f554f76 36
04ce4dfa
DM
37Allowed content types.
38+
c2993fe5 39NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
1f554f76 40
013dc89f 41`-disable` `<boolean>` ::
1f554f76
DM
42
43Flag to disable the storage.
44
013dc89f 45`-export` `<string>` ::
1f554f76
DM
46
47NFS export path.
48
013dc89f 49`-format` `<string>` ::
1f554f76 50
04ce4dfa 51Default image format.
1f554f76 52
013dc89f 53`-is_mountpoint` `<boolean>` ('default =' `no`)::
2c0dde61
DM
54
55Assume the directory is an externally managed mountpoint. If nothing is mounted the storage will be considered offline.
56
013dc89f 57`-iscsiprovider` `<string>` ::
1f554f76
DM
58
59iscsi provider
60
013dc89f 61`-krbd` `<boolean>` ::
1f554f76
DM
62
63Access rbd through krbd kernel module.
64
013dc89f 65`-maxfiles` `<integer> (0 - N)` ::
1f554f76
DM
66
67Maximal number of backup files per VM. Use '0' for unlimted.
68
013dc89f 69`-mkdir` `<boolean>` ('default =' `yes`)::
2c0dde61
DM
70
71Create the directory if it doesn't exist.
72
013dc89f 73`-monhost` `<string>` ::
1f554f76
DM
74
75Monitors daemon ips.
76
013dc89f 77`-nodes` `<string>` ::
1f554f76
DM
78
79List of cluster node names.
80
013dc89f 81`-nowritecache` `<boolean>` ::
1f554f76
DM
82
83disable write caching on the target
84
013dc89f 85`-options` `<string>` ::
1f554f76
DM
86
87NFS mount options (see 'man nfs')
88
013dc89f 89`-path` `<string>` ::
1f554f76
DM
90
91File system path.
92
013dc89f 93`-pool` `<string>` ::
1f554f76
DM
94
95Pool.
96
013dc89f 97`-portal` `<string>` ::
1f554f76
DM
98
99iSCSI portal (IP or DNS name with optional port).
100
013dc89f 101`-redundancy` `<integer> (1 - 16)` ('default =' `2`)::
1f554f76 102
c2993fe5 103The 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 104
013dc89f 105`-saferemove` `<boolean>` ::
1f554f76
DM
106
107Zero-out data when removing LVs.
108
013dc89f 109`-saferemove_throughput` `<string>` ::
1f554f76
DM
110
111Wipe throughput (cstream -t parameter value).
112
013dc89f 113`-server` `<string>` ::
1f554f76
DM
114
115Server IP or DNS name.
116
013dc89f 117`-server2` `<string>` ::
1f554f76
DM
118
119Backup volfile server IP or DNS name.
120+
121NOTE: Requires option(s): `server`
122
013dc89f 123`-shared` `<boolean>` ::
1f554f76
DM
124
125Mark storage as shared.
126
013dc89f 127`-sparse` `<boolean>` ::
1f554f76
DM
128
129use sparse volumes
130
013dc89f 131`-tagged_only` `<boolean>` ::
2c0dde61
DM
132
133Only use logical volumes tagged with 'pve-vm-ID'.
134
013dc89f 135`-target` `<string>` ::
1f554f76
DM
136
137iSCSI target.
138
013dc89f 139`-thinpool` `<string>` ::
1f554f76
DM
140
141LVM thin pool LV name.
142
013dc89f 143`-transport` `<rdma | tcp | unix>` ::
1f554f76
DM
144
145Gluster transport: tcp or rdma
146
013dc89f 147`-username` `<string>` ::
1f554f76
DM
148
149RBD Id.
150
013dc89f 151`-vgname` `<string>` ::
1f554f76
DM
152
153Volume group name.
154
013dc89f 155`-volume` `<string>` ::
1f554f76
DM
156
157Glusterfs Volume.
158
159
160
161
162*pvesm alloc* `<storage> <vmid> <filename> <size>` `[OPTIONS]`
163
164Allocate disk images.
165
013dc89f 166`<storage>`: `<string>` ::
1f554f76
DM
167
168The storage identifier.
169
013dc89f 170`<vmid>`: `<integer> (1 - N)` ::
1f554f76
DM
171
172Specify owner VM
173
013dc89f 174`<filename>`: `<string>` ::
1f554f76
DM
175
176The name of the file to create.
177
013dc89f 178`<size>`: `\d+[MG]?` ::
1f554f76 179
c2993fe5 180Size in kilobyte (1024 bytes). Optional suffixes 'M' (megabyte, 1024K) and 'G' (gigabyte, 1024M)
1f554f76 181
013dc89f 182`-format` `<qcow2 | raw | subvol>` ::
1f554f76
DM
183
184no description available
185+
186NOTE: Requires option(s): `size`
187
188
189
2c0dde61 190
5d9c884c
DM
191*pvesm export* `<volume> <format> <filename>` `[OPTIONS]`
192
193Export a volume.
194
195`<volume>`: `<string>` ::
196
197Volume identifier
198
199`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
200
201Export stream format
202
203`<filename>`: `<string>` ::
204
205Destination file name
206
207`-base` `(?^:[a-z0-9_\-]{1,40})` ::
208
209Snapshot to start an incremental stream from
210
211`-snapshot` `(?^:[a-z0-9_\-]{1,40})` ::
212
213Snapshot to export
214
215`-with-snapshots` `<boolean>` ('default =' `0`)::
216
217Whether to include intermediate snapshots in the stream
218
219
220
2c0dde61
DM
221*pvesm extractconfig* `<volume>`
222
223Extract configuration from vzdump backup archive.
224
013dc89f 225`<volume>`: `<string>` ::
2c0dde61
DM
226
227Volume identifier
228
229
230
231
1f554f76
DM
232*pvesm free* `<volume>` `[OPTIONS]`
233
234Delete volume
235
013dc89f 236`<volume>`: `<string>` ::
1f554f76
DM
237
238Volume identifier
239
013dc89f 240`-storage` `<string>` ::
1f554f76
DM
241
242The storage identifier.
243
244
245
246
247*pvesm glusterfsscan* `<server>`
248
249Scan remote GlusterFS server.
250
013dc89f 251`<server>`: `<string>` ::
1f554f76
DM
252
253no description available
254
255
256
257
258*pvesm help* `[<cmd>]` `[OPTIONS]`
259
260Get help about specified command.
261
013dc89f 262`<cmd>`: `<string>` ::
1f554f76
DM
263
264Command name
265
013dc89f 266`-verbose` `<boolean>` ::
1f554f76
DM
267
268Verbose output format.
269
270
271
272
5d9c884c
DM
273*pvesm import* `<volume> <format> <filename>` `[OPTIONS]`
274
275Import a volume.
276
277`<volume>`: `<string>` ::
278
279Volume identifier
280
281`<format>`: `<qcow2+size | raw+size | tar+size | vmdk+size | zfs>` ::
282
283Import stream format
284
285`<filename>`: `<string>` ::
286
287Source file name
288
289`-base` `(?^:[a-z0-9_\-]{1,40})` ::
290
291Base snapshot of an incremental stream
292
293`-delete-snapshot` `(?^:[a-z0-9_\-]{1,80})` ::
294
295A snapshot to delete on success
296
297`-with-snapshots` `<boolean>` ('default =' `0`)::
298
299Whether the stream includes intermediate snapshots
300
301
302
303
1f554f76
DM
304*pvesm iscsiscan* `-portal <string>` `[OPTIONS]`
305
306Scan remote iSCSI server.
307
013dc89f 308`-portal` `<string>` ::
1f554f76
DM
309
310no description available
311
312
313
314
315*pvesm list* `<storage>` `[OPTIONS]`
316
317List storage content.
318
013dc89f 319`<storage>`: `<string>` ::
1f554f76
DM
320
321The storage identifier.
322
013dc89f 323`-content` `<string>` ::
1f554f76
DM
324
325Only list content of this type.
326
013dc89f 327`-vmid` `<integer> (1 - N)` ::
1f554f76
DM
328
329Only list images for this VM
330
331
332
333
334*pvesm lvmscan*
335
336List local LVM volume groups.
337
338
339
9b3e4991
DM
340*pvesm lvmthinscan* `<vg>`
341
342List local LVM Thin Pools.
343
013dc89f 344`<vg>`: `[a-zA-Z0-9\.\+\_][a-zA-Z0-9\.\+\_\-]+` ::
9b3e4991
DM
345
346no description available
347
348
349
1f554f76
DM
350*pvesm nfsscan* `<server>`
351
352Scan remote NFS server.
353
013dc89f 354`<server>`: `<string>` ::
1f554f76
DM
355
356no description available
357
358
359
360
361*pvesm path* `<volume>`
362
363Get filesystem path for specified volume
364
013dc89f 365`<volume>`: `<string>` ::
1f554f76
DM
366
367Volume identifier
368
369
370
371
372*pvesm remove* `<storage>`
373
374Delete storage configuration.
375
013dc89f 376`<storage>`: `<string>` ::
1f554f76
DM
377
378The storage identifier.
379
380
381
382*pvesm set* `<storage>` `[OPTIONS]`
383
384Update storage configuration.
385
013dc89f 386`<storage>`: `<string>` ::
1f554f76
DM
387
388The storage identifier.
389
013dc89f 390`-blocksize` `<string>` ::
1f554f76
DM
391
392block size
393
013dc89f 394`-comstar_hg` `<string>` ::
1f554f76
DM
395
396host group for comstar views
397
013dc89f 398`-comstar_tg` `<string>` ::
1f554f76
DM
399
400target group for comstar views
401
013dc89f 402`-content` `<string>` ::
1f554f76 403
04ce4dfa
DM
404Allowed content types.
405+
c2993fe5 406NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs.
1f554f76 407
013dc89f 408`-delete` `<string>` ::
1f554f76
DM
409
410A list of settings you want to delete.
411
013dc89f 412`-digest` `<string>` ::
1f554f76 413
c2993fe5 414Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
1f554f76 415
013dc89f 416`-disable` `<boolean>` ::
1f554f76
DM
417
418Flag to disable the storage.
419
013dc89f 420`-format` `<string>` ::
1f554f76 421
04ce4dfa 422Default image format.
1f554f76 423
013dc89f 424`-is_mountpoint` `<boolean>` ('default =' `no`)::
2c0dde61
DM
425
426Assume the directory is an externally managed mountpoint. If nothing is mounted the storage will be considered offline.
427
013dc89f 428`-krbd` `<boolean>` ::
1f554f76
DM
429
430Access rbd through krbd kernel module.
431
013dc89f 432`-maxfiles` `<integer> (0 - N)` ::
1f554f76
DM
433
434Maximal number of backup files per VM. Use '0' for unlimted.
435
013dc89f 436`-mkdir` `<boolean>` ('default =' `yes`)::
2c0dde61
DM
437
438Create the directory if it doesn't exist.
439
013dc89f 440`-nodes` `<string>` ::
1f554f76
DM
441
442List of cluster node names.
443
013dc89f 444`-nowritecache` `<boolean>` ::
1f554f76
DM
445
446disable write caching on the target
447
013dc89f 448`-options` `<string>` ::
1f554f76
DM
449
450NFS mount options (see 'man nfs')
451
013dc89f 452`-pool` `<string>` ::
1f554f76
DM
453
454Pool.
455
013dc89f 456`-redundancy` `<integer> (1 - 16)` ('default =' `2`)::
1f554f76 457
c2993fe5 458The 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 459
013dc89f 460`-saferemove` `<boolean>` ::
1f554f76
DM
461
462Zero-out data when removing LVs.
463
013dc89f 464`-saferemove_throughput` `<string>` ::
1f554f76
DM
465
466Wipe throughput (cstream -t parameter value).
467
013dc89f 468`-server` `<string>` ::
1f554f76
DM
469
470Server IP or DNS name.
471
013dc89f 472`-server2` `<string>` ::
1f554f76
DM
473
474Backup volfile server IP or DNS name.
475+
476NOTE: Requires option(s): `server`
477
013dc89f 478`-shared` `<boolean>` ::
1f554f76
DM
479
480Mark storage as shared.
481
013dc89f 482`-sparse` `<boolean>` ::
1f554f76
DM
483
484use sparse volumes
485
013dc89f 486`-tagged_only` `<boolean>` ::
2c0dde61
DM
487
488Only use logical volumes tagged with 'pve-vm-ID'.
489
013dc89f 490`-transport` `<rdma | tcp | unix>` ::
1f554f76
DM
491
492Gluster transport: tcp or rdma
493
013dc89f 494`-username` `<string>` ::
1f554f76
DM
495
496RBD Id.
497
498
499
500
501*pvesm status* `[OPTIONS]`
502
503Get status for all datastores.
504
013dc89f 505`-content` `<string>` ::
1f554f76
DM
506
507Only list stores which support this content type.
508
013dc89f 509`-enabled` `<boolean>` ('default =' `0`)::
1f554f76
DM
510
511Only list stores which are enabled (not disabled in config).
512
013dc89f 513`-storage` `<string>` ::
1f554f76
DM
514
515Only list status for specified storage
516
013dc89f 517`-target` `<string>` ::
1f554f76 518
c2993fe5 519If target is different to 'node', we only lists shared storages which content is accessible on this 'node' and the specified 'target' node.
1f554f76
DM
520
521
522
523
524*pvesm zfsscan*
525
526Scan zfs pool list on local node.
527
528
529
530