This procedure assumes that you installed the data service packages during your initial Sun Cluster installation.
If you did not install the Sun Cluster HA for Samba packages as part of your initial Sun Cluster installation, go to How to Install the Sun Cluster HA for Samba Packages.
Perform this procedure on one node of the cluster only.
On a cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.
Register the following resource types.
# clresourcetype register SUNW.HAStoragePlus # clresourcetype register SUNW.gds |
Create a failover resource group for the winbind shared network address.
Refer to Restriction for multiple Samba instances that require winbind for more information on the nodelist entry.
# clresourcegroup create -n nodelist winbind-failover-resource-group |
Create a resource for the winbind Logical Hostname.
# clressharedaddress create -g winbind-failover-resource-group \ > -h winbind-logical-hostname \ > winbind-logical-hostname-resource |
Create a scalable resource group for the scalable winbind resource.
Refer to Restriction for multiple Samba instances that require winbind for more information on the nodelist entry.
# clresourcegroup create -n nodelist -S \ > -p Maximum_primaries=maximum-number-active-primaries \ > -p Desired_primaries=desired-number-active-primaries \ > winbind-scalable-resource-group |
Create a resource for the winbind Disk Storage.
For a scalable HA Storage resource you must use a cluster file system.
# clresource create -g winbind-scalable-resource-group \ > -t SUNW.HAStoragePlus \ > -p FilesystemMountPoints=winbind-filesystem-mount-point \ > -x AffinityOn=FALSE \ > winbind-ha-storage-resource |
Enable the failover and scalable resource groups for winbind that now includes the HA Storage and Logical Hostname resources.
# clresourcegroup online -M winbind-failover-resource-group # clresourcegroup online -M winbind-scalable-resource-group |
Create and register a winbind resource.
If Samba was dynamically linked and is being used as an Active Directory Server member you must configure the LDPATH variable to point to the Samba lib directory.
Edit the samba_config file and follow the comments within that file. Ensure that SERVICES="winbindd" is specified. After you have edited samba_config, you must register the resource.
# cd /opt/SUNWscsmb/util # vi samba_config # ./samba_register |
The following modified deployment example has been taken from Deployment Example: Installing Samba from http://www.samba.org, which shows a winbind-scalable-resource-group and winbind-ha-storage-resource. The winbind configuration directory is also located in a cluster file system, /global/samba/winbind.
Vigor5# cat > /var/tmp/winbind_config <<-EOF #+++ Resource Specific Parameters +++ RS=winbind RG=winbindS-rg RS_LH=winbind-lh RS_HAS=winbindS-has SERVICES="winbindd" #+++ Common Parameters +++ BINDIR=/opt/samba/bin SBINDIR=/opt/samba/sbin CFGDIR=/global/samba/winbind LDPATH=/opt/samba/lib FMUSER=homer #+++ SMBD & NMBD Specific Parameters (See Note 1) +++ SAMBA_LOGDIR= SAMBA_FMPASS= SAMBA_FMDOMAIN= #+++ WINBIND Specific Parameters (See Note 2) +++ WINBIND_DISCACHE=FALSE WINBIND_SINGLEMODE=FALSE #+++ Zone Specific Parameters (See Note 3) +++ RS_ZONE= LHOST= PROJECT=default TIMEOUT=30 EOF |
Vigor5# /opt/SUNWscsmb/util/samba_register -f /var/tmp/winbind_config |
Enable the winbind resource.
# clresource enable winbind-resource |
Create and register a Samba resource in a failover resource group.
Follow steps 3, 4, 5, 6, 9, 10 and 11 in How to Register and Configure Sun Cluster HA for Samba in a failover resource group.
See Verifying the Sun Cluster HA for Samba Installation and Configuration