Building CTDB and Samba

CTDB

To build a copy of the CTDB code you should do this:
   cd ctdb
   ./autogen.sh
   ./configure
   make
   make install
You need to install ctdb on all nodes of your cluster.

Samba3

To build a copy of Samba3 with clustering and ctdb support you should do this:
    cd samba_3_0_ctdb/source
    ./autogen.sh
    ./configure --with-ctdb=/usr/src/ctdb --with-cluster-support --enable-pie=no
    make proto
    make
Once compiled, you should install Samba on all cluster nodes.

The /usr/src/ctdb path should be replaced with the path to the ctdb sources that you downloaded above.