OpenStack Swift Node Installation Manual 2-Create rings

Source: Internet
Author: User
Tags openstack swift

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.