Configuring Glance with the NFS backend
Glance can use
Network File System (NFS) as a storage backend. Glance does not have an NFS-specific backend store driver. Rather, it uses NFS-mounted directories with the native filesystem store driver. As multiple NFS shares cannot be mounted on a single directory, Glance can use the multiple datadir
stores option to use several NFS shares. We can specify corresponding priority for each share. While creating new disk images, Glance chooses the location of the new image, based on the priority of the datadir store and the capacity of the share. If several shares have the same priority, the share with maximum available free space is chosen.
Getting ready
Before configuring Glance with multiple datadir stores, we need to make sure that the Database, message broker, and Keystone are set for Glance, and both glance-api.conf
and glance-registory.conf
are configured correctly to use them.
We also need to make sure that the NFS shares we want to use as Glance...