Block Device Mapping is Invalid

asked 2017-08-01 12:52:02 -0500

Ben78 gravatar image

updated 2017-08-02 16:38:24 -0500

I have installed DevStack recently. When I try to create a new instance I get this error msg:"Block Device Mapping is Invalid". I found out that there is an item,"loop1", on my block device list which my total volume size is limited to the free space of it. In another word, when I try to create an instance with volume size larger than the free space of "loop1", I get the error message. How can I solve this problem? or how can I increase the loop1 volume size? https://i.stack.imgur.com/lnEWj.jpg (image description)

edit retag flag offensive close merge delete

Comments

IMO the easiest solution is creating another loop device and adding it to the volume group.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-01 22:10:37 -0500 )edit

Thanks for your time. May I know exactly how?

Ben78 gravatar imageBen78 ( 2017-08-02 13:29:11 -0500 )edit

For example (I haven't tried it; might be inaccurate):

# losetup -f
/dev/loop2
# fallocate -l 10G myloopfile
# losetup /dev/loop2 myloopfile
# pvcreate /dev/loop2
# vgextend cinder-volumes /dev/loop2

You can also look for losetup in the devstack log file for inspiration.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-02 19:31:41 -0500 )edit