O'Reilly logo

OpenStack Cloud Computing Cookbook by 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

Removing nodes from a cluster

Converse to adding capacity to our OpenStack Storage cluster, there may be times where we need to scale back. We can do this by removing nodes from the zones in our cluster. In the following example, we will remove the node 172.16.0.4 in z5, which only has one storage device attached, /dev/sdb1.

Getting ready

Log in to the OpenStack Storage proxy server node.

How to do it...

Carry out the following to remove a storage node from a zone:

Proxy Server

  1. To remove a node from OpenStack Storage, we first set its weight to be 0, so that when the rings get rebalanced, data is drained away from this node:
    cd /etc/swift
    
    swift-ring-builder account.builder set_weight z5-172.16.0.4:6002/sdb1 0
    swift-ring-builder container.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