6.5 HP StoreAll OS User Guide

3. For the account: List the configuration, set the weight, and check the weight.
a. List the container configuration by sending this command:
[root@swift1 ~]# swift-ring-builder
/ifs1/ObjectStore6/config/swift/account.builder
Sample output:
/ifs1/ObjectStore6/config/swift/account.builder, build version 2
4096 partitions, 1.000000 replicas, 1 regions, 1 zones, 2 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 0
Devices:
id region zone ip address port name weight partitions balance meta
0 1 1 10.21.19.43 6046 node010021019043 100.00 2048 0.00
1 1 1 10.21.19.44 6049 node010021019044 100.00 2048 0.00
b. Set the account weight by sending this command:
[root@swift1 ~]# swift-ring-builder
/ifs1/ObjectStore6/config/swift/account.builder set_weight
d0r1z1-10.21.19.43:6046/node010021019043 200.00
Sample output:
d0z1-10.21.19.43:6046/node010021019043_"" weight set to 200.0
c. Check that the account weight has been set correctly:
[root@swift1 ~]# swift-ring-builder
/ifs1/ObjectStore6/config/swift/account.builder
Sample output:
/ifs1/ObjectStore6/config/swift/account.builder, build version 3
4096 partitions, 1.000000 replicas, 1 regions, 1 zones, 2 devices, 50.00 balance
The minimum number of hours before a partition can be reassigned is 0
Devices:
id region zone ip address port name weight partitions balance meta
0 1 1 10.21.19.43 6046 node010021019043 200.00 2048 -25.00
1 1 1 10.21.19.44 6049 node010021019044 100.00 2048 50.00
4. Execute rebalance operations for all three builder files (account, container, and object
components (A/C/O)). Send the following commands:
a. [root@swift1 ~]# swift-ring-builder
/ifs1/ObjectStore7/config/swift/account.builder rebalance
Sample output:
Reassigned 1229 (30.00%) partitions. Balance is now 0.02.
b. [root@swift1 ~]# swift-ring-builder
/ifs1/ObjectStore7/config/swift/container.builder rebalance
Sample output:
Reassigned 1229 (30.00%) partitions. Balance is now 0.02.
c. [root@swift1 ~]# swift-ring-builder
/ifs1/ObjectStore7/config/swift/object.builder rebalance
Sample output:
Reassigned 1229 (30.00%) partitions. Balance is now 0.02.
Managing and monitoring Object Store 163