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

 * To list all containers by doing.
 * To list all files within a container by doing.
 * To list all files within a path by doing.
 * To report the size, you can either add  or in human format.

Transferring files (swift upload and swift download)

 * To download files from a wiki, you can use.
 * To upload files to a container (for example if manually providing a dump) you can use.

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 an account file

 * 1) Run.
 * The partition size must be nearest to the power of 2.
 * 1) Run.
 * 2) Run   to see your changes.
 * 3) Once you are happy with the changes, 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..
 * is basically the folder it'll be stored under /srv/node on the swift account server you are adding.
 * 1) Run.
 * 2) You can see your changes with.
 * 3) Once you are happy with the changes, deploy the account file by copying back to.

Create a container file

 * 1) Run.
 * The partition size must be nearest to the power of 2.
 * 1) Run.
 * 2) Run   to see your changes.
 * 3) Once you are happy with the changes, 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..
 * is basically the folder it'll be stored under /srv/node on the swift account server you are adding.
 * 1) Run.
 * 2) You can see your changes with.
 * 3) Once you are happy with the changes, deploy the container files by copying back to.

Create an object file

 * 1) Run.
 * The partition size must be nearest to the power of 2.
 * 1) Run.
 * 2) Run   to see your changes.
 * 3) Once you are happy with the changes, 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..
 * is basically the folder it'll be stored under /srv/node on the swift object server you are adding.
 * 1) Run.
 * 2) You can see your changes with.
 * 3) Once you are happy with the changes, deploy the object file by copying back to.

Help Resources

 * Create Rings
 * Removing a object server