[OracleOSS] [TitleIndex] [WordIndex]

OCFS2/CManUnderO2CB/BuildingCman

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

  1. Get openais trunk. http://svn.osdl.org/openais/trunk.

  2. Run "make".
  3. Run "make install DESTDIR=/". If you are on ppc64, use "make install ARCH=ppc DESTDIR=/" to force /usr/lib.
  4. Run "ldconfig -v".

Building Cman

  1. 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
      
  2. Apply these patches:
    1. group-install-fix.patch

  3. 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
      
  4. Run "make".
  5. Run "make install".
  6. 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 :-)


2011-12-23 01:01