The current default volume backing file size of ~2Gb seem unfeasibly
small and precludes running exercises that require multiple volumes
and/or snapshots to be created.
We increase this to ~5Gb.
Change-Id: Id6b8d122be919d1b0041288e81b735af21958ff7
... | ... |
@@ -93,11 +93,10 @@ function init_cinder() { |
93 | 93 |
# volume group, create your own volume group called ``stack-volumes`` before |
94 | 94 |
# invoking ``stack.sh``. |
95 | 95 |
# |
96 |
- # By default, the backing file is 2G in size, and is stored in ``/opt/stack/data``. |
|
96 |
+ # By default, the backing file is 5G in size, and is stored in ``/opt/stack/data``. |
|
97 | 97 |
|
98 | 98 |
if ! sudo vgs $VOLUME_GROUP; then |
99 | 99 |
VOLUME_BACKING_FILE=${VOLUME_BACKING_FILE:-$DATA_DIR/${VOLUME_GROUP}-backing-file} |
100 |
- VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-2052M} |
|
101 | 100 |
# Only create if the file doesn't already exists |
102 | 101 |
[[ -f $VOLUME_BACKING_FILE ]] || truncate -s $VOLUME_BACKING_FILE_SIZE $VOLUME_BACKING_FILE |
103 | 102 |
DEV=`sudo losetup -f --show $VOLUME_BACKING_FILE` |
... | ... |
@@ -1638,11 +1638,10 @@ elif is_service_enabled n-vol; then |
1638 | 1638 |
# volume group, create your own volume group called ``stack-volumes`` before |
1639 | 1639 |
# invoking ``stack.sh``. |
1640 | 1640 |
# |
1641 |
- # By default, the backing file is 2G in size, and is stored in ``/opt/stack/data``. |
|
1641 |
+ # By default, the backing file is 5G in size, and is stored in ``/opt/stack/data``. |
|
1642 | 1642 |
|
1643 | 1643 |
if ! sudo vgs $VOLUME_GROUP; then |
1644 | 1644 |
VOLUME_BACKING_FILE=${VOLUME_BACKING_FILE:-$DATA_DIR/${VOLUME_GROUP}-backing-file} |
1645 |
- VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-2052M} |
|
1646 | 1645 |
# Only create if the file doesn't already exists |
1647 | 1646 |
[[ -f $VOLUME_BACKING_FILE ]] || truncate -s $VOLUME_BACKING_FILE_SIZE $VOLUME_BACKING_FILE |
1648 | 1647 |
DEV=`sudo losetup -f --show $VOLUME_BACKING_FILE` |