diff options
author | Vu Tran <vu.tran@windriver.com> | 2014-02-28 09:11:05 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-17 14:17:46 -0400 |
commit | 837241fa91dd2d81850526580cd560fb6550c7b8 (patch) | |
tree | d4b38a6958c066a1d557d58a66b20c975bd40053 /meta-openstack/recipes-devtools/python/python-cinder_git.bb | |
parent | a9ae924ad5fcb120ac3338cbef0e7ec8900897a8 (diff) | |
download | meta-cloud-services-837241fa91dd2d81850526580cd560fb6550c7b8.tar.gz |
cinder: lvm backing file size configurable
Allow backing file size for LVM backend driver (for cinder volume
serivce) to be configurable.
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_git.bb')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_git.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index a706223..c1ca58c 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb | |||
@@ -54,6 +54,8 @@ do_install_append() { | |||
54 | cp -r tools ${CINDER_CONF_DIR} | 54 | cp -r tools ${CINDER_CONF_DIR} |
55 | } | 55 | } |
56 | 56 | ||
57 | CINDER_LVM_VOLUME_BACKING_FILE_SIZE ?= "2G" | ||
58 | |||
57 | pkg_postinst_${SRCNAME}-setup () { | 59 | pkg_postinst_${SRCNAME}-setup () { |
58 | if [ "x$D" != "x" ]; then | 60 | if [ "x$D" != "x" ]; then |
59 | exit 1 | 61 | exit 1 |
@@ -69,7 +71,7 @@ pkg_postinst_${SRCNAME}-setup () { | |||
69 | cinder-manage db sync | 71 | cinder-manage db sync |
70 | 72 | ||
71 | #Create cinder volume group backing file | 73 | #Create cinder volume group backing file |
72 | [[ -f /etc/cinder/volumes-backing ]] || truncate -s 2G /etc/cinder/volumes-backing | 74 | [[ -f /etc/cinder/volumes-backing ]] || truncate -s ${CINDER_LVM_VOLUME_BACKING_FILE_SIZE} /etc/cinder/volumes-backing |
73 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf | 75 | echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf |
74 | } | 76 | } |
75 | 77 | ||