Ask Your Question

add drives to a storage node

asked 2015-04-02 10:30:45 -0500

Mr.Hanachoo gravatar image

Hi guys! If I add a drive to a storage node, and after rebalancing the ring on the proxy-server, do i have to copy the *.ring.gz to /etc/swift of my storage nodes anew?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-04-02 10:55:54 -0500

In short - yes. :)

Adding a new disk is a relatively straightforward process. If I just physically added a 3TB disk with label d12 in storage node To make Swift use it, you add it to the rings, like so:

$ swift-ring-builder account.builder add z1- 3000
$ swift-ring-builder container.builder add z1- 3000
$ swift-ring-builder object.builder add z1- 3000

I've used 3000 for the weight since that’s the size of the drive in GB; it’s a useful convention. Then, rebalance the rings and copy them to all your storage nodes.

The only caveat with this is that you'll end up with somewhat degraded performance until the entire ring rebalances completely.

edit flag offensive delete link more


thank you tedlit !! it was really helpful 8-) another question, what is the meaning of the device_weight? as I have understood is it a ref to the Ring; the more the device have a bigger weight the more it will be on the ring_top_list_devices to check first in an object upload operation. am I right?

Mr.Hanachoo gravatar imageMr.Hanachoo ( 2015-04-02 11:15:15 -0500 )edit

Yes, that's right. Device weight is used to distribute partitions between the devices. More the device weight, more partitions are going to be assigned to that device

tedlit gravatar imagetedlit ( 2015-04-02 14:45:21 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-02 10:30:45 -0500

Seen: 236 times

Last updated: Apr 02 '15