Building Cman
We've started using cman and openais out of source control in hopes of staying ahead of bugs. There are a few things one needs to know.
Remove the packages
We're going to install this stuff in /usr, so make sure to remove any packaged versions:
rpm -e openais-devel cman-devel openais cman lvm2-cluster
Be root
The compiles work fine as regular users, but the "make install" steps explode if they are on NFS as non-root. Basically root-squash is in the way. It's much easier to build as root.
Building openais
Get openais trunk. http://svn.osdl.org/openais/trunk.
- Run "make".
- Run "make install DESTDIR=/". If you are on ppc64, use "make install ARCH=ppc DESTDIR=/" to force /usr/lib.
- Run "ldconfig -v".
Building Cman
- Get Cman CVS HEAD.
cvs -d :pserver:cvs@sources.redhat.com:/cvs/cluster login cvs cvs -d :pserver:cvs@sources.redhat.com:/cvs/cluster checkout cluster
- Apply these patches:
- Configure with the correct sbindir and libdir:
./configure --without_gfs --without_gfs2 --without_gnbd --sbindir=/sbin ./configure --without_gfs --without_gfs2 --without_gnbd --sbindir=/sbin --libdir=/usr/lib64
- Run "make".
- Run "make install".
First time only: /etc/init.d/cman expects three files to be in /usr/sbin instead of /sbin. Symlink them.
for i in cman_tool qdiskd mkqdisk do ln -s /sbin/$i /usr/sbin/ done
Cman should work just like from the packages. Hopefully