Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks, Kun Huang. I used both swift installed in 4 DELL servers and Swift SAIO for testing. I can upload and download. but when I used "swift-get-nodes", the Partition returned is not a folder in the storage node.

my DEVICE is set "/srv/node". There are many folders in “/srv/node/sdb1/objects/”, but there is not a folder named "61178". What's wrong?

There are some output of swift in 4 DELL servers, not of SAIO.

103748 126837 149607 173774 199160 224454 245960 35322 59406 81540 103759 126936 150199 173928 199274 224706 246115 35640 59883 81645 104006 127348 150388 174134 199316 224827 246328 35849 60625 82238 104023 127379 150421 174314 199607 22492 246504 35853 61046 8236 104036 12739 150443 174445 199656 224949 247236 3593 61104 82599 104155 127440 150555 174603 199993 22504 247474 36058 61285 829 104330 127876 150775 174775 200217 225222 248137 36533 61321 82982 104503 1279 151115 174919 200408 225251 249085 36593 6133 8299 10460 127971 152044 174941 200664 225523 249204 36968 61354 83013 104800 12821 152185 174971 200776 225548 249277 3722 61411 83035 104976 128482 152222 175017 201129 225639 249300 37808 61812 83806 104999 128577 152835 175140 201141 22576 24942 38130 62058 83874 105016 128778 153060 175340 201340 225873 249644 38514 62190 83956 105082 128972 153126 175360 201619 225888 249910 38592 62233 84005 105114 129266 153247 175482 201692 226246 249933 38613 62235 84290 105560 129368 153340 175781 201952 226464 250062 38616 62547 84448 105587 129420 153406 175810 202096 226583 2502 38885 62577 84471 105712 129613 153427 176219 202921 226675 250392 3896 62667 8464 105918 129644 153446 176406 203144 226927 250484 38968 62739 84936

swift@cloud1:~/openstack$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing list cont1 boto-2.6.0.tar.gz swift@cloud1:~/openstack$ cd swift@cloud1:~$ swift-get-nodes -a /etc/swift/object.ring.gz test cont1 boto-2.6.0.tar.gz

Account test Container cont1 Object boto-2.6.0.tar.gz

Partition 61178 Hash 3bbe955693bec810b7cfa75b9e8eb1af

Server:Port Device 192.168.1.4:6010 sdb1 Server:Port Device 192.168.1.3:6010 sdb1 Server:Port Device 192.168.1.5:6010 sdb1

curl -I -XHEAD "http://192.168.1.4:6010/sdb1/61178/test/cont1/boto-2.6.0.tar.gz" curl -I -XHEAD "http://192.168.1.3:6010/sdb1/61178/test/cont1/boto-2.6.0.tar.gz" curl -I -XHEAD "http://192.168.1.5:6010/sdb1/61178/test/cont1/boto-2.6.0.tar.gz"

Use your own device location of servers: such as "export DEVICE=/srv/node" ssh 192.168.1.4 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/" ssh 192.168.1.3 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/" ssh 192.168.1.5 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/"

swift@cloud1:~$ ssh 192.168.1.3 "ls -lah ${DEVICE:-/srv/node}/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/" swift@192.168.1.3's password: ls: 初始化月份字符串出错 ls: 无法访问/srv/node/sdb1/objects/61178/1af/3bbe955693bec810b7cfa75b9e8eb1af/: 没有那个文件或目录 swift@cloud1:~$ ls openstack swift@cloud1:~$ swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing download cont1 boto-2.6.0.tar.gz boto-2.6.0.tar.gz [headers 0.039s, total 0.087s, 7.358 MB/s] swift@cloud1:~$ ls boto-2.6.0.tar.gz openstack