Is it possible to change the volume backing file size?

Asked by Vincent Hou

By specifying the value for VOLUME_BACKING_FILE_SIZE in localrc, devstack can determize the total size for volumes and volume snapshots.
After I have run the devstack for the first time, is it possible to change the volume backing file size?
I have tried to change the value for VOLUME_BACKING_FILE_SIZE, but it did not seem to work. The size is still the same to the one I gave for the first time.

Question information

Language:
English Edit question
Status:
Solved
For:
Cinder Edit question
Assignee:
No assignee Edit question
Solved by:
Mike Perez
Solved:
Last query:
Last reply:
Revision history for this message
Vincent Hou (houshengbo) said :
#1

By specifying the value for VOLUME_BACKING_FILE_SIZE in localrc, devstack can determize the total size for volumes and volume snapshots.
After I have run the devstack for the first time, is it possible to change the volume backing file size?
I have tried to change the value for VOLUME_BACKING_FILE_SIZE, but it did not seem to work. The size is still the same to the one I gave for the first time.

Revision history for this message
Best Mike Perez (thingee) said :
#2

You have to do the following:

1) Delete /opt/stack/data/stack-volumes-backing-file
2) Delete the volume group by running the following command: vgchange -a n stack-volumes && vgremove stack-volumes

Then rerun devstack.

Revision history for this message
Vincent Hou (houshengbo) said :
#3

Thanks Mike Perez, that solved my question.