Multiple Server Swift Installation—rebalance
I use four Virtual Machines to set up swift in muitiple Sever. one for proxy&auth node ,and others for storage node.
root@swift-proxy:/etc/swift# ./verify.sh account.builder, build version 3 262144 partitions, 2 replicas, 1 zones, 3 devices, 100.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 0 5 192.168.1.84 6002 sdb1 100.00 0 -100.00 1 5 192.168.1.82 6002 sdb1 100.00 0 -100.00 2 5 192.168.1.69 6002 sdb1 100.00 0 -100.00 container.builder, build version 3 262144 partitions, 2 replicas, 1 zones, 3 devices, 100.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 0 5 192.168.1.84 6001 sdb1 100.00 0 -100.00 1 5 192.168.1.82 6001 sdb1 100.00 0 -100.00 2 5 192.168.1.69 6001 sdb1 100.00 0 -100.00 object.builder, build version 3 262144 partitions, 2 replicas, 1 zones, 3 devices, 100.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 0 5 192.168.1.84 6000 sdb1 100.00 0 -100.00 1 5 192.168.1.82 6000 sdb1 100.00 0 -100.00 2 5 192.168.1.69 6000 sdb1 100.00 0 -100.00
but
root@swift-proxy:/etc/swift# ./rebalance.sh Traceback (most recent call last): File "/usr/bin/swift-ring-builder", line 651, in <module> Commands.__dict__.get(command, Commands.unknown)() File "/usr/bin/swift-ring-builder", line 512, in rebalance parts, balance = builder.rebalance() File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 243, in rebalance self._initial_balance() File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 403, in _initial_balance while available_devs[index]['zone'] in other_zones: IndexError: list index out of range Traceback (most recent call last): File "/usr/bin/swift-ring-builder", line 651, in <module> Commands.__dict__.get(command, Commands.unknown)() File "/usr/bin/swift-ring-builder", line 512, in rebalance parts, balance = builder.rebalance() File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 243, in rebalance self._initial_balance() File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 403, in _initial_balance while available_devs[index]['zone'] in other_zones: IndexError: list index out of range Traceback (most recent call last): File "/usr/bin/swift-ring-builder", line 651, in <module> Commands.__dict__.get(command, Commands.unknown)() File "/usr/bin/swift-ring-builder", line 512, in rebalance parts, balance = builder.rebalance() File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 243, in rebalance self._initial_balance() File "/usr/lib/pymodules/python2.7/swift/common/ring/builder.py", line 403, in _initial_balance while available_devs[index]['zone'] in other_zones: IndexError: list index out of range
root@swift-proxy:/etc ...