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