Using SAMBA Toolkit in a Serviceguard Cluster README Revision: B.06.00
1. When the CIFS Server is installed, the default HP CIFS Server may
be automatically configured to start during system startup. If the
Server is already installed and configured, simply stop it with the
/opt/samba/bin/stopsmb command.
2. Ensure the RUN_SAMBA parameter in the /etc/rc.config.d/samba file
is set to 0 on all nodes. This disables Automatic Startup when the
machine boots.
Here is a simple example of a multiple-instance configuration.
"<netbios_name>" used in the following steps needs to be replaced with
the appropriate name of the CIFS server.
1.Create directories
/var/opt/samba/<netbios_name>
/var/opt/samba/<netbios_name>/locks
/var/opt/samba/<netbios_name>/logs
For example,
$mkdir /var/opt/samba/smb1
$mkdir /var/opt/samba/smb1/locks
$mkdir /var/opt/samba/smb1/logs
2.Create a file /etc/opt/samba/smb.conf.<netbios_name> (For example,
/etc/opt/samba/smb.conf.smb1) with the following lines:
[global]
workgroup = ha_domain
netbios name = smb1
interfaces = XXX.XXX.XXX.XXX/xxx.xxx.xxx.xxx
bind interfaces only = yes
log file = /var/opt/samba/smb1/logs/log.%m
lock directory = /var/opt/samba/smb1/locks
pid directory = /var/opt/samba/smb1/locks
* Replace the "XXX.XXX.XXX.XXX/xxx.xxx.xxx.xxx" with one (space
separated) relocatable IP address and subnet mask for the
Serviceguard package.
* Copy the workgroup line from the /etc/opt/samba/smb.conf file.
* Copy the NetBIOS name line from the same file, or, if there is
no NetBIOS name line, enter the UNIX host name for the server
on the NetBIOS name line.
Add in the rest of desired configuration items.
* Please see "Special Notes" found at the end of this document
for configuration guidelines.
Include all HP CIFS Server users and their passwords of all instances
in all nodes using the command "smbpasswd <username>", where the
username must be a name that already exists in the standard UNIX
passwd file.
To use a shared file system, the file system must reside on shared