Go to main content

Oracle® Solaris Cluster Data Service for Samba Guide

Exit Print View

Updated: September 2015
 
 

Example: Verify the Samba Configuration

  1. Log in to zc-node-1.
  2. Start and test the winbindd program.
    zc-node-1# winbindd -s /failover/samba/samba-lh/lib/smb.conf
    zc-node-1# getent passwd
    You should also see the users that are configured within the Active Directory domain
    zc-node-1# getent group
    You should also see the groups that are configured within the Active Directory domain
    zc-node-1# getent passwd hasmb
    You should see the passwd entry for user “hasmb”
  3. Start and test the smbd and nmbd programs.

    Confirm that the command output contains no errors.

    zc-node-1# smbd -s /failover/samba/samba-lh/lib/smb.conf -D
    zc-node-1# nmbd -s /failover/samba/samba-lh/lib/smb.conf -D
    zc-node-1# nmblookup samba-lh
    zc-node-1# smbclient -s /failover/samba/samba-lh/lib/smb.conf '\\samba-lh\scmondir' \
    -U hasmb -c 'pwd;exit'
    zc-node-1# smbclient -s /failover/samba/samba-lh/lib/smb.conf -N -L samba-lh
  4. On a Windows system that is part of the same Active Directory domain, configure usage of the SMB share.
    1. Go to My Computer -> Tools -> Map Network drive.
    2. Select a drive letter and set the \\samba-lh\data directory as the share.
    3. Create and access files in the share.
  5. Verify that you can confirm access from the Windows system that you configured in Step 4.
    zc-node-1# smbstatus -s /failover/samba/samba-lh/lib/smb.conf
  6. Stop the manually started Samba components.
    zc-node-1# pkill 'smbd|nmbd|winbindd‘
  7. Switch the samba-rg resource group to zc-node-2.
    zc-node-1# clresourcegroup switch -n zc-node-2 samba-rg
  8. Repeat this procedure on zc-node-2.