Installation guide
Section 6.2:Setting Up a High Availability Samba Service 117
6.2.4 Example Samba Service Configuration
In order to illustrate the configuration process for a Samba service, an example configuration is de-
scribed in this section. This example consists of setting up a single Samba share which houses the
home directories of four members of the accounting team. The accounting team will then access this
share from their Windows based systems.
The following are the service configuration parameters which will be used as well as some descriptive
commentary.
• Service Name — samba_acct. This name was chosen as a reminder of the service’s intended
function to provide exports to the members of the accounting team.
• Preferred Member —
clu4. In this example cluster, the member names are clu3 and clu4.
• User Script — The cluster infrastructure includes support for Samba services. Consequently, there
is no need to create a User Script when configuring a Samba service. For this reason, when
prompted to specify a User Script, the default value of
None should be selected.
• Monitoring Interval —
90 seconds.
• IP Address —
10.0.0.10. There is a corresponding hostname of cluacct associated with this IP
address, by which Windows based clients access the share. Note that this IP address is distinct
from that of both cluster members (clu3 and clu4). The default netmask and broadcast address
will be used.
• Mount Information — /dev/sdb10 refers to the partition on the shared storage RAID box on
which the filesystem will be physically stored.
ext2 refers to the filesystem type which was spec-
ified when the filesystem was created. /mnt/users/accounting specifies the filesystem
mount point. rw,nosuid,sync are the mount options.
• Export Information — for simplicity in this example, the filesystem is not being NFS exported.
• Share Name — acct. This is the share name by which Windows based clients will access this
Samba share, e.g. \\10.0.0.10\acct.
The following is an excerpt of the /etc/hosts file used to represent IP addresses and associated
hostnames used within the cluster:
10.0.0.3 clu3 # cluster member
10.0.0.4 clu4 # second cluster member
10.0.0.10 cluacct # floating IP address associated with accounting team NFS service
The following is an excerpt from running cluadmin to configure this example Samba service: