Configure/install Swift and Gluster-Swift on a RHEL/CentOS system

Here is step by step guide which helps you to configure/install Swift and Gluster-Swift on a RHEL system.

 

Install EPEL repo:

Install Openstack Repo:

Install glusterfs Repo:

Check if EPEL, glusterfs, and Openstack repos have been installed correctly:

Install Openstack Swift

Install gluster-swift from latest builds here: build.gluster.org/ As of now, RHEL6 RPMs are available only for grizzly version. We can just go ahead and use fedora builds for now. Alternatively, you can get the gluster-swift source code and run makerpm.sh in RHEL box.

The –nodeps option is mentioned as gluster-swift has hardcoded dependency on swift 1.9.1 Installing glusterfs

To perform the following tasks:

Create volumes and start Copy and rename conf files in /etc/swift Generate ring files

Follow the Quick Start Guide here : github.com/gluster/gluster-swift/blob/master/doc/markdown/quick_start_guide.md

Troubleshooting If you have python-jinja2 as missing dependency, you can install python-jinja2 from here: rpm.pbone.net/index.php3/stat/4/idpl/18007532/dir/redhat_el_6/com/python-jinja2-2.2.1-1.el6.rf.x86_64.rpm.html

yum install ftp.univie.ac.at/systems/linux/dag/redhat/el6/en/x86_64/dag/RPMS/python-jinja2-2.2.1-1.el6.rf.x86_64.rpm If you are unable to find mkfs.xfs command, you’ll have to install xfsprogs package from here: rpmfind.net/linux/rpm2html/search.php?query=xfsprogs If the logs in /var/log/httpd contain [Errno 111] ECONNREFUSED,

you need to set selinux to permissive or disabled by editing /ets/sysconfig/selinux and verify by running: getenforce