You can turn debugging on for all Samba or winbind instances or for only a particular Samba or winbind instance. A config file exists for this purpose. It is located in the /opt/SUNWscsmb/instance/etc directory, where instance refers to either samba or winbind.
If you need debugging enabled for HA for Samba across the entire cluster, perform the following procedure.
Perform this procedure on each node in the cluster.
phys-schost-N# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator
The following example output shows that daemon.debug is set.
phys-schost-N# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.debug;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator
phys-schost-N# svcadm restart system-log
Edit the /opt/SUNWscsmb/instance/config file and set DEBUG= to either DEBUG=ALL or DEBUG=resource.
The samba or winbind subdirectory.
Enables debugging for all resources of the Samba or winbind component.
Enables debugging only for the specified resource.
The following example output shows a Samba configuration file with DEBUG set to ALL, to enable debugging on all Samba resources.
phys-schost-N# cat /opt/SUNWscsmb/samba/etc/config # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # #ident "@(#)config 1.1 06/03/21 SMI" # # Usage: # DEBUG=<RESOURCE_NAME> or ALL # DEBUG=ALL
Next Steps
To turn off debugging, reverse the steps in the previous procedure.