The following steps require operation on the controller node:
Switch to the/etc/swift directory to do the following:
First, create account ring
1. Create a Account.builder file
Swift-ring-builder Account.builder Create 3 1
2, add each node to the ring, the command is as follows, several devices are repeated several times, if there are more than one machine, the second machine can be created in the same region, but zone must change the number of other
Add--region 1--zone 1--ip ( Accessible IP address of the SWIFT node) --device ( device name, such as SDB )--weight ( device weights, typically )
3. To confirm the added content, you must see three devices:
Swift-ring-builder Account.builder
4. Rebalance The ring, this step can be understood to write the modified configuration to the database and refresh it:
Swift-ring-builder Account.builder Rebalance
Note that if you encounter an error such as, you need to add more than three devices in each domain:
Ii. creation of the container ring
1, or in the/etc/swift directory, create the Container.builder file:
3 1
2, create container node, several devices are repeatedly created several times, if there are more than one machine, the second machine can be created in the same region, but the zone must be different number
Add--region 1--zone 1--ip (the accessible IP address of the SWIFT node) --device ( device name, such as SDB) --weight ( device weight, usually of
3, test the ring created content
Swift-ring-builder Container.builder
4. Rebalance The ring:
Swift-ring-builder Container.builder Rebalance
Third, create the object ring
1, continue to operate in the/etc/swift directory, create the Object.builder file
3 1
2, create an object node, several devices are repeatedly created several times, if there are more than one machine, the second machine can be created in the same region, but the zone must be different number
Add--region 1--zone 1--ip(accessibleIP address of the SWIFT node)--device( device name, such as SDB)--weight ( device weight, usually of
3, test the ring created content
Swift-ring-builder Object.builder
4. Rebalance The ring:
Swift-ring-builder Object.builder Rebalance
Four, will account.ring.gz
, container.ring.gz
and object.ring.gz
These three are located in/etc/swift位置下的文件拷贝到swift节点机器的同目录下
OpenStack Swift Node Installation Manual 2-Create rings