HP CIFS Server 3.0k Administrator's Guide version A.02.04
$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.
• Consider load balancing when creating the share paths.
• Consider whether you need to locate your smbpasswd and private files on a shared
volume, etc. You may want to review "Special Notes for HA HP CIFS Server" found at
the end of this section, now. If you run SWAT or smbpasswd utilities, keep in mind
that they will be operating on smb.conf not your smb.conf.<package name>
configuration. You may want to copy smb.conf.<package name> to smb.conf for
this reason. Domain security configurations require 'net join' to run in order to join the
domain. Since this command updates the secrets.tdb file, you should perform this
step after smb.conf has been updated with the correct (possibly shared logical volume)
path to the private directory (configured with "smb passwd file" in smb.conf).
Make sure that the file name is in all lowercase letters (e.g. /etc/opt/samba/smb.conf.pkg1,
NOT /etc/opt/samba/smb.conf.PKG1). If capital letters are used in the file name, failover
will not work properly.
3. Move all relevant data to the HP CIFS Server package shared volume.
Relevant data, consisting of all directories and files which will be accessed using HP CIFS
Server, should reside on shared volumes. This data includes any shares created by the user.
For example, if the HP CIFS Server administrator creates a TEST=c:/tmp/test share,
then all the data from /tmp/test should reside on a shared logical volume.
Below is an example of copied data from the required HP CIFS Server directories to the
logical volumes in the volume group vg01. The same can be done for pkg2.
mkdir /tmp/share1 /tmp/share2
172 Configuring HA HP CIFS