Overview

How Should I Read This Chapter

Before performing the operations outlined in this chapter, familiarize with Node Deployment from the Installation guide.

After that, proceed with the specific Datastore documentation you might be interested in.

Datastore Types

Storage in OpenNebula is designed around the concept of datastores. A datastore is any storage medium to store disk images. OpenNebula distinguishes between three different datastore types:

  • Images Datastore, which stores the base operating system images, persistent data volumes, CD-ROMs and File Systems.
  • System Datastore holds disks of running Virtual Machines. Disk are moved from/to the Images when the VMs are deployed/terminated.
  • Files & Kernels Datastore to store plain files (not disk images), e.g. kernels, ramdisks, or contextualization files. See details here.
Overview of Storage Design based on Datastores

Driver Types

Storage portfolio

Use caseDescriptionSharedDisk FormatDisk snapshotsVM snapshotsStorage migrationFault toleranceHVAvailability
Local storageImages stored in frontend* and transferred to hosts via
SSH on instantiation.
noraw/qcow2yesyespoweroff/livenoKVM/LXCEE/CE
NFS/NASImages stored in a NFS share, activated directly.yesraw/qcow2yesyespoweroff/liveyesKVM/LXCEE/CE
CephImages stored in a Ceph pool, activated directly.yesraw (RBD)yesnopoweroffyesKVM/LXCEE/CE
SAN - LVMImages stored as LVs in a SAN, activated directly.yesraw (LV)yesnopoweroffyesKVMEE only
SAN - LVM
(File Mode)
Images stored in frontend*, transferred to hosts via SSH,
and copied to the SAN on instantiation.
yesraw (LV)
Images: raw/qcow2
yes**nopoweroff/liveyesKVMEE/CE
SAN - NetAppImages stored in a NetApp cabin, activated directly.yesraw (LUN)yesnopoweroffyesKVMEE only
FileSystems - VirtioFSImages are filesytem paths available on the hostsyesfilesystems (dir)nononoyesKVMEE/CE

* Additional options available by mounting remote filesystems in the frontend.

** Only with LVM Thin mode enabled.

*** Images stored on the frontend just contain metadata. The filesystems to mount should be present and available on the hosts.

Other storage options

As an admin, restrict the usage of some storage options because these give low-level access to hosts and could become a serious security risk. Please read carefully the corresponding documentation before using them:

Use caseDescriptionSharedDisk FormatDisk snapshotsVM snapshotsLive migrationFault toleranceHVAvailability
Raw Device MappingImages accessed as block devices directly from hosts.yesraw (block)yesnoyesnoKVMEE/CE
SAN - iSCSIImages accessed as iSCSI LUNs directly from hosts.yesraw (volume)yesnoyesyesKVMEE/CE