github.com/rohankumardubey/proxyfs@v0.0.0-20210108201508-653efa9ab00e/sait/home/swift/bin/remakerings (about) 1 #!/bin/bash 2 3 set -e 4 5 cd /etc/swift 6 7 rm -f *.builder *.ring.gz backups/*.builder backups/*.ring.gz 8 9 swift-ring-builder object.builder create 10 1 1 10 swift-ring-builder object.builder add r1z1-192.168.22.114:8010/sdb1 1 11 swift-ring-builder object.builder add r1z1-192.168.22.115:8010/sdb2 1 12 swift-ring-builder object.builder add r1z1-192.168.22.116:8010/sdb3 1 13 swift-ring-builder object.builder rebalance 14 swift-ring-builder object-1.builder create 10 1 1 15 swift-ring-builder object-1.builder add r1z1-192.168.22.114:8010/sdb1 1 16 swift-ring-builder object-1.builder add r1z1-192.168.22.115:8010/sdb2 1 17 swift-ring-builder object-1.builder add r1z1-192.168.22.116:8010/sdb3 1 18 swift-ring-builder object-1.builder rebalance 19 swift-ring-builder container.builder create 10 1 1 20 swift-ring-builder container.builder add r1z1-192.168.22.114:8011/sdb1 1 21 swift-ring-builder container.builder add r1z1-192.168.22.115:8011/sdb2 1 22 swift-ring-builder container.builder add r1z1-192.168.22.116:8011/sdb3 1 23 swift-ring-builder container.builder rebalance 24 swift-ring-builder account.builder create 10 1 1 25 swift-ring-builder account.builder add r1z1-192.168.22.114:8012/sdb1 1 26 swift-ring-builder account.builder add r1z1-192.168.22.115:8012/sdb2 1 27 swift-ring-builder account.builder add r1z1-192.168.22.116:8012/sdb3 1 28 swift-ring-builder account.builder rebalance