Go to main content

Oracle® Solaris Cluster Data Service for Samba Guide

Exit Print View

Updated: September 2015
 
 

How to Prepare the Cluster for HA for Samba

Perform this procedure to prepare the cluster for the HA for Samba data service in a failover resource group.

Before You Begin

Ensure that the /etc/netmasks file has IP-address subnet and netmask entries for all logical hostnames. If necessary, edit the /etc/netmasks file to add any missing entries.

  1. Assume a role that provides solaris.cluster.modify authorization.
  2. Register the SUNW.HAStoragePlus and SUNW.gds resource types.
    phys-schost-1# clresourcetype register SUNW.HAStoragePlus
    phys-schost-1# clresourcetype register SUNW.gds
  3. Create a failover resource group for Samba.
    phys-schost-1# clresourcegroup create -n nodelist samba-resource-group
  4. Create a resource for the Samba logical hostname.
    phys-schost-1# clreslogicalhostname create -g samba-resource-group \
    -h samba-logical-hostname samba-logical-hostname-resource
  5. Create a resource for the Samba disk storage.
    • If a ZFS highly available local file system is used, run the following command.
      phys-schost-1# clresource create -g samba-resource-group  \
      -t SUNW.HAStoragePlus \
      -p Zpools=samba-zspool \
      samba-hasp-resource
    • If a cluster file system or any other non-ZFS highly available local file system is used, run the following command.
      phys-schost-1# clresource create -g samba-resource-group \
      -t SUNW.HAStoragePlus \
      -p FilesystemMountPoints=samba-file-system-mountpoint \
      samba-hasp-resource
  6. Bring online the failover resource group for Samba that now includes the HAStoragePlus and logical hostname resources.
    phys-schost-1# clresourcegroup online -M samba-resource-group

Next Steps

Go to How to Configure Samba Software.