RHEL: GlusterFS + XFS from CentOS repositories

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

RHEL: GlusterFS + XFS from CentOS repositories

Post by ^rooker »

NOTE: This may void your warranty/support with RedHat.
However, in case you have a running RHEL setup and would still like to do GlusterFS with XFS without the necessity for a Storage-subscription, here's how you do it:

1) Adding GlusterFS repositories to yum:
You will find the packages and repository information on the gluster.org servers:
https://download.gluster.org/pub/gluste ... .2/CentOS/

The CentOS repository sources are in a so called ".repo" file. Download this to "/etc/yum.repos.d" in your RHEL installation:

Code: Select all

$ wget -P /etc/yum.repos.d https://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.2/CentOS/glusterfs-epel.repo
Now you should be able to install glusterfs:

Code: Select all

$ yum install glusterfs glusterfs-fuse glusterfs-server

2) Adding XFS support:
This is a tiny little bit more effort, because the required .repo file, as well as the package signature keys are in CentOS' release RPM.

2a) Adding CentOS base repositories from RPM:
That package can be found on the CentOS repository mirrors:
http://mirror.centos.org/centos-6/

There, browse to the CentOS version that corresponds to your RHEL version (e.g. v6.5) and go to the subfolder:
"os/x86_64/Packages" (for 64bit).
There, search for a package named "centos-release".

Download that package to a local folder on your RHEL setup:

Code: Select all

$ wget http://mirror.centos.org/centos-6/6.5/os/x86_64/Packages/centos-release-6-5.el6.centos.11.1.x86_64.rpm
Now, you need to unpack the RPM without installing it:

Code: Select all

$ rpm2cpio centos-release-6-5.el6.centos.11.1.x86_64.rpm | cpio -idmv
You should now see 2 subfolders: "etc" and "usr".
Copy the following files to their corresponding position in your RHEL setup:
  • etc/yum.repos.d/CentOS-Base.repo
  • etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-*

2b) Adjust CentOS-Base.repo for RHEL:
RHEL fills the yum-variable "$releasever" with version number and the string "Server" or "Workstation". For example, a RHEL 6.5 would have:
releasever="6Server"
This is not compatible with CentOS, as there you only have the release version number:
releasever="6"
Edit your /etc/yum.repos.d/CentOS-Base.repo and replace "$releasever" with the version of your setup.
In my setup, I've used "6.5" to force the versions to be as exactly-matching as possible.
Here is an example how the "[base]" repo entry looks originally:

Code: Select all

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Let's replace the "$releasever" with its actual value:

Code: Select all

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=6.5&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
The rest can stay the same.

If everything went fine, you should now be able to install "xfsprogs":

Code: Select all

$ yum install xfsprogs
Voila.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply