HP CIFS Server Administrator's Guide (5900-1282, April 2011)

1. /etc/opt/samba/smb.conf.pkg1
2. /etc/opt/samba/smb.conf.pkg2
3. /etc/opt/samba/smb.conf.pkg3
There will be three directories:
1. /var/opt/samba/pkg1
2. /var/opt/samba/pkg2
3. /var/opt/samba/pkg3
...where the locks and log files will reside.
With most configurations, it will be easier to set up and maintain the dynamic security and data
files on shared disks. Therefore, you may want to create the /var/opt/samba/<package name>
paths used in the example on shared disks.
Complete the following for each CIFS package of your MC/ServiceGuard cluster:
1. Create the following directories:
/var/opt/samba/<package name>
/var/opt/samba/<package name>/locks
/var/opt/samba/<package name>/logs
/var/opt/samba/<package name >/private
where <package name> is the name for cluster package for your CIFS server. For example:
$mkdir /var/opt/samba/pkg1
$mkdir /var/opt/samba/pkg1/locks
$mkdir /var/opt/samba/pkg1/logs
$mkdir /var/opt/samba/pkg1/private
This step is IMPORTANT because these paths are referenced by the MCServiceGuard cluster
scripts, samba.cntl and samba.mon.
2. Create a file /etc/opt/samba/smb.conf.<package> (For example,
/etc/opt/samba/smb.conf.pkg1) with the following lines:
[global]
workgroup = ha_domain
netbios name = ha_server1
interfaces = XXX.XXX.XXX.XXX/xxx.xxx.xxx.xxx
bind interfaces only = yes
# Make sure there are no directories named starting
# with "log." if you plan to use "%m" this way
log file = /var/opt/samba/pkg1/logs/log.%m
lock directory = /var/opt/samba/pkg1/locks
pid directory = /var/opt/samba/pkg1/locks
smbpasswd file = /var/opt/samba/pkg1/private/smbpasswd
Replace the "XXX.XXX.XXX.XXX/xxx.xxx.xxx.xxx" with one relocatable IP address
and subnet mask for the MC ServiceGuard package.
If /opt/samba/bin/samba_setup was run during installation as suggested:
Take the workgroup line from the /etc/opt/samba/smb.conf file. Add in the rest of your
desired configuration items.
Take the NetBIOS name line from the same file, or, if there is no NetBIOS name line, put
in the UNIX host name for the server on the NetBIOS name line.
140 Configuring HA HP CIFS