Tech:Swift

Swift is a OpenStack run project that offers cloud storage software using a API.

Remember to run, which will make sure you have the credentials for the   command.

List containers / objects
You can list all container by doing.

You can list all files within a container by doing.

You can list all files within a path by doing.

To report the size you can either add  or in human format.

Statistics
You can run the following  to get the stats on the container.

You can run the following  to get stats for a file.

Create a account file
1. Run.

Note: The partition size must be nearest to the power of 2.

2. Run.

3. Run  to see your changes.

4. Once you are happy, deploy the account file by copying to.

Adding a new account server
You can find this file at. Copy it elsewhere so your changes aren't deployed unless you are happy with them. After you've run the following, copy the files back to.

1. Run the following, remember to replace where  are listed. .

Note: --device is basically the folder it'll be stored under /srv/node on the swift account server you are adding.

2. Run

3. You can see your changes with.

4. Once you are happy, deploy the account file by copying back to.

Create a container file
1. Run.

Note: The partition size must be nearest to the power of 2.

2. Run.

3. Run  to see your changes.

4. Once you are happy, deploy the container file by copying to.

Adding a new container server
You can find this file at. Copy it elsewhere so your changes aren't deployed unless you are happy with them. After you've run the following, copy the files back to.

1. Run the following, remember to replace where  are listed. .

Note: --device is basically the folder it'll be stored under /srv/node on the swift account server you are adding.

2. Run.

3. You can see your changes with.

4. Once you are happy, deploy the container files by copying back to.

Create a object file
1. Run.

Note: The partition size must be nearest to the power of 2.

2. Run.

3. Run  to see your changes.

4. Once you are happy, deploy the object file by copying to.

Adding a new object server
You can find this file at. Copy it elsewhere so your changes aren't deployed unless you are happy with them. After you've run the following, copy the files back to.

1. Run the following, remember to replace where  are listed. .

Note: --device is basically the folder it'll be stored under /srv/node on the swift object server you are adding.

2. Run.

3. You can see your changes with.

4. Once you are happy, deploy the object file by copying back to.

Help Resources

 * Create Rings
 * Removing a object server