Sun Cluster Data Service for Samba Guide for Solaris OS

ProcedureExample: Configure Cluster Resources for Samba

  1. Register the necessary data types on the single node cluster


    Vigor5# clresourcetype register SUNW.gds SUNW.HAStoragePlus
    
  2. Create the Samba resource group.


    Vigor5# clresourcegroup create -n Vigor5 samba-rg
    
  3. Create the logical host.


    Vigor5# clreslogicalhostname create -g samba-rg -h SMB1 samba-lh
    
  4. Create the SVM HAStoragePlus resource in the samba-rg resource group.


    Vigor5# clresource create -g samba-rg -t SUNW.HAStoragePlus \
    > -p FilesystemMountPoints=/zones sambaSVM-has
    
  5. Create the ZFS HAStoragePlus resource in the samba-rg resource group.


    Vigor5# clresource create -g samba-rg -t SUNW.HAStoragePlus \
    > -p Zpools=HAZpool sambaZFS-has
    
  6. Enable the resource group.


    Vigor5# clresourcegroup online -M samba-rg
    
  7. Create the Sun Cluster HA for Solaris Container Configuration file.


    Vigor5# cat > /var/tmp/sczbt_config <<-EOF
    RS=sambaFOZ
    RG=samba-rg
    PARAMETERDIR=/zones
    SC_NETWORK=true
    SC_LH=samba-lh
    FAILOVER=true
    HAS_RS=sambaSVM-has,sambaZFS-has
    
    Zonename=failover
    Zonebootopt=
    Milestone=multi-user-server
    Mounts=/local
    EOF
    
  8. Register the Sun Cluster HA for Solaris Container data service.


    Vigor5# /opt/SUNWsczone/sczbt/util/sczbt_register -f /var/tmp/sczbt_config
    
  9. Enable the failover zone resource


    Vigor5# clresource enable sambaFOZ