Oracle® Solaris Cluster Data Service for Samba Guide

Exit Print View

Updated: July 2014, E40565-01
 
 

Example: Verify the HA for Samba Resource Group

Before You Begin

Ensure that the samba-rg resource group is online on zone-cluster node zc-node-1.

  1. Verify the status of the cluster resources and resource group.
    zc-node-1# clresourcegroup status samba-rg 
    zc-node-1# clresource status -g samba-rg
  2. Verify the Samba functionality without manually starting the Samba daemons.

    Confirm that the command output contains no errors.

    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 
    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
  3. 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.
  4. Verify that you can confirm access from the Windows system that you configured in Step 3.
    zc-node-1# smbstatus -s /failover/samba/samba-lh/lib/smb.conf
  5. Switch the samba-rg resource group to the other zone cluster node, zc-node-2, and perform Step 2 and Step 3.
    zc-node-1# clresourcegroup switch -n zc-node-2-samba-rg