cinder change lvm-volume

asked 2015-03-17 12:10:30 -0600

minimike gravatar image


After an successfull installation on CentOS 7 via Packstack do I have to take a look about cinder's lvm-volume in some config-files? I would like to change from loop-devices to real partitions on my HDD

/dev/loop0: [2049]:2623450 (/srv/loopback-device/swiftloopback) /dev/loop1: [2049]:1841017 (/var/lib/cinder/cinder-volumes)

pvcreate /dev/sda3 vgcreate cinder-volumes /dev/sda3

I was wondering me because I don't find the mechanism where is creating the loop-devices

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-18 11:37:15 -0600

jdexter gravatar image

The only configuration for Cinder, in regards to the LVM driver, is the volume_group name that it is using for itself.

# Name for the VG that will contain exported volumes (string
# value)

Whatever device is backing the VG cinder-volumes, will be what cinder creates its volumes in.
In the example below, I am using the loop device like your packstack install.

root@rhe7test css]# vgs
  VG             #PV #LV #SN Attr   VSize  VFree
  cinder-volumes   1   0   0 wz--n- 20.60g 20.60g
  rhel_rhe7test    1   2   0 wz--n- 19.51g     0
[root@rhe7test css]# pvs
  PV         VG             Fmt  Attr PSize  PFree
  /dev/loop2 cinder-volumes lvm2 a--  20.60g 20.60g
  /dev/sda2  rhel_rhe7test  lvm2 a--  19.51g     0

You will want to remove the Current VG, and and create the new one from your physical device.

vgcreate cinder-volumes /dev/sda3

The mechanism for creating the loop-devices is in the cinder module in packstack.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-03-17 12:10:30 -0600

Seen: 1,669 times

Last updated: Mar 18 '15