Skip to content

Instantly share code, notes, and snippets.

@kordless
Created November 6, 2012 03:59
Show Gist options
  • Select an option

  • Save kordless/4022461 to your computer and use it in GitHub Desktop.

Select an option

Save kordless/4022461 to your computer and use it in GitHub Desktop.
Increase the Size of devstack's Volumes for StackGeek
title: Increase the Size of devstack's Volumes
author: http://github.com/kordless
summary: Instructions for increasing the size of devstack's volumes.
published: 1335615132
type: post

I've been whacking around on OpenStack for about two months now. Devstack is awesome sauce and all, but it's default limitation for creating any cloud volumes larger than a total of 2GB has been driving me crazy. I keep needing volumes which are bigger, end up trying to create them, then get the infinite creation spinner in the UI. The only way I can get it to go away (but still not be able to make any new volumes) is to whack it from the nova database in MySQL. That's silly.

pancakes - mmmmm

Turns out there's a slight mention of this on the devstack page for a multi-node install. Let's borrow some of those instructions and put them on my blog so I can get massive page rank. Or not.

The fix is fairly trivial. Assuming you have a spare hard drive laying around, stuff it into your OpenStack node. If you don't have a spare drive, go buy two SSDs, install one, and mail me the other one. I could really use it.

Fix That Shizzle

The rest of this howto assumes you have a spare empty drive mounted at /dev/sdb. It's not my fault if you bork your box.

Start off by running fdisk from the prompt:

sudo fdisk /dev/sdb

Again, be sure you use the actual file handle for the drive!

  1. Now create a partition new partition by typing n, then a p for a primary partition. Use the default start and end values.

  2. Set the partition type to Linux LVM by typing t then 8e. Hit w to write out the partition to the drive and exit.

  3. From the prompt again, run:

    pvcreate -ff /dev/sdb1 vgcreate nova-volumes /dev/sdb1

The -ff is just there to force the creation of the volume. You can leave it off if you are scared.

That's it. The stack.sh will take care of the rest! You should now be able to create very large volumes at will now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment