Update loopback instructions in cinder docs

losetup/fallocate are better and match what we have for Swift.

Change-Id: I1147374017e4f1cb3f3e970e048ba565388cd86f
This commit is contained in:
Paul Bourke 2017-06-14 13:04:23 +01:00
parent 57f0a3c4a7
commit 89922b60f2

View File

@ -45,11 +45,12 @@ During development, it may be desirable to use file backed block storage. It
is possible to use a file and mount it as a block device via the loopback
system. ::
mknod /dev/loop2 b 7 2
dd if=/dev/zero of=/var/lib/cinder_data.img bs=1G count=20
losetup /dev/loop2 /var/lib/cinder_data.img
pvcreate /dev/loop2
vgcreate cinder-volumes /dev/loop2
free_device=$(losetup -f)
fallocate -l 20G /var/lib/cinder_data.img
losetup $free_device /var/lib/cinder_data.img
pvcreate $free_device
vgcreate cinder-volumes $free_device
Enable the ``lvm`` backend in ``/etc/kolla/globals.yml``: