Boston Metro ClearCase Users Group March 27, 2001 ClearCase UNIX/NT Interoperability Using Samba - PowerPoint PPT Presentation

About This Presentation
Title:

Boston Metro ClearCase Users Group March 27, 2001 ClearCase UNIX/NT Interoperability Using Samba

Description:

comment = ClearCase View Storage. path = /data/ccase/vwstore/NT ... comment = Home directory. read only = No. browseable = No. Client side - smbsh, smbclient, smbtar ... – PowerPoint PPT presentation

Number of Views:120
Avg rating:3.0/5.0
Slides: 23
Provided by: david142
Category:

less

Transcript and Presenter's Notes

Title: Boston Metro ClearCase Users Group March 27, 2001 ClearCase UNIX/NT Interoperability Using Samba


1
Boston Metro ClearCase Users GroupMarch 27,
2001ClearCase UNIX/NT Interoperability Using
Samba
  • David Boyce
  • David Darby

2
SMB
  • What does SMB stand for?
  • Server Message Block
  • Used to be called Lanman
  • Many old protocols for WfWg/win95/98/NT
  • Also used for print sharing
  • What does NFS stand for?
  • Network File System

3
NFS vs. SMB
  • Per-client setup unnecessary
  • Microsofts SMB bias
  • SMB not better per se
  • Beneficial side effects

4
Other SMB Solutions
  • Total Access Server
  • Suns PC-Netlink / EAS
  • Network Appliance
  • Auspex
  • Dave (Mac)
  • EMC

5
Our Experiences
  • Fidelity DiskAccess, Samba 2.0.3 2.0.7
  • Progress Samba 2.0.7, NetApp
  • Home Lab - Samba 2.2 PDC
  • No discussion of printing

6
Samba Intro
  • Read Rationals TAS documentation
  • Version History and Capabilities
  • lt 2.00 (1.9.18 - Stable 1.X version)
  • 2.0.3 (works)
  • 2.0.4 (requires bugfix)
  • 2.0.5 (nktnw)
  • 2.0.7 Works with ClearCase 4.1
  • 2.2 Alpha still
  • smbd nmbd daemons
  • Oplocks always bad for interop
  • PDC Support
  • Build issues for multiple servers

7
Samba Risks
  • Unsupported today supported soon?
  • Whats the worst-case scenario? Occasional file
    corruptions.
  • Can co-exist with NFS.

8
Downloading Building Samba
  • Official Samba Site http//www.samba.org
  • Current released version (samba-latest.tar.gz)
  • http//us1.samba.org/samba/ftp/samba-latest.tar.gz
  • Use Standard GNU Compiler
  • http//www.sunfreeware.com
  • Build (./configure prefix/opt/samba)
  • Dont build in /tmp (checks file locking)

9
Samba Config Files
  • /opt/samba/lib/smb.conf
  • Global and per-share configuration
  • Most keywords work in both places
  • Use the testparm command
  • White space is ignored on left of
  • smbpassword map
  • domain group map
  • username map

10
Sample smb.conf (global)
  • Global parameters
  • server string Samba ClearCase VOB
    Server
  • workgroup ltMY_DOMAINgt
  • security DOMAIN
  • encrypt passwords Yes
  • password server ltPDCgt ltBDC1gt ltBDC2gt
  • client code page 437
  • max open files 1014
  • max log size 2000
  • wins server 155.1.58.55
  • allow hosts 172.26.0.0/255.255.0.0
  • guest account pcguest
  • dont descend /view
  • hosts deny lttroublesome machinegt

11
Sample smb.conf (per share)
  • Per Share parameters
  • vbstore
  • comment ClearCase VOB Storage
  • path /data/ccase/vbstore
  • admin users vobadm clearcase_albd
  • read list _at_ccusers
  • write list _at_ccusers
  • read only No
  • vwstore
  • comment ClearCase View Storage
  • path /data/ccase/vwstore/NT
  • admin users vobadm clearcase_albd
  • read list _at_ccusers
  • write list _at_ccusers
  • read only No

12
PDC Group File Changes
  • -------changed 1----------------------------ch
    anged to 1------------
  • root0root
    root0root,vobadm,dsb
  • --
  • -------changed 5----------------------------ch
    anged to 5------------
  • adm4root,adm,daemon
    adm4root,adm,daemon,vobadm,dsb
  • --
  • -------changed 13-------------------------chan
    ged to 13-15----------
  • -
    ccusers29000vobadm,dsb,tom,sally

  • clearcase30001clearcase_albd
  • -

13
User Map
  • !vobadmclearcase_albd

14
Group Map
  • rootAdministrators
  • "Domain Admins"Domain Admins
  • staffDomain Users

15
System Configuration 1
  • /etc/services
  • Samba Stuff
  • swat 901/tcp
    Samba Windowed Admin Tool
  • /etc/inetd.conf
  • Samba Stuff
  • swat stream tcp nowait.400 root
    /usr/local/samba/bin/swat swat

16
System Configuration 2
  • /etc/rc2.d/S78samba
  • ! /sbin/sh
  • Startup script for Solaris 7/Samba 2
  • David Boyce 8/9/99
  • case "1" in
  • start) /usr/local/samba/bin/smbd -D
  • /usr/local/samba/bin/nmbd -D
  • stop) /usr/bin/pkill 'snmbd'
  • restartreset)
  • /usr/bin/pkill 'snmbd'
  • /usr/local/samba/bin/smbd -D
  • /usr/local/samba/bin/nmbd -D
  • /usr/bin/pgrep -l 'snmbd'
  • ) echo "Usage 0 start stop restart
    " exit 1

17
Samba Web Administration Tool
  • http//hostname901
  • Best interface to documentation.
  • Best interface to current activity.

18
Clearcase Interoperability
  • Use shares liberally
  • Network Perl
  • Triggers
  • View Profiles (requires a subdir)
  • Config Specs
  • Install areas
  • Vob storage areas

19
Extra Benefits
  • Homes share (H\)
  • homes
  • comment Home directory
  • read only No
  • browseable No
  • Client side - smbsh, smbclient, smbtar
  • Registry changes - rpcclient
  • Good way to practice for TAS

20
Resources
  • http//www.samba.org
  • Many mailing lists there
  • News comp.protocols.smb
  • http//groups.google.com/
  • http//www.ping.be/linux-and-samba/
  • http//www.oreilly.com/catalog/samba/chapter/book/
    index.html

21
SFIO
  • Fd900 text program
  • Mnodes and setrlimit()

22
Tips
  • Use hosts allow and hosts deny for rollout
    (and security).
  • Use kill -USR1 ltpidgt to raise debug level and
    kill -USR2 to lower it.
  • Samples - ftp//ftp.cleartool.com/pub/Samba
Write a Comment
User Comments (0)
About PowerShow.com