Sun Cluster Data Service for Samba Guide for Solaris OS

Verifying the Installation and Configuration of Samba

This section contains the procedure you need to verify the installation and configuration.

ProcedureHow to Verify the Installation and Configuration of Samba

This procedure does not verify that your application is highly available because you have not yet installed your data service.


Note –

Before verifying the Installation and Configuration of Samba, ensure that the Logical Hostname for the Samba is available. To do this, complete steps 4, 6, and 7 in How to Register and Configure Sun Cluster HA for Samba as a Failover Service.


Steps
  1. Test the smb.conf file.

    1. Test the Samba smb.conf file.


      # <samba-bin-directory>/testparm  \
      <samba-configuration-directory>/lib/smb.conf 
      
    2. Test the Winbind smb.conf file (if required).


      # <samba-bin-directory>/testparm  \
      <winbind-configuration-directory>/lib/smb.conf
      
  2. If configured as an NT Domain Member, join the domain.


    # <samba-bin-directory>/smbpasswd  \
     -c <samba-config-directory>/lib/smb.conf  \
     -j <DOMAIN> -r <PDC > \
     -U <Administrator on the PDC>
    

    If successful, you will receive the following message.


    # smbpasswd: Joined domain <DOMAIN>
    

    # <samba-bin-directory>/net \
     -s <samba-config-directory>/lib/smb.conf  \
     \
     -U <Administrator on the PDC>
    

    If successful, you will receive the following message.


    # Joined domain <DOMAIN>
    
  3. If configured as an member of a Windows 200x with ADS , join the realm.


    # <samba-bin-directory>/net \
     -s <samba-config-directory>/lib/smb.conf  \
     \
     -U <Administrator on the PDC>
    

    If successful, you will receive the following message.


    # Joined <NETBIOS> to realm  <REALM>
    
  4. Start the Samba daemons.


    Note –

    Depending on how Samba was installed, the smbd and nmbd programs may be located within the <samba-bin-directory> or <samba-sbin-directory>.



    # <samba-[s]bin-directory>/smbd -s <samba-config-directory>/lib/smb.conf -D
    # <samba-[s]bin-directory>/nmbd -s <samba-config-directory>/lib/smb.conf -D
    
  5. Connect to Samba.


    # <samba-bin-directory>/smbclient -N -L <NetBIOS-name>
    # <samba-bin-directory>/smbclient '\\<NetBIOS-name>\scmondir'  \
     -U <fmuser> -c 'pwd;exit' 
    

    Note –

    Single quotes are required on the last command.


  6. Start the Winbind daemon (if required).


    Note –

    Depending on how Samba was installed, the winbind program may be located within the <samba-bin-directory> or <samba-sbin-directory>.



    # <samba-[s]bin-directory>/winbindd -s <winbind-configuration-directory>/lib/smb.conf  &
    
  7. Connect to Winbind (if required).


    # getent passwd
    # getent group
    
  8. Stop the Samba daemons and winbindd (if required).


    # pkill -TERM smbd
    # pkill -TERM nmbd
    # pkill -TERM winbindd