To use Compute with the Nexenta NFS driver, first
set the volume_driver
:
volume_driver = cinder.volume.drivers.nexenta.nfs.NexentaNfsDriver
The following table contains the options supported by the Nexenta NFS driver.
Configuration option=Default value | Description |
nexenta_mount_options=None | (StrOpt) Mount options passed to the nfs client. See section of the nfs man page for details |
nexenta_mount_point_base=$state_path/mnt | (StrOpt) Base dir containing mount points for nfs shares |
nexenta_oversub_ratio=1.0 | (FloatOpt) This will compare the allocated to available space on the volume destination. If the ratio exceeds this number, the destination will no longer be valid. |
nexenta_shares_config=/etc/cinder/nfs_shares | (StrOpt) File with the list of available nfs shares |
nexenta_sparsed_volumes=True | (BoolOpt) Create volumes as sparsed files which take no space.If set to False volume is created as regular file.In such case volume creation takes a lot of time. |
nexenta_used_ratio=0.95 | (FloatOpt) Percent of ACTUAL usage of the underlying volume before no new volumes can be allocated to the volume destination. |
nexenta_volume_compression=on | (StrOpt) Default compression value for new ZFS folders. |
Add your list of Nexenta NFS servers to the file you
specified with the nexenta_shares_config
option. For example, if the value of this option was
set to /etc/cinder/nfs_shares
,
then:
# cat /etc/cinder/nfs_shares 192.168.1.200:/storage http://admin:[email protected]:2000 192.168.1.201:/storage http://admin:[email protected]:2000 192.168.1.202:/storage http://admin:[email protected]:2000
Comments are allowed in this file. They begin with a
#
.
Each line in this file represents a NFS share. The first part of the line is the NFS share URL, the second is the connection URL to the NexentaStor Appliance.