O'Reilly logo

OpenStack Cloud Computing Cookbook Second Edition by Cody Bunch, Kevin Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making rings

The final step is to create the Object ring, Account ring, and Container ring that each of our virtual nodes exists in.

Getting ready

Ensure that you are logged in to your swift virtual machine. To do this, run:

vagrant ssh swift

How to do it...

The OpenStack Object Storage ring keeps track of where our data exists in our cluster. There are three rings that OpenStack Storage understands, and they are the Account, Container, and Object rings. To facilitate quick rebuilding of the rings in our cluster, we will create a script that performs the necessary steps.

  1. The most convenient way to create the rings for our OpenStack Storage environment is to create a script. Create /usr/local/bin/remakerings:
    #!/bin/bash cd /etc/swift rm -f *.builder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required