Advertisement
Guest User

Untitled

a guest
Apr 8th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. root@swift-z02:/# swift-get-nodes /etc/swift/container.ring.gz swift-odm Backup
  2.  
  3. Account swift-odm
  4. Container Backup
  5. Object None
  6.  
  7.  
  8. Partition 72189
  9. Hash 467f4f5f5f4ae60b7dbe4fc6af45bf6d
  10.  
  11. Server:Port Device 1.2.3.4:49168 swift-z01
  12. Server:Port Device 1.2.3.5:49161 swift-z03
  13. Server:Port Device 1.2.3.6:49155 swift-z02
  14.  
  15.  
  16. curl -I -XHEAD "http://1.2.3.4:49168/swift-z01/72189/swift-odm/Backup"
  17. curl -I -XHEAD "http://1.2.3.5:49161/swift-z03/72189/swift-odm/Backup"
  18. curl -I -XHEAD "http://1.2.3.6:49155/swift-z02/72189/swift-odm/Backup"
  19.  
  20.  
  21. Use your own device location of servers:
  22. such as "export DEVICE=/srv/node"
  23. ssh 1.2.3.4 "ls -lah ${DEVICE:-/srv/node*}/swift-z01/containers/72189/f6d/467f4f5f5f4ae60b7dbe4fc6af45bf6d"
  24. ssh 1.2.3.5 "ls -lah ${DEVICE:-/srv/node*}/swift-z03/containers/72189/f6d/467f4f5f5f4ae60b7dbe4fc6af45bf6d"
  25. ssh 1.2.3.6 "ls -lah ${DEVICE:-/srv/node*}/swift-z02/containers/72189/f6d/467f4f5f5f4ae60b7dbe4fc6af45bf6d"
  26.  
  27. note: `/srv/node*` is used as default value of `devices`, the real value is set in the config file on each storage node.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement