HP-UX HB v13.00 Ch-20 - CIFS

HP-UX Handbook Rev 13.00 Page 29 (of 40)
Chapter 20 CIFS
October 29, 2013
IP address switched, all the traffic that was going to the failed node now goes to the other active
node. The key is to have a CIFS Server configured to look and act just like the CIFS Server that
was running on the original node.
The /opt/samba/HA/README.txt file provides the smb.conf parameters that need to be
configured and the detailed instructions for completing the MC/SG configuration for CIFS.
Troubleshooting
The first thing is to separate the messages, according to client, process and time-stamp. If this is
done you need to ask the users what they did when expiring the problem.
Add to smb.conf into the [global] section:
debug timestamps = Yes default
debug pid = Yes this will prompt the smbd-pid for each message
log file = /var/opt/samba/log.%m this will create a logfile separately for each client
where %m is substituted to the netbios name of the
client
syslog = 0 this determines which loglevel is put to syslog, even
with "log level = 10" only errors (level 0) will go to
syslog.
debug level = 1 this will write down new established connections as
well. the same as "log level"
max log size = 1000 eventually more, depending on diskspace in
/var/opt/samba
These options together will do the following (clientname: fish):
The client fish connects a Samba share. A file /var/opt/samba/log.fish will be written and
according to log level the start of the smbd is documented with its pid. So it is possible to see if
the pid changes meanwhile you monitor the problem. You should ask the users when they
happened to see the problem. If you can identified the action that leads to the problem it might be
worthwhile to increase the log level and max log size (described below) in order to take a
snapshot of the problem only.
If you have identified the client which has got the problem, and you do not want to increase the
log level for all pc-client-connections you may increase the log level by sending the serving
smbd a specific signal:
Finding the serving smbd can be managed by smbstatus: