blob: c65353ced53c8e784d5f489ba7ea5952d20fd122 [file] [log] [blame]
Chmouel Boudjnaha2118982011-11-01 15:36:00 +01001#!/bin/bash
2
Chmouel Boudjnah3a648262011-11-03 10:43:46 +01003cd %SWIFT_CONFIG_LOCATION%
Chmouel Boudjnaha2118982011-11-01 15:36:00 +01004
5rm -f *.builder *.ring.gz backups/*.builder backups/*.ring.gz
6
7swift-ring-builder object.builder create %SWIFT_PARTITION_POWER_SIZE% 3 1
8swift-ring-builder object.builder add z1-127.0.0.1:6010/sdb1 1
9swift-ring-builder object.builder add z2-127.0.0.1:6020/sdb2 1
10swift-ring-builder object.builder add z3-127.0.0.1:6030/sdb3 1
11swift-ring-builder object.builder add z4-127.0.0.1:6040/sdb4 1
12swift-ring-builder object.builder rebalance
13
14swift-ring-builder container.builder create %SWIFT_PARTITION_POWER_SIZE% 3 1
15swift-ring-builder container.builder add z1-127.0.0.1:6011/sdb1 1
16swift-ring-builder container.builder add z2-127.0.0.1:6021/sdb2 1
17swift-ring-builder container.builder add z3-127.0.0.1:6031/sdb3 1
18swift-ring-builder container.builder add z4-127.0.0.1:6041/sdb4 1
19swift-ring-builder container.builder rebalance
20
21swift-ring-builder account.builder create %SWIFT_PARTITION_POWER_SIZE% 3 1
22swift-ring-builder account.builder add z1-127.0.0.1:6012/sdb1 1
23swift-ring-builder account.builder add z2-127.0.0.1:6022/sdb2 1
24swift-ring-builder account.builder add z3-127.0.0.1:6032/sdb3 1
25swift-ring-builder account.builder add z4-127.0.0.1:6042/sdb4 1
26swift-ring-builder account.builder rebalance