Sheepdog on EL6

From Alteeve Wiki
Revision as of 05:03, 22 November 2011 by Digimer (talk | contribs) (Created page with "{{howto_header}} {{warning|1=This is essentially just a compilation of notes I made while playing with [http://www.osrg.net/sheepdog/ NTT's Sheepdog]. It may or may not become a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

 AN!Wiki :: How To :: Sheepdog on EL6

Warning: This is essentially just a compilation of notes I made while playing with NTT's Sheepdog. It may or may not become a complete tutorial someday.

Installing, configuring and using Sheepdog in EL6.

Install

Done as root (ya, I know...) on CentOS 6.0;

Install dependencies;

yum -y install corosynclib-devel subversion nss-devel zlib-devel

Corosync from source;

cd ~
yum -y remove corosync
svn co http://svn.fedorahosted.org/svn/corosync/branches/flatiron
cd flatiron
./autogen.sh
./configure
make install
cd ~

QEMU (needs >= v0.13);

cd ~
yum remove libvirt
git clone git://git.sv.gnu.org/qemu.git
cd qemu
./configure
make install
cd ~

Sheepdog;

cd ~
git clone git://github.com/collie/sheepdog.git
cd sheepdog
./autogen.sh
./configure
make rpm
rpm -ivh x86_64/sheepdog-0.*
cd ~


Base Cluster Config

vim /etc/cluster/cluster.com
# Please read the corosync.conf 5 manual page
compatibility: whitetank
totem {
  version: 2
  secauth: off
  threads: 0
  # Note, fail_recv_const is only needed if you're 
  # having problems with corosync crashing under 
  # heavy sheepdog traffic. This crash is due to 
  # delayed/resent/misordered multicast packets. 
  # fail_recv_const: 5000
  interface {
    ringnumber: 0
    bindnetaddr: -YOUR IP HERE-
    mcastaddr: 226.94.1.1
    mcastport: 5405
  }
}
logging {
  fileline: off
  to_stderr: no
  to_logfile: yes
  to_syslog: yes
  # the pathname of the log file
  logfile: /var/log/cluster/corosync.log
  debug: off
  timestamp: on
  logger_subsys {
    subsys: AMF
    debug: off
  }
}
amf {
  mode: disabled
}


 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.