swift-get-nodes(1)
β¨ swift-get-nodes(1) β¨
okay bestie, welcome to swift-get-nodes β it's the OpenStack Swift get-nodes tool, and it's literally about to tell you where your stuff actually lives. π
πΈ NAME πΈ
swift-get-nodes β the OpenStack Swift get-nodes tool. yes that's the whole vibe. she does one thing and she does it iconically.
π¦ SYNOPSIS π¦
swift-get-nodes [options] <ring.gz> <account> [<container> [<object>]]
Or
swift-get-nodes [options] <ring.gz> -p <partition>
Or
swift-get-nodes [options] -P policy_name <account> <container> <object>
π DESCRIPTION π
so like, swift-get-nodes is the tool you use to find out where a particular account, container, or object item is actually located inside your swift cluster nodes. it's giving "where does this thing live" energy. π
for example β and I'm obsessed with this β if you have the account hash and a container name that belongs to that account, you can use swift-get-nodes to look up where the container resides, by using the container ring. slay. β¨
π OPTIONS π
-h,--helpβ shows the help message and dips. exit. bye. π-a,--allβ show all the handoff nodes. all of them. the whole crew. π«Ά-p PARTITION,--partition=PARTITIONβ show nodes for a given partition. you give her a partition, she gives you nodes. simple as that. ποΈ-P POLICY_NAME,--policy-name=POLICY_NAMEβ specify storage policy name. yes capital P, don't mix her up with lowercase-p, they are NOT the same girl. π-d SWIFT_DIR,--swift-dir=SWIFT_DIRβ pass the location of the swift configuration file if it's different from the default location/etc/swift. π
Example:
$ swift-get-nodes /etc/swift/account.ring.gz MyAccount-12ac01446be2
Account MyAccount-12ac01446be2
Container None
Object None
Partition 221082
Hash d7e6ba68cfdce0f0e4ca7890e46cacce
Server:Port Device 172.24.24.29:6202 sdd
Server:Port Device 172.24.24.27:6202 sdr
Server:Port Device 172.24.24.32:6202 sde
Server:Port Device 172.24.24.26:6202 sdv [Handoff]
curl -I -XHEAD
http://172.24.24.29:6202/sdd/221082/MyAccount-12ac01446be2
curl -I -XHEAD
http://172.24.24.27:6202/sdr/221082/MyAccount-12ac01446be2
curl -I -XHEAD
http://172.24.24.32:6202/sde/221082/MyAccount-12ac01446be2
curl -I -XHEAD
http://172.24.24.26:6202/sdv/221082/MyAccount-12ac01446be2 #
[Handoff]
ssh 172.24.24.29 ls -lah
/srv/node/sdd/accounts/221082/cce/d7e6ba68cfdce0f0e4ca7890e46cacce/
ssh 172.24.24.27 ls -lah
/srv/node/sdr/accounts/221082/cce/d7e6ba68cfdce0f0e4ca7890e46cacce/
ssh 172.24.24.32 ls -lah
/srv/node/sde/accounts/221082/cce/d7e6ba68cfdce0f0e4ca7890e46cacce/
ssh 172.24.24.26 ls -lah
/srv/node/sdv/accounts/221082/cce/d7e6ba68cfdce0f0e4ca7890e46cacce/
# [Handoff]
look at her go. [Handoff] nodes and everything. ate. π
π DOCUMENTATION π
more documentation about OpenStack Swift can be found at https://docs.openstack.org/swift/latest/ β go read it, it's giving study session energy. π§
π SEE ALSO π
the whole friend group fr fr. π«Ά
okay that's the page, bestie. this was the Linux manual page for swift-get-nodes(1), dated 10/25/2016, from the OpenStack Swift source. stay slaying, and remember: the ring knows where everything is, and now so do you. β¨πππ
π¦ where this page comes from
- debian bookworm: swift 2.30.1-0+deb12u1 Β· Apache-2
- debian bookworm: swift 2.30.1-0+deb12u3 Β· Apache-2
- debian trixie: swift 2.35.1-0+deb13u3 Β· Apache-2
- debian trixie: swift 2.35.1-0+deb13u4 Β· Apache-2
- nixos 26.05: python3.13-swift 2.37.1
- nixos 26.05: python3.14-swift 2.37.1
- nixpkgs unstable: python3.13-swift 2.38.3
- nixpkgs unstable: python3.14-swift 2.38.3
- ubuntu jammy: swift 2.29.1-0ubuntu1 Β· Apache-2
- ubuntu jammy: swift 2.29.2-0ubuntu1.1 Β· Apache-2
- ubuntu noble: swift 2.33.0-0ubuntu1 Β· Apache-2
- ubuntu noble: swift 2.33.0-0ubuntu1.1 Β· Apache-2
- ubuntu questing: swift 2.36.0-0ubuntu1
- ubuntu questing: swift 2.36.0-0ubuntu1.1
- ubuntu resolute: swift 2.37.1-0ubuntu2 Β· Apache-2
- ubuntu resolute: swift 2.37.1-0ubuntu2.1 Β· Apache-2
- ubuntu stonking: swift 2.38.2-0ubuntu1 Β· Apache-2
- Copyright (c) 2010-2011 OpenStack Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms