Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list 㜄툍툐蔉蔋툏툐᠁蔉鐉鐉 鐋㜅蔈嘅᠄᠂㜃鐌嘇᠄툍嘅댎 댋᠂᠃ं댍嘅鐉☃嘆蔊蔋嘇鐉蔋 툍᠃㜆蔊댋댌댎᠄㜃댌鐊댍᠄ 툐蔉툎᠁鐉㜆᠁툎鐋᠁᠂鐋댎툐 ᠄᠂᠃鐌鐌鐋툎嘇蔈툏댌툎

instead of 1 2 3 4

root@ubuntu:~# swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing upload ᠄᠂᠃鐌鐌鐋툎嘇蔈툏댌툎 Testfile

Testfile

root@ubuntu:~# swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list ᠄᠂᠃鐌鐌鐋툎嘇蔈툏댌툎 Testfile 댌᠂댎鐊㜅蔈嘅᠃ं댌᠃鐉㜄 댌댌Ω嘅툐Ωँं嘅㜆

using the given solution root@ubuntu:/# /usr/local/bin/swift-get-nodes /etc/swift/object.ring.gz test ᠄᠂᠃鐌鐌鐋툎嘇蔈툏댌툎

Account test Container ᠄᠂᠃鐌鐌鐋툎嘇蔈툏댌툎 Object None

Partition 166850 Hash a2f0b58577e532298c10a13675c77699

Server:Port Device 127.0.0.1:6020 sdb2 Server:Port Device 127.0.0.1:6040 sdb4 Server:Port Device 127.0.0.1:6010 sdb1 Server:Port Device 127.0.0.1:6030 sdb3 [Handoff]

curl -I -XHEAD "http://127.0.0.1:6020/sdb2/166850/test/%EF%84%92%E1%A0%84%E1%A0%82%E1%A0%83%E9%90%8C%E9%90%8C%E9%90%8B%ED%88%8E%E5%98%87%EF%84%91%E8%94%88%ED%88%8F%EB%8C%8C%ED%88%8E" curl -I -XHEAD "http://127.0.0.1:6040/sdb4/166850/test/%EF%84%92%E1%A0%84%E1%A0%82%E1%A0%83%E9%90%8C%E9%90%8C%E9%90%8B%ED%88%8E%E5%98%87%EF%84%91%E8%94%88%ED%88%8F%EB%8C%8C%ED%88%8E" curl -I -XHEAD "http://127.0.0.1:6010/sdb1/166850/test/%EF%84%92%E1%A0%84%E1%A0%82%E1%A0%83%E9%90%8C%E9%90%8C%E9%90%8B%ED%88%8E%E5%98%87%EF%84%91%E8%94%88%ED%88%8F%EB%8C%8C%ED%88%8E" curl -I -XHEAD "http://127.0.0.1:6030/sdb3/166850/test/%EF%84%92%E1%A0%84%E1%A0%82%E1%A0%83%E9%90%8C%E9%90%8C%E9%90%8B%ED%88%8E%E5%98%87%EF%84%91%E8%94%88%ED%88%8F%EB%8C%8C%ED%88%8E" # [Handoff]

ssh 127.0.0.1 "ls -lah /srv/node/sdb2/containers/166850/699/a2f0b58577e532298c10a13675c77699/" ssh 127.0.0.1 "ls -lah /srv/node/sdb4/containers/166850/699/a2f0b58577e532298c10a13675c77699/" ssh 127.0.0.1 "ls -lah /srv/node/sdb1/containers/166850/699/a2f0b58577e532298c10a13675c77699/" ssh 127.0.0.1 "ls -lah /srv/node/sdb3/containers/166850/699/a2f0b58577e532298c10a13675c77699/" # [Handoff] root@ubuntu:/# ls -lah /srv/node/sdb2/containers/166850/699/a2f0b58577e532298c10a13675c77699/ ls: cannot access /srv/node/sdb2/containers/166850/699/a2f0b58577e532298c10a13675c77699/: No such file or directory root@ubuntu:/# ls -lah /srv/2/node/sdb2/containers/166850/699/a2f0b58577e532298c10a13675c77699/ ls: cannot access /srv/2/node/sdb2/containers/166850/699/a2f0b58577e532298c10a13675c77699/: No such file or directory

There is no directory 166850 inside the below file hierarchy

This is my folder structure

/-srv--1---node----sdb1 --2---node----sdb2 --3---node----sdb3 --4---node----sdb4

How to create containers? I thought that when you do swift upload containerY file, if containerY is not present then it'll create containerY.