<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I've written a few scripts to make adding of storage to swift cluster easier:<br></div>remakerings: removes existing ring files and builds new empty rings.<br>addtorings: adds new IP:DISK pair to existing rings.<br></div>removefromrings: removes an IP:DISK pair from existing rings.<br><br></div>I'm facing a problem in one scenario though...<br></div>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".<br><br></div>Is there anyway to workaround this problem? i.e. re-add the IP:DISK pair without having to wait for min_part_hours. <br clear="all"><div><div><div><div><div><div><div><div><br>-- <br>-Shyam
</div></div></div></div></div></div></div></div></div>