Virsh pool-define-as

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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",

-source-dev

-target

Examples

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