This section contains the procedure to configure HA for Samba resources.
Perform this procedure on one node of the cluster only.
Before You Begin
Determine whether to deploy a single or multiple Samba instances, with or without winbind. See Multiple Samba Instances That Require winbind.
Ensure that HA for Samba packages are installed. See How to Install the HA for Samba Package.
Ensure that SERVICES="winbindd" is specified.
phys-schost-1# cd /opt/SUNWscsmb/util phys-schost-1# vi samba_config
phys-schost-1# ./samba_register
phys-schost-1# clresource enable winbind-resource
Perform this step on each node in the cluster.
phys-schost-N# touch /var/cluster/scsmb_key/opt/SUNWscsmb/.samba-lh_passwd phys-schost-N# chmod 600 /var/cluster/scsmb_key/opt/SUNWscsmb/.samba-lh_passwd phys-schost-N# dd if=/dev/urandom of=/var/cluster/scsmb_key bs=16 count=1 phys-schost-N# chmod 400 /var/cluster/scsmb_key phys-schost-N# echo 'password' | /usr/sfw/bin/openssl enc -aes128 -e -pass \ file:/var/cluster/scsmb_key -out /opt/SUNWscsmb/.samba-lh-passwd phys-schost-N# chmod 400 /opt/SUNWscsmb/.samba-lh_passwd
phys-schost-N# /usr/sfw/bin/openssl enc -aes128 -d \ -pass file:/var/cluster/scsmb_key -in /opt/SUNWscsmb/.samba-lh_passwd
Ensure that SERVICES="smbd" or SERVICES="smbd,nmbd" is specified.
phys-schost-1# cd /opt/SUNWscsmb/util phys-schost-1# vi samba_config
phys-schost-1# ./samba_register
phys-schost-1# clresource set -p Resource_dependencies=winbind-resource{local_node} \ samba-resource
phys-schost-1# clresource enable samba-resource
Next Steps
Go to Verifying the HA for Samba Installation and Configuration.