After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 144 of 317

Administering OpenStack Storage 134 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 set_weight z5- 172.16.0.4:6001/sdb1 0 swift-ring-builder object.builder set_weight z5-172.16.0.4:6000/ sdb1 0 2. We then rebalance the rings as follows: swift-ring-builder account.builder rebalance swift-ring-builder container.builder rebalance swift-ring-builder object.builder rebalance 3. Once this is done, we can remove the node in this zone from the ring, as follows: swift-ring-builder account.builder remove z5-172.16.0.4:6002/sdb1 swift-ring-builder container.builder remove z5-172.16.0.4:6001/ sdb1 swift-ring-builder object.builder remove z5-172.16.0.4:6000/sdb1 4. We then copy the resultant account.ring.gz, container.ring.gz, and object.ring.gz files over to the rest of the nodes in our cluster. We are now free to decommission this storage node by physically removing this device. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook