diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-02-28 09:11:12 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-17 14:24:31 -0400 |
| commit | 2c14cdfb9c34c541a1b3a180ad2a625514300977 (patch) | |
| tree | c4ff7eed6df633a503b9a1c5a7884ca85f3c4534 /meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh | |
| parent | b7527a3c0b5ab0849a0c669cb345c6494628da8f (diff) | |
| download | meta-cloud-services-2c14cdfb9c34c541a1b3a180ad2a625514300977.tar.gz | |
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 <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
| 1 | #! /bin/bash | ||
| 2 | |||
| 3 | # Default setup | ||
| 4 | if [ "$1" == "1" ]; then | ||
| 5 | mkdir /etc/cinder/glusterfs_volumes | ||
| 6 | /etc/init.d/glusterd start | ||
| 7 | gluster volume create glusterfs_volumes controller:/etc/cinder/glusterfs_volumes force | ||
| 8 | gluster volume start glusterfs_volumes force | ||
| 9 | /etc/init.d/glusterd stop | ||
| 10 | fi | ||
