Operating System - HP-UX
1825552 Members
2466 Online
109681 Solutions
New Discussion юеВ

How to enable SAMBA on an hpux 11.23 ?

 
SOLVED
Go to solution
Silver_1
Regular Advisor

How to enable SAMBA on an hpux 11.23 ?

Gurus,

I have been asked to enable SAMBA server on one of our RX8620 server.

I have the following questions.

What is the impact on enabling samba ? Will it eat up more resources ?

How to enable it ?

Is samba and CIFS are same ?

This is my swlist output.

-
root@hp01:/root# swlist -l fileset |grep -i samba
# CIFS-Server A.01.11.04 HP CIFS Server (Samba) Fi
CIFS-Server.CIFS-DOC A.01.11.04 Samba Documentation (orig
# SG-Samba-Tool B.02.21 Serviceguard Samba Script
SG-Samba-Tool.CM-SAMBA B.02.21 Cluster Samba-Scripts
root@hp01:/root#

-

Are these software enough for enabling it?

Do we need to do any client config so that the windows client can access the server ?

Any suggestions and help is appreciated.
5 REPLIES 5
Geoff Wild
Honored Contributor
Solution

Re: How to enable SAMBA on an hpux 11.23 ?

First - install a newer version:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

There's docs there as well...

Config file for startup:

/etc/rc.config.d/samba

To start:

/sbin/init.d/samba start

Config files for samba are in:

/etc/opt/samba


Point browser to:

http://yourunixserver:901

That will take you to SWAT - web based way to manage samba.

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Chan 007
Honored Contributor

Re: How to enable SAMBA on an hpux 11.23 ?

Nair,

Files to look during the conf are,

/etc/rc.config.d/samba

/opt/samba/bin/startsmb - starting the samba
/opt/samba/bin/stopsmp - stop the samba

You can use the GUI to config your client, ensure that you have workstation/emulator for doing so.

Also, CIFS/SAMBA

CIFS - stands for Common Internet File System.
It is a type of file system (NFS etc)

Where SAMBA is a 3rd party software used to implement CIFS.

SAMBA uses SMP (Server Message Block) protocol for that purpose & works in the application layer of the TCP/IP suite.

Best of luck...
Chan



Zinky
Honored Contributor

Re: How to enable SAMBA on an hpux 11.23 ?

0. Make sure you are running the current release of Samba (the HP Built one called HP CIFS Server!) at: http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

1. Edit /etc/rc.config.d/samba to enable auto-start at boot.

2. Make sure :

/etc/services:
swat 901/tcp # SAMBA Web-based Admin Tool
/etc/inetd.conf:
swat stream tcp nowait.400 root /opt/samba/bin/swat swat

Add if not there and HUP (kill -HUP PID_of_Inetd)

3. Via a web browser - connect to http://hpserver_running_samba:901 (use root/pass)

SWAT will give you the best window to learn and configure Samba.
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
eric roseme
Respected Contributor

Re: How to enable SAMBA on an hpux 11.23 ?

What is the impact on enabling samba ? Will it eat up more resources ?

You may need to bump these kernel parms - if they are at default you will top out at client sessions at about 20:

nflocks
(10*maximum smbd)+(other apps + system)
example 1000 connected clients and baseline NFS system
(10*1000)+(2048) = 12048
nfile
((23+opens_per_smbd)*maximum smbd)+(other apps+system))
example 1000 connected clients and baseline NFS system
((23+7)*1000)+(8192)=38192
nproc
(maximum smbd)+(other apps+system)
example 1000 connected clients and baseline NFS system
(1000)+(1024)=2024

Keep in mind that when you start CIFS/Samba you are starting an nmbd process and a master smbd process. The master smbd will spawn a child smbd for every client connection - so if 1000 clients connect then you have 1001 smbd processes. For server throughput, your MBs is about the same as NFS, assuming that you have your front-end (network) and backend (storage) set up efficiently.

Eric Roseme
Silver_1
Regular Advisor

Re: How to enable SAMBA on an hpux 11.23 ?

I haven't enabled it but thanks for your info.