Virsh vol-create-as: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 20: Line 20:


Acceptable format types: "raw", "bochs", "qcow", "qcow2", "qed", "host_device", and "vmdk". These are, however, only meant for file based storage pools. By default the qcow version that is used is version 3.
Acceptable format types: "raw", "bochs", "qcow", "qcow2", "qed", "host_device", and "vmdk". These are, however, only meant for file based storage pools. By default the qcow version that is used is version 3.
=Example=
<pre>
virsh vol-create-as --pool  main-storage-pool --name test-volume --capacity 1G
</pre>

Revision as of 17:09, 26 June 2017

External

Internal

Overview

virsh vol-create-as --pool <pool-name> --name <volume-name> --capacity <capacity> --format <fomat>

--capacity

Use the following suffixes: 'b', 'k', 'M', 'G', 'T'.

--format

Acceptable format types: "raw", "bochs", "qcow", "qcow2", "qed", "host_device", and "vmdk". These are, however, only meant for file based storage pools. By default the qcow version that is used is version 3.


Example

virsh vol-create-as --pool  main-storage-pool --name test-volume --capacity 1G