Go to main content

Oracle® Solaris Cluster Data Service for Samba Guide

Exit Print View

Updated: February 2020
 
 

Debugging HA for Samba

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.

How to Turn On Debugging for HA for Samba

Perform this procedure on each node in the cluster.

  1. Display the /etc/syslog.conf file entries that contain the word "daemon".
    phys-schost-N# grep daemon /etc/syslog.conf
    *.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages
    *.alert;kern.err;daemon.err                     operator
  2. Open the /etc/syslog.conf file for editing and change daemon.notice to daemon.debug.

    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
  3. Restart the syslog daemon.
    phys-schost-N# svcadm restart system-log
  4. On each cluster node that has Samba or winbind components that require debug output, enable debugging.

    Edit the /opt/SUNWscsmb/instance/config file and set DEBUG= to either DEBUG=ALL or DEBUG=resource.

    instance

    The samba or winbind subdirectory.

    ALL

    Enables debugging for all resources of the Samba or winbind component.

    resource

    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.