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 |
---|---|
[DEFAULT] | |
nexenta_mount_point_base = $state_path/mnt | (StrOpt) Base directory that contains NFS share mount points |
nexenta_nms_cache_volroot = True | (BoolOpt) If set True cache NexentaStor appliance volroot option value. |
nexenta_shares_config = /etc/cinder/nfs_shares | (StrOpt) File with the list of available nfs shares |
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:nexenta@192.168.1.200:2000 192.168.1.201:/storage http://admin:nexenta@192.168.1.201:2000 192.168.1.202:/storage http://admin:nexenta@192.168.1.202: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.