diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/cinder-volume')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/cinder-volume | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume index 51bbac9..3cc2aa3 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder-volume | |||
| @@ -29,15 +29,8 @@ start() | |||
| 29 | fi | 29 | fi |
| 30 | fi | 30 | fi |
| 31 | 31 | ||
| 32 | #Load volume group | 32 | #Load volume group |
| 33 | DEV=`losetup -j /etc/cinder/volumes-backing | cut -d ":" -f 1 | head -1` | 33 | /bin/bash /etc/cinder/drivers/lvm_iscsi_setup.sh |
| 34 | if [ -z $DEV ]; then | ||
| 35 | DEV=`losetup -f --show /etc/cinder/volumes-backing` | ||
| 36 | fi | ||
| 37 | if ! vgs cinder-volumes &> /dev/null ; then | ||
| 38 | vgcreate cinder-volumes $DEV | ||
| 39 | fi | ||
| 40 | vgchange -ay cinder-volumes | ||
| 41 | 34 | ||
| 42 | echo -n "Starting $DESC..." | 35 | echo -n "Starting $DESC..." |
| 43 | 36 | ||
