Samba/Cluster

= Introduction =

There are changes that you have a high samba share load and you need to have 2 or more samba server to serve the same group of users.

We can do that via CTDB and some cluster files system.

Our guide are focus on version 2.5.4 and above, version 1 is not covered on this guide

Topology
Below are the minimal requirement for ctdb:
 * 1) 2 node
 * 2) an Extra NIC for ctdb services which have no address (Samba ctdb will take over this nic and assign ip)
 * 3) Each node at least 1 IP address for ctdb services
 * 4) A Shared cluster drive OCFS2, GFS or other

= Getting CTDB =

From Poly-C Layman
Let hope when this guide is ready the new ctdb-2.5.4 already in portage. Else you will need to get from layman on poly-c

Unmaks CTDB
Before this let's unmask ctdb 2.5.4

Emerge CTDB
= Configure CTDB =

A Basical running CTDB are simple with the latest configuration

Assumption: Node 1 eth1 Private IP: 192.168.100.11 (CTDB node IP) Node 1 eth2 Public IP: 192.168.10.11 (Servicing IP) Node 2 eth1 Private IP: 192.168.100.12 (CTDB node IP) Node 2 eth2 Public IP: 192.168.10.12 (Servicing IP) Both running on eth2 Running OCFS2

eth2 will need to start without any ip.

CTDB Configuration Change
We will need to make a few changes.

Samba Configuration Change
Please change this on both samba server

We are done on configuration

= Start and Stop CTDB =

Stop
Done