How to work with/configure Cinder for compute nodes having individual HDD

asked 2013-04-17 00:15:28 -0500

Joarder Kamal gravatar image

Recently I have set up a 11 node openstack (folsom+cinder+quantum) cluster (1 controller + 1 network node + 9 compute node) following the guide from https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/stable/GRE/OpenStack_Folsom_Install_Guide_WebVersion.rst (https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/stable/GRE/OpenStackFolsomInstallGuideWebVersion.rst)

As part of the installation I also install and configure Cinder. However, I am not sure how it will work. All my physical machines (old desktop PC) are having their individual HDD attached and I don't have any other dedicated storage nodes.

My question is how i can utilise all these HDD in my 9 compute nodes to work with cinder effectively? And how the VM instances will be served by cinder?

Many thanks in advance...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-04-19 03:14:01 -0500

Hi,

The easiest way to do that is creating an LLVM partition on each one of those HDD and export them through ISCSI. Cinder will take care of most of these things but you'll have to create the partition yourself.

For example, to create an llvm partition:

pvcreate /dev/sdN
vgcreate cinder-volumes /dev/sdN

Then make sure you set volume_group config var to cinder-volumes in cinder's config file. After that, make sure you restart your cinder-volume and cinder-api.

Hope this helps!

edit flag offensive delete link more

Comments

I have 2 HDD in the controller node and configure: dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G losetup /dev/loop2 cinder-volumes fdisk /dev/loop2 pvcreate /dev/loop2 vgcreate cinder-volumes /dev/loop2

I also configured LVM in the compute nodes while installing Ubuntu.

Joarder Kamal gravatar imageJoarder Kamal ( 2013-04-19 05:25:13 -0500 )edit

I will try to do what you suggest on Monday and let you know...many thanks for answering :)

Joarder Kamal gravatar imageJoarder Kamal ( 2013-04-19 05:32:26 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-04-17 00:15:28 -0500

Seen: 515 times

Last updated: Apr 19 '13