[Openstack] Remove storage from the rings and then re-add..
Shyam Prasad N
nspmangalore at gmail.com
Mon Oct 20 06:24:35 UTC 2014
Hi,
I've written a few scripts to make adding of storage to swift cluster
easier:
remakerings: removes existing ring files and builds new empty rings.
addtorings: adds new IP:DISK pair to existing rings.
removefromrings: removes an IP:DISK pair from existing rings.
I'm facing a problem in one scenario though...
After adding a few IP:DISK pairs to the swift cluster, and the cluster is
in use for sometime. Later, I decided to add more storage to the cluster.
For some reason, if the addtorings for the new storage fails after partial
completion (i.e. container and account rings updated; but object ring
update failed). So now I did a removefromrings to rollback my new changes.
The remove request succeeds and gives a message "Will be removed from rings
on next rebalance". But rebalance fails because the last rebalance was
within 1 hr of the last rebalance. And re-adding the same IP:DISK pair to
rings also fails; says "Already a part of rings".
Is there anyway to workaround this problem? i.e. re-add the IP:DISK pair
without having to wait for min_part_hours.
--
-Shyam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141020/e4783e18/attachment.html>
More information about the Openstack
mailing list