더북(TheBook)

9. 생성한 container.builder를 리밸런싱합니다.

root@controller:/etc/swift# swift-ring-builder container.builder rebalance
Reassigned 3072 (300.00%) partitions. Balance is now 0.00.  Dispersion is now 0.00


10. object.builder를 생성합니다.

root@controller:/etc/swift# swift-ring-builder object.builder create 10 3 1


11. account.builder와 container.builder처럼 데이터를 저장할 스토리지와 디바이스 정보를 추가합니다.

root@controller:/etc/swift# swift-ring-builder object.builder add –region 1 -
-zone 1 –ip 192.168.56.102 –port 6000 –device sdc1 –weight 100
Device d0r1z1-192.168.56.102:6000R192.168.56.102:6000/sdc1”” with 100.0 weight
got id 0
root@controller:/etc/swift# swift-ring-builder object.builder add –region 1
–zone 1 –ip 192.168.56.102 –port 6000 –device sdd1 –weight 100
Device d1r1z1-192.168.56.102:6000R192.168.56.102:6000/sdd1”” with 100.0 weight
got id 1
root@controller:/etc/swift# swift-ring-builder object.builder add –region 1
–zone 1 –ip 192.168.56.102 –port 6000 –device sde1 –weight 100
Device d2r1z1-192.168.56.102:6000R192.168.56.102:6000/sde1_“” with 100.0 weight
got id 2

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.