There is a volume back-end for Samba filesystems. Set the following in your cinder.conf file, and use the following options to configure it.
Note
The SambaFS driver requires qemu-img version 1.7 or higher on Linux nodes, and qemu-img version 1.6 or higher on Windows nodes.
volume_driver = cinder.volume.drivers.smbfs.SmbfsDriver
Configuration option = Default value | Description |
---|---|
[DEFAULT] | |
smbfs_allocation_info_file_path = $state_path/allocation_data | (String) The path of the automatically generated file containing information about volume disk space allocation. |
smbfs_default_volume_format = qcow2 | (String) Default format that will be used when creating volumes if no volume format is specified. |
smbfs_mount_options = noperm,file_mode=0775,dir_mode=0775 | (String) Mount options passed to the smbfs client. See mount.cifs man page for details. |
smbfs_mount_point_base = $state_path/mnt | (String) Base dir containing mount points for smbfs shares. |
smbfs_oversub_ratio = 1.0 | (Floating point) 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. |
smbfs_shares_config = /etc/cinder/smbfs_shares | (String) File with the list of available smbfs shares. |
smbfs_sparsed_volumes = True | (Boolean) Create volumes as sparsed files which take no space rather than regular files when using raw format, in which case volume creation takes lot of time. |
smbfs_used_ratio = 0.95 | (Floating point) Percent of ACTUAL usage of the underlying volume before no new volumes can be allocated to the volume destination. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.