This document provides instructions for setting up a clustered Samba file server using GlusterFS and CTDB. It begins with an overview of CTDB and why it is needed when using GlusterFS with CIFS/NFS clients instead of native clients. It then describes the steps to configure GlusterFS volumes, install CTDB, configure the network topology with separate interconnects for GlusterFS and CTDB, and integrate Samba with CTDB. The goal is to provide features like floating IP addresses and shared file locks across multiple Samba servers using the distributed storage provided by GlusterFS.