Storage pools

Alternatively, you can configure storage pools, leaving the resource management of step 1 to libvirt. A storage pool consists of a set of volumes, such as
  • The image files of a host directory
  • The image files residing on a disk or the partition of a disk
  • The image files residing on a network file system
  • The logical volumes of a volume group

A live virtual server migration is only possible for storage pools backed by image files residing on a network file system.

Figure 1 shows a storage pool backed by the image files of a directory:
Figure 1. Storage pool backed by the image files of a directory


Figure 2 shows a storage pool backed by the logical volumes of a volume group:
Figure 2. Storage pool backed by the logical volumes of a volume group


To provide the volumes of a storage pool as virtual block devices for a virtual server:
  1. Create the resources which back the storage pool.
  2. Make resources backing the volumes accessible for the virtual server.
  3. Configure the storage pool including its volumes.

    See Configuring storage pools.

  4. Configure volumes as virtual storage devices for the virtual server.

    See Configuring a volume as storage device.

    Figure 3 shows a storage pool backed by a host directory. The volumes of the storage pool are configured as virtual block devices of different virtual servers:
    Figure 3. Storage pool volumes configured as virtual block devices


  5. Define and start the storage pool before defining the virtual server.

    Manage the storage pool and its volumes by using the commands described in Managing storage pools.