JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Cluster Data Service for Samba Guide
search filter icon
search icon

Document Information

Preface

1.  Installing and Configuring HA for Samba

A.  Deployment Example: Installing Samba packaged with Solaris 10

B.  Deployment Example: Installing Samba from http://www.samba.org

Target Cluster Configuration

Software Configuration

Assumptions

Installing and Configuring Samba downloaded from http://www.samba.org

Example: Preparing the Cluster for Samba

Example: Configuring the Non-Global Zones

Example: Configuring Cluster Resources for Samba

Example: Download and Configure Samba from http://www.samba.org

Example: Create the Samba smb.conf Configuration File

Example: Verify winbind and Samba

Example: Enabling the Samba Software to Run in the Cluster

Example: Verify the HA for Samba resource group

C.  Deployment Example: Installing Samba in an HA Container

Index

Example: Enabling the Samba Software to Run in the Cluster

  1. Create the HA for Samba Configuration file for winbind.
    Vigor5# cat > /var/tmp/winbind_config <<-EOF #+++ Resource Specific Parameters +++ RS=winbind RG=samba-rg RS_LH=samba-lh RS_HAS=sambaZFS-has SERVICES="winbindd" #+++ Common Parameters +++ BINDIR=/opt/samba/bin SBINDIR=/opt/samba/sbin CFGDIR=/local/samba/smb1 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
  2. Create the HA for Samba Configuration file for Samba.
    Vigor5# cat > /var/tmp/samba_config <<-EOF #+++ Resource Specific Parameters +++ RS=samba RG=samba-rg RS_LH=samba-lh RS_HAS=sambaZFS-has SERVICES="smbd" #+++ Common Parameters +++ BINDIR=/opt/samba/bin SBINDIR=/opt/samba/sbin CFGDIR=/local/samba/smb1 LDPATH=/opt/samba/lib FMUSER=homer #+++ SMBD & NMBD Specific Parameters (See Note 1) +++ SAMBA_LOGDIR=/local/samba/smb1/logs SAMBA_FMPASS=smb4#ads SAMBA_FMDOMAIN= #+++ WINBIND Specific Parameters (See Note 2) +++ WINBIND_DISCACHE= WINBIND_SINGLEMODE= #+++ Zone Specific Parameters (See Note 3) +++ RS_ZONE= LHOST= PROJECT=default TIMEOUT=30 EOF
  3. Register the HA for Samba data service for winbind and Samba.
    Vigor5# /opt/SUNWscsmb/util/samba_register -f /var/tmp/winbind_config
    Vigor5# /opt/SUNWscsmb/util/samba_register -f /var/tmp/samba_config
  4. Make the Samba resource dependent on winbind the resources.
    Vigor5# clresource set -p Resource_dependencies=winbind{local_node} samba
  5. Enable the resources.
    Vigor5# clresource enable winbind
    Vigor5# clresource enable samba