From 2c14cdfb9c34c541a1b3a180ad2a625514300977 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Fri, 28 Feb 2014 09:11:12 -0500 Subject: cinder: enable glusterfs backend This patch adds glusterfs backend into multi-backend cinder support (total of lvm-iscsi, nfs, and glusterfs). This including changing cinder.conf, creating missing glusterfs_shares config file, and adding glusterfs-client into compute/controller node and gluster-server into controller node. Also meta-filesystems is included to pickup fuse filesytem which is needed by glusterfs. Signed-off-by: Vu Tran Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-cinder/glusterfs_setup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh (limited to 'meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh') diff --git a/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh new file mode 100644 index 0000000..30997d1 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +# Default setup +if [ "$1" == "1" ]; then + mkdir /etc/cinder/glusterfs_volumes + /etc/init.d/glusterd start + gluster volume create glusterfs_volumes controller:/etc/cinder/glusterfs_volumes force + gluster volume start glusterfs_volumes force + /etc/init.d/glusterd stop +fi -- cgit v1.2.3-54-g00ecf