2011-11-01 14:36:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-11-03 09:43:46 +00:00
|
|
|
cd %SWIFT_CONFIG_LOCATION%
|
2011-11-01 14:36:00 +00:00
|
|
|
|
|
|
|
rm -f *.builder *.ring.gz backups/*.builder backups/*.ring.gz
|
|
|
|
|
|
|
|
swift-ring-builder object.builder create %SWIFT_PARTITION_POWER_SIZE% 3 1
|
|
|
|
swift-ring-builder object.builder add z1-127.0.0.1:6010/sdb1 1
|
|
|
|
swift-ring-builder object.builder add z2-127.0.0.1:6020/sdb2 1
|
|
|
|
swift-ring-builder object.builder add z3-127.0.0.1:6030/sdb3 1
|
|
|
|
swift-ring-builder object.builder add z4-127.0.0.1:6040/sdb4 1
|
|
|
|
swift-ring-builder object.builder rebalance
|
|
|
|
|
|
|
|
swift-ring-builder container.builder create %SWIFT_PARTITION_POWER_SIZE% 3 1
|
|
|
|
swift-ring-builder container.builder add z1-127.0.0.1:6011/sdb1 1
|
|
|
|
swift-ring-builder container.builder add z2-127.0.0.1:6021/sdb2 1
|
|
|
|
swift-ring-builder container.builder add z3-127.0.0.1:6031/sdb3 1
|
|
|
|
swift-ring-builder container.builder add z4-127.0.0.1:6041/sdb4 1
|
|
|
|
swift-ring-builder container.builder rebalance
|
|
|
|
|
|
|
|
swift-ring-builder account.builder create %SWIFT_PARTITION_POWER_SIZE% 3 1
|
|
|
|
swift-ring-builder account.builder add z1-127.0.0.1:6012/sdb1 1
|
|
|
|
swift-ring-builder account.builder add z2-127.0.0.1:6022/sdb2 1
|
|
|
|
swift-ring-builder account.builder add z3-127.0.0.1:6032/sdb3 1
|
|
|
|
swift-ring-builder account.builder add z4-127.0.0.1:6042/sdb4 1
|
|
|
|
swift-ring-builder account.builder rebalance
|