swift-get-nodes1
Openstack swift get-nodes tool
Usage
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>
Overview
The swift-get-nodes tool can be used to find out the location where a particular account, container or object item is located within the swift cluster nodes. For example, if you have the account hash and a container name that belongs to that account, you can use swift-get-nodes to lookup where the container resides by using the container ring.
Options
-
-h --help -
Shows the help message and exit
-
-a, --all -
Show all handoff nodes
-
-p PARTITION, --partition=PARTITION -
Show nodes for a given partition
-
-P POLICY_NAME, --policy-name=POLICY_NAME -
Specify storage policy name
-
-d SWIFT_DIR, --swift-dir=SWIFT_DIR -
Pass location of swift configuration file if 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]
Documentation
More documentation about OpenStack Swift can be found at https://docs.openstack.org/swift/latest/
Releases
6 releases since Debian 8 (Jessie); the text changed 2 times.
--all since Debian 10 (Buster);
--help since Debian 10 (Buster);
--partition since Debian 10 (Buster);
--policy-name since Debian 10 (Buster);
--swift-dir since Debian 10 (Buster);
-P since Debian 10 (Buster);
-a since Debian 10 (Buster);
-d since Debian 10 (Buster);
-h since Debian 10 (Buster);
-p since Debian 10 (Buster).