Merge pull request #162 from cloudbuilders/volpath
Use $DEST for volume backing file.
This commit is contained in:
commit
f5763105f9
1 changed files with 1 additions and 1 deletions
2
stack.sh
2
stack.sh
|
@ -778,7 +778,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-vol" ]]; then
|
||||||
# By default, the backing file is 2G in size, and is stored in /opt/stack.
|
# By default, the backing file is 2G in size, and is stored in /opt/stack.
|
||||||
#
|
#
|
||||||
if ! sudo vgdisplay | grep -q nova-volumes; then
|
if ! sudo vgdisplay | grep -q nova-volumes; then
|
||||||
VOLUME_BACKING_FILE=${VOLUME_BACKING_FILE:-/opt/stack/nova-volumes-backing-file}
|
VOLUME_BACKING_FILE=${VOLUME_BACKING_FILE:-$DEST/nova-volumes-backing-file}
|
||||||
VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-2052M}
|
VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-2052M}
|
||||||
truncate -s $VOLUME_BACKING_FILE_SIZE $VOLUME_BACKING_FILE
|
truncate -s $VOLUME_BACKING_FILE_SIZE $VOLUME_BACKING_FILE
|
||||||
DEV=`sudo losetup -f --show $VOLUME_BACKING_FILE`
|
DEV=`sudo losetup -f --show $VOLUME_BACKING_FILE`
|
||||||
|
|
Loading…
Reference in a new issue