Virsh pool-define-as: Difference between revisions

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


When using "pool-create-as" for a pool of type "disk", the existing partitions found on the [[#--source-dev|--source-dev]] path will be used to populate the disk pool.
When using "pool-create-as" for a pool of type "disk", the existing partitions found on the [[#--source-dev|--source-dev]] path will be used to populate the disk pool.
====--print-xml====
If specified, the command will print the XML of the pool object without defining the pool.


====--source-dev====
====--source-dev====

Revision as of 15:22, 26 June 2017

Internal

Overview

Create, but do not start, a 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",

When using "pool-create-as" for a pool of type "disk", the existing partitions found on the --source-dev path will be used to populate the disk pool.

--print-xml

If specified, the command will print the XML of the pool object without defining the pool.

--source-dev

--target

Examples

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