<div dir="ltr">Thanks Christian I think thats exactly what I needed - I will try and make 2 new rings and see how that works. You wouldnt per chance know how I would limit the replicas, ie 2 in the Paris region and 1 at HQ? I only want one replica to goto the HQ region...<div><br></div><div><br></div><div>So for instance, if I have two nodes in the my HQ region and I only want one replica, would I run the following commands:</div><div><br></div><div>swift-ring-builder account.builder add hq-ip#1:6002/sda3 100<br></div><div><br></div><div>swift-ring-builder account.builder add hq-ip#2:6002/sda3 100<br></div><div><br></div><div>If the nodes in Paris are as is follows:</div><div><br></div><div><div>he minimum number of hours before a partition can be reassigned is 1</div><div>Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta</div><div>             0       1     1       10.7.5.51  6002       10.7.5.51              6002      sda3 100.00        384    0.00</div><div>             1       1     1       10.7.5.51  6002       10.7.5.51              6002      sda4 100.00        384    0.00</div><div>             2       1     1       10.7.5.52  6002       10.7.5.52              6002      sda3 100.00        384    0.00</div><div>             3       1     1       10.7.5.52  6002       10.7.5.52              6002      sda4 100.00        384    0.00</div></div><div><br></div><div><br></div><div>That for some reason doesnt seem correct to me but what do I know. Also, if you notice i my command for the name i gave hq-ip# - do I have to use the naming convention r#z#-ip when I add? Thanks</div><div><br></div><div>Amit</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 22, 2014 at 1:46 PM, Christian Schwede <span dir="ltr"><<a href="mailto:christian.schwede@enovance.com" target="_blank">christian.schwede@enovance.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 22.12.14 19:11, Amit Anand wrote:<br>
> Now I want to try and do the following below:<br>
><br>
> <a href="http://techs.enovance.com/7094/openstack-swift-2-0-introducing-storage-policies" target="_blank">http://techs.enovance.com/7094/openstack-swift-2-0-introducing-storage-policies</a><br>
><br>
> So pretty much have a Paris and Montreal center as described - I want to<br>
> add a third datacenter to each as replication. So it the blog it says<br>
> create new rings - there is where I am getting confused - may someone<br>
> help and let me know what are the commands to create a whole new ring??<br>
<br>
</span>Author of the post here :)<br>
<br>
Use the following command to create another ring:<br>
<br>
swift-ring-builder /etc/swift/object-1.builder create 15 3 1<br>
<br>
Storage Policies are addressed by an index number (see the blog post,<br>
for example storage-policy:0), and these are related to the ring files:<br>
<br>
storage-policy:0 -> /etc/swift/object-0.ring.gz<br>
<br>
storage-policy:1 -> /etc/swift/object-1.ring.gz<br>
<br>
and so on.<br>
<br>
Policy 0 is the default one, and if there is no ring file named<br>
"/etc/swift/object-0.ring.gz" Swift tries to use<br>
"/etc/swift/object.ring.gz".<br>
<br>
Let me know if this helps!<br>
<span class="HOEnZb"><font color="#888888"><br>
Christian<br>
</font></span></blockquote></div><br></div>