Username Mapping File

If the HP CIFS Server configuration is set to use a username mapping file, it should be located on a shared file system. This way, if changes are made, all the nodes will always be up-to-date. 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, there will be a short period of time when all the WINS clients update the CIFS WINS server with their address. 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. It is not recommended 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 will be 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 should 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 network/shared printers are configured, ensure all nodes configured to run the HP CIFS Server also have access to the printers. Otherwise, when a failover occurs, the list of shared printers will differ across clustered nodes, resulting in problems for clients accessing those printers.

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 invoking 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:

Assuming that the LMHOSTS file is in the /etc/cmcluster/smb1 directory, the following lines need to be changed in hasmb.sh:

In the start_samba_server function, change as follows:

(old) /opt/samba/bin/nmbd -D -1${LOG_DIRECTORY} -s ${CONF_FILE} (new) /opt/samba/bin/nmbd -D -1${LOG_DIRECTORY} -s ${CONF_FILE} \ -H /etc/cmcluster/smb1/lmhosts

For more information see lmhosts (1M) manpage.

Special Notes 137