Suggestion about Extra Storage Node for Swift Proxy

asked 2011-08-08 09:32:49 -0500

Hi everyone!

I have a question about the extra Storage Node. My system have a single server (call Host A) for Swift including: 1 Proxy Server + 4 Storage Node. Now I have another host (call Host B), I want to merge Host B to Host A and I will use Host B like fifth Storage Node. Is it a good solution? possible or impossible?

I installed and configured for Host A succesful. I also configured Host B but now the backup data just come to Host A and not come to Host B. Would you please give me some advise?

I installed and configured Host A and B by this link http://swift.openstack.org/development_saio.html#optional-setting-up-rsyslog-for-individual-logging (http://swift.openstack.org/developmen...)

Another question, I use the command like this "glance add name="TestSwift-10" distro="Test1" is_public=True < /root/lucid-server-gui-i386.tar.gz" to transfer data. What command shoud I use to download data back?

Thank you so much in advance!

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2011-08-10 02:09:34 -0500

I solved the problem like this.

edit flag offensive delete link more
0

answered 2011-08-08 09:40:32 -0500

Here is my Remakerings:

~/bin/remakerings #!/bin/bash

cd /etc/swift

rm -f .builder *.ring.gz backups/.builder backups/*.ring.gz

swift-ring-builder object.builder create 18 3 1 swift-ring-builder object.builder add z1-127.0.0.1:6010/sda1 1 swift-ring-builder object.builder add z2-127.0.0.1:6020/sda2 1 swift-ring-builder object.builder add z3-127.0.0.1:6030/sda3 1 swift-ring-builder object.builder add z4-127.0.0.1:6040/sda4 1 swift-ring-builder object.builder add z5-172.18.15.42:6050/sda3 1 swift-ring-builder object.builder rebalance swift-ring-builder container.builder create 18 3 1 swift-ring-builder container.builder add z1-127.0.0.1:6011/sda1 1 swift-ring-builder container.builder add z2-127.0.0.1:6021/sda2 1 swift-ring-builder container.builder add z3-127.0.0.1:6031/sda3 1 swift-ring-builder container.builder add z4-127.0.0.1:6041/sda4 1 swift-ring-builder container.builder add z5-172.18.15.42:6051/sda3 1 swift-ring-builder container.builder rebalance swift-ring-builder account.builder create 18 3 1 swift-ring-builder account.builder add z1-127.0.0.1:6012/sda1 1 swift-ring-builder account.builder add z2-127.0.0.1:6022/sda2 1 swift-ring-builder account.builder add z3-127.0.0.1:6032/sda3 1 swift-ring-builder account.builder add z4-127.0.0.1:6042/sda4 1 swift-ring-builder account.builder add z5-172.18.15.42:6052/sda3 1 swift-ring-builder account.builder rebalance

Zone 5 I configured to Host B with IP like above, How do U think about this?

edit flag offensive delete link more
0

answered 2011-08-09 01:42:24 -0500

Hey you guys!

Today I check 2 case for Swift:

Case 1: I turn off 2 Zone (Zone 3, Zone 4), Zone 1,2,5 are available, after that I transfer the data from Cloud Controler to Swift Proxy Server. --> The data just received in Zone 1, Zone 2 and cannot received in Zone 5. --> FAILED

Case 2: I turn of 4 Zone (Zone 1,2,3,4), only Zone 5 in Host B is available, when I make the Rings, I got some errors below --> FAILED and show the error like this (I think all of zone less than 3 and then the errors occur)

root@cnserver41:/mnt/sda3# remakerings Device z5-172.18.15.42:6050/sda3_"" with 1.0 weight got id 0 Traceback (most recent call last): File "/usr/local/bin/swift-ring-builder", line 7, in <module> execfile(__file__) File "/root/swift/trunk/bin/swift-ring-builder", line 651, in <module> Commands.__dict__.get(command, Commands.unknown)() File "/root/swift/trunk/bin/swift-ring-builder", line 512, in rebalance parts, balance = builder.rebalance() File "/root/swift/trunk/swift/common/ring/builder.py", line 243, in rebalance self._initial_balance() File "/root/swift/trunk/swift/common/ring/builder.py", line 403, in _initial_balance while available_devs[index]['zone'] in other_zones: IndexError: list index out of range Device z5-172.18.15.42:6051/sda3_"" with 1.0 weight got id 0 Traceback (most recent call last): File "/usr/local/bin/swift-ring-builder", line 7, in <module> execfile(__file__) File "/root/swift/trunk/bin/swift-ring-builder", line 651, in <module> Commands.__dict__.get(command, Commands.unknown)() File "/root/swift/trunk/bin/swift-ring-builder", line 512, in rebalance parts, balance = builder.rebalance() File "/root/swift/trunk/swift/common/ring/builder.py", line 243, in rebalance self._initial_balance() File "/root/swift/trunk/swift/common/ring/builder.py", line 403, in _initial_balance while available_devs[index]['zone'] in other_zones: IndexError: list index out of range Device z5-172.18.15.42:6052/sda3_"" with 1.0 weight got id 0 Traceback (most recent call last): File "/usr/local/bin/swift-ring-builder", line 7, in <module> execfile(__file__) File "/root/swift/trunk/bin/swift-ring-builder", line 651, in <module> Commands.__dict__.get(command, Commands.unknown)() File "/root/swift/trunk/bin/swift-ring-builder", line 512, in rebalance parts, balance = builder.rebalance() File "/root/swift/trunk/swift/common/ring/builder.py", line 243, in rebalance self._initial_balance() File "/root/swift/trunk/swift/common/ring/builder.py", line 403, in _initial_balance while available_devs[index]['zone'] in other_zones: IndexError: list index out of range

Do U know how to fix this problem? How can I connect Zone 5 with Swift Proxy Server? Please help me!

edit flag offensive delete link more
0

answered 2011-08-10 11:39:30 -0500

moubarik-siham gravatar image

Can I install a single server the swift glance and nova?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-08 09:32:49 -0500

Seen: 60 times

Last updated: Aug 10 '11