add drives to a storage node
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?
First time here? Check out the FAQ!
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?
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 192.168.1.104. To make Swift use it, you add it to the rings, like so:
$ swift-ring-builder account.builder add z1-192.168.1.104:6002/d12 3000
$ swift-ring-builder container.builder add z1-192.168.1.104:6001/d12 3000
$ swift-ring-builder object.builder add z1-192.168.1.104:6000/d12 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.
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?
Asked: 2015-04-02 10:30:45 -0600
Seen: 223 times
Last updated: Apr 02 '15