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

Target Cluster Configuration

Software Configuration

Assumptions

Installing and Configuring Samba packaged with Solaris 10

Example: Prepare the Cluster for Samba

Example: Configure the Non-Global Zones

Example: Configure Cluster Resources for Samba

Example: Create the Samba smb.conf Configuration File

Example: Verify Samba

Example: Enable the Samba Software to Run in the Cluster

Example: Verify the HA for Samba resource group

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

C.  Deployment Example: Installing Samba in an HA Container

Index

Example: Create the Samba smb.conf Configuration File

  1. Create the Samba Configuration Directory.
    Vigor5# mkdir -p /local/samba/smb1
    Vigor5# cd /local/samba/smb1
    Vigor5# mkdir -p lib logs private shares var/locks
  2. Create the Samba smb.conf Configuration File.
    Vigor5# cat > /local/samba/smb1/lib/smb.conf <<-EOF [global] workgroup = PDC bind interfaces only = yes interfaces = SMB1/255.255.255.0 netbios name = SMB1 security = user server string = Samba (%v) domain (%h) pid directory = /local/samba/smb1/var/locks log file = /local/samba/smb1/logs/log.%m smb passwd file = /local/samba/smb1/private/smbpasswd private dir = /local/samba/smb1/private lock dir = /local/samba/smb1/var/locks domain logons = yes domain master = yes preferred master = yes [scmondir] comment = Monitor directory for Sun Cluster path = /tmp browseable = No EOF
  3. Test the Samba smb.conf Configuration File.
    Vigor5# /usr/sfw/bin/testparm -s /local/samba/smb1/lib/smb.conf
  4. Add the Samba Fault Monitor Userid.

    Note - You should specify samba as the password, otherwise you will need to change the SAMBA_FMPASS variable in Step 1 in Example: Enable the Samba Software to Run in the Cluster


    Vigor5# /usr/sfw/bin/smbpasswd -c /local/samba/smb1/lib/smb.conf -a homer