cinder volume limit

after installing rdo you might want to create cinder volume.
it might be that you get an error when you do so.
what happens is that cinder has a file mounted as a device that it uses to allocate volumes.
if that file is 20G as it is with current rdo if you try to create something bigger it will fail.
here is the script taken from somewhere(picked it up from rdo forum with minor mods)
that will resize the thing that needs resizing while backing up your old stuff

cd /var/lib/cinder
mv cinder-volumes cinder-volumes.back`date +%s`
dd if=/dev/zero of=./cinder-volumes bs=1 count=0 seek=$1
umount /dev/loop2
losetup /dev/loop2 cinder-volumes
pvcreate /dev/loop2 -ff
vgcreate cinder-volumes /dev/loop2
service cinder-volume restart; service cinder-api restart; service cinder-scheduler restart;

so put this in a script like
and use it like so 200GB
now you can create volumes with 200GB limit
one 200G or 2x 100G or 3x50G etc. so it is “global” limit

Leave a Comment