Virsh pool-define-as: Difference between revisions

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


=Overview=
=Overview=
Create, but do not start, a [Linux_Virtualization_Concepts#Storage_Pool|storage pool]].


<pre>
<pre>
Line 11: Line 13:
where:
where:


====name===
====name====
 
The name of the storage pool.


====type====
====type====
Line 21: Line 25:
====-target====
====-target====


Examples:
=Examples=


<pre>
<pre>
virsh pool-define-as main-storage-pool fs --source-dev /dev/sda7 --target /main-storage-pool
virsh pool-define-as main-storage-pool fs --source-dev /dev/sda7 --target /main-storage-pool
</pre>
</pre>

Revision as of 15:18, 26 June 2017

Internal

Overview

Create, but do not start, a [Linux_Virtualization_Concepts#Storage_Pool|storage pool]].

virsh pool-define-as <name> <type> --source-dev <source-dev> --target <target>

where:

name

The name of the storage pool.

type

can be one of: "dir", "disk", "fs", "logical", "iscsi", "zfs", "sheepdog", "gluster", "netfs", "ceph", "rbd",

-source-dev

-target

Examples

virsh pool-define-as main-storage-pool fs --source-dev /dev/sda7 --target /main-storage-pool