apt-get update apt-get upgradeThen download the needed files with the following commands
wget http://download.gluster.org/pub/gluster/glusterfs/3.5/LATEST/Debian/apt/pool/main/g/glusterfs/glusterfs_3.5.0.orig.tar.gz wget http://download.gluster.org/pub/gluster/glusterfs/3.5/LATEST/Debian/apt/pool/main/g/glusterfs/glusterfs_3.5.0-1.dsc wget http://download.gluster.org/pub/gluster/glusterfs/3.5/LATEST/Debian/apt/pool/main/g/glusterfs/glusterfs_3.5.0-1.debian.tar.gzNow extract the archives
tar xzvf glusterfs_3.5.0.orig.tar.gz tar xzvf glusterfs_3.5.0-1.debian.tar.gzWe need some tools so
apt-get install devscriptsThen we move the debian folder into the glusterfs folder and change into the glusterfs folder
mv debian glusterfs-3.5.0/ cd glusterfs-3.5.0Next run
debuild -us -ucThis will start but will throw dependency errors.
Unmet build dependencies: dh-autoreconf libfuse-dev (>= 2.6.5) libibverbs-dev (>= 1.0.4) libdb-dev attr flex bison libreadline-dev libncurses5-dev libssl-dev libxml2-dev python-all-dev (>= 2.6.6-3~) liblvm2-dev libaio-dev librdmacm-dev chrpath hardening-wrapperWhich I resolved with
apt-get install dh-autoreconf libfuse-dev libibverbs-dev libdb-dev attr flex bison libreadline-dev libncurses5-dev libssl-dev libxml2-dev python-all-dev liblvm2-dev libaio-dev librdmacm-dev chrpath hardening-wrapperWith the dependencies installed I ran
debuild -us -ucThis may output some warnings. On my system I had a few warnings and 2 errors "N: 24 tags overridden (2 errors, 18 warnings, 4 info)", but it didn't seem to affect anything.
make make installThe Make probably isn't necessary, Once installed we need to start the service
/etc/init.d/glusterd startYou can check everything is working ok with
gluster peer statusThis should return
Number of Peers: 0The only thing left to do is ensure glusterd starts with the system
update-rc.d glusterd defaultsAnd we're all set. Now you can take a look at Part 4
Labels: GlusterFS, Linux, RaspberryPI