HP Serviceguard Enterprise Cluster Master Toolkit User Guide, June 2014
'machine password timeout', 604800 seconds by default), therefore, HP recommends that
you locate secrets.tdb on a shared storage. As with the smbpasswd file, the location of this
file is defined by the smb.conf parameter smb passwd file. For example, smb passwd
file = /var/opt/samba/shared_vol_1/private/smbpasswd will result in the
file/var/opt/samba/shared_vol_1/private/secrets.tdb .
To summarize, both the machine account file ( secrets.tdb) and the password file
(smbpasswd) must be placed on shared storage.
• Username Mapping File
The username mapping file for HP CIFS Server configuration must be located on the shared
file system. If you make any changes, all the nodes will be updated. The username mapping
file location is defined in smb.conf by the parameter 'username map', example, 'username
map = /var/opt/samba/shared_vol_1/username.map'. There is no username map file by
default.
• HP CIFS Server as a WINS Server
If HP CIFS Server is configured as a WINS server (that is, the WINS support parameter is set
to "yes"), the database /var/opt/samba/locks/browse.tdb will be stored.
If this file is not on a shared file system, when a failover occurs, all the WINS clients update
the CIFS WINS server with their address, which requires a short period of time. However, if
this short period of time to restore the WINS database is not acceptable, you can reduce the
period of time to restore the full WINS service.
To do so, configure /var/opt/samba/locks/browse.tdb to be a symbolic link to a
browse.tdb file on a shared file system. HP recommends that you to put the entire
/var/opt/samba/locks directory on a shared file system, because the locking data may not
be correctly interpreted after a failover.
• HP CIFS Server as a Master Browser
If HP CIFS Server is configured as the domain master browser that is, the domain master
support parameter is set to "yes", the database is stored in the /var/opt/samba/locks/
browse.tdb file. HP does not recommend doing this in an HA configuration.
However, if the CIFS Server is configured as the domain master browser, /var/opt/samba/
locks/browse.tdb must be set as a symbolic link to browse.tdb on the shared file system.
HP does not recommend putting the entire directory (/var/opt/samba/locks) on the shared
file system, as the locking data may not be correctly interpreted after a failover.
• Automatic Printer Sharing
If you configure network or shared printers, ensure all nodes configured to run the HP CIFS
Server also have access to the printers. When a failover occurs, the list of shared printers will
differ across clustered nodes.
• HP CIFS Server's LMHOSTS File
If the file LMNHOSTS is used to store static addresses of netbios names, put this file in the
shared file system. When you invoke nmbd, specify the path for LMNHOSTS with the -H
option. Ensure all package and tookit scripts include the -H option where nmbd is invoked.
Also edit the script /opt/samba/bin/startsmb to add the -H option where nmbd is
invoked.
Example:
Consider that the LMHOSTS file is in the /etc/cmcluster/smb1 directory, change the
following command in hasmb.sh:
In the start_samba_server function, change as follows:
134 Using SAMBA Toolkit in a Serviceguard Cluster