Howto: Install GlusterFS 3.0.4 - RHEL 5.4 / Debian Lenny

Tag: 


Here is a basic howto for installing GlusterFS onto either a Debian Lenny or RHEL 5.4 install. I originally had some issues with getting FUSE kernel mod to load properly under RHEL but found building the tar.gz from the gluster ftp worked. For RHEL
rpm -ivh http://ftp.gluster.com/pub/gluster/glusterfs/3.0/3.0.4/RHEL/glusterfs-3.0.4-1.src.rpm
yum -y install libibverbs-devel flex bison
rpmbuild -ta glusterfs-3.0.4.tar.gz
rpm -ivh glusterfs*
wget http://ftp.zresearch.com/pub/gluster/glusterfs/fuse/fuse-2.7.4glfs11.tar.gz
rpmbuild -ta fuse-2.7.4glfs11.tar.gz 
rpm -Uvh /usr/src/redhat/RPMS/i386/kernel-module-fuse*
rpm -Uvh /usr/src/redhat/RPMS/i386/fuse-*
rmmod fuse
depmod -a
modprobe fuse
For Debian
vi /etc/apt/sources.list
 
...
deb http://www.backports.org/debian lenny-backports main contrib non-free
...
apt-get install debian-backports-keyring
apt-get update
apt-get install glusterfs-client
apt-get install glusterfs-server
And then for both...
mkdir /mnt/glusterfs
mkdir /data/
mkdir /data/export
mkdir /data/export-ns
vi /etc/glusterfs/glusterfs.vol
 
volume drupal1
  type protocol/client
  option transport-type tcp
  option remote-host 10.228.253.228
  option remote-subvolume brick
end-volume
volume drupal2
  type protocol/client
  option transport-type tcp
  option remote-host 10.228.253.29
  option remote-subvolume brick
end-volume
volume files
  type cluster/replicate
  subvolumes drupal1 drupal2
end-volume
volume writebehind
  type performance/write-behind
  option window-size 1MB
  subvolumes files
end-volume
volume cache
  type performance/io-cache
  option cache-size 512MB
  subvolumes writebehind
end-volume
vi /etc/glusterfs/glusterfsd.vol
 
volume posix
  type storage/posix
  option directory /data/export
end-volume
volume locks
  type features/locks
  subvolumes posix
end-volume
volume brick
  type performance/io-threads
  option thread-count 8
  subvolumes locks
end-volume
volume server
  type protocol/server
  option transport-type tcp
  option auth.addr.brick.allow 10.*
  subvolumes brick
end-volume
vi /etc/fstab
 
...
/etc/glusterfs/glusterfs.vol /mnt/glusterfs glusterfs defaults,_netdev 0 0
...
/etc/init.d/gluster-server start
mount /mnt/glusterfs

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.