About container location

Asked by Pushkaraj

I have Installed Openstack swift on Ubuntu. Actually I want to find out location of my containers and object.I tried to search but i didnt find locations.Please tell me how to find location of containers..
Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Chuck Thier (cthier) said :
#1

You can use swift-get-nodes to do this with something like:

swift-get-nodes PATH_TO_CONTAINER_RING ACCOUNT_HASH CONTAINER_NAME

For example if you are using the test account on an saio, and a container called "stuff":

swift-get-nodes /etc/swift/container.ring.gz AUTH_test stuff

Revision history for this message
Pushkaraj (pushkarajs10) said :
#2

After using above command,i got following output:
root@ubuntu:~/swift# swift-get-nodes /etc/swift/container.ring.gz AUTH_admin mycontainer

Account AUTH_admin
Container mycontainer
Object None

Partition 255108
Hash f9210072be11fd83b7e086f855758bda

Server:Port Device 127.0.0.1:6041 sda4
Server:Port Device 127.0.0.1:6011 sda1
Server:Port Device 127.0.0.1:6021 sda2
Server:Port Device 127.0.0.1:6031 sda3 [Handoff]

curl -I -XHEAD "http://127.0.0.1:6041/sda4/255108/AUTH_admin/mycontainer"
curl -I -XHEAD "http://127.0.0.1:6011/sda1/255108/AUTH_admin/mycontainer"
curl -I -XHEAD "http://127.0.0.1:6021/sda2/255108/AUTH_admin/mycontainer"
curl -I -XHEAD "http://127.0.0.1:6031/sda3/255108/AUTH_admin/mycontainer" # [Handoff]

ssh 127.0.0.1 "ls -lah /srv/node/sda4/containers/255108/bda/f9210072be11fd83b7e086f855758bda/"
ssh 127.0.0.1 "ls -lah /srv/node/sda1/containers/255108/bda/f9210072be11fd83b7e086f855758bda/"
ssh 127.0.0.1 "ls -lah /srv/node/sda2/containers/255108/bda/f9210072be11fd83b7e086f855758bda/"
ssh 127.0.0.1 "ls -lah /srv/node/sda3/containers/255108/bda/f9210072be11fd83b7e086f855758bda/" # [Handoff]

I want to ask you,where can i get exact location from above output...Please tell me..
Thenk you

Can you help with this problem?

Provide an answer of your own, or ask Pushkaraj for more information if necessary.

To post a message you must log in.