Operating System - HP-UX
1838885 Members
2953 Online
110131 Solutions
New Discussion

Two or more Samba package in one node.

 
Sanjiv Sharma_1
Honored Contributor

Two or more Samba package in one node.

Hi,

I have 2*N-4000/HP-UX 11.00/MCSG.

I want to configure two or more separate samba package in server one.
Each samba configuration may have different samba server name. Failure of one samba package should not affect the other. I want to map the samba share with the package name.

How can I do this?

Thanks in advance.
Everything is possible
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Two or more Samba package in one node.

Sounds to me like a standard CIFS installation on the two servers.

Step 1. Use HP's depots...Link:
https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=B8725AA&date=

I would think running the CIFS in a Service guard environmetn would make it simply more reliable.

If server 1 goes down, server 2 keeps right on serving the samba share.

I'll be watching this thread to see what the real Service Guard folks say about that aspect. I would however start with the depot above.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sanjiv Sharma_1
Honored Contributor

Re: Two or more Samba package in one node.

Hi Steven,

I have installed Samba and configured it as one package. It is working fine.

How should I configure the 2nd Samba package on the same server?

Everything is possible
Rainer von Bongartz
Honored Contributor

Re: Two or more Samba package in one node.

Install the latest CIFS package from HP

Look in opt/samba/HA/active.active

for the README.

This will explain how to set up SAMBA for Service Guard.
Even if you dont't have MC/SG this will give you all the guidlines to set up two SAMBA server on one box.

Regards
Rainer




He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
U.SivaKumar_2
Honored Contributor

Re: Two or more Samba package in one node.

Hi,

AS far as I know , Running samba instances with different samba server names in a single server is simply not possible.

regards,

U.SivaKumar
Innovations are made when conventions are broken
Zeev Schultz
Honored Contributor

Re: Two or more Samba package in one node.

Hm,not sure but from the /opt/samba/HA/active_active:
"If there is no failover each node runs one of
the packages.IF a failover occurs,a cluster node will pick up a failed package in addition
to its original package"

Again the same active-active README file:

"The CIFS/9000 Server permits multiple instances of its NetBIOS and SMB
master demons.
Each CIFS Server has its own smb.conf file to define its behavior.
The NetBIOS name and IP address that the client connects
to is used to decide which smb.conf file is used for the connection.
This multiple CIFS master demon configuration allows CIFS/9000 to run
multiple MC/ServiceGuard packages simultaneously."

Regards

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Wodisch
Honored Contributor

Re: Two or more Samba package in one node.

HI,

not with CIFS, yet, but with plain Samba we've done that a couple of times in my company:
one samba per IP-address (virtual are ok). Each Samba in its own directories (/etc, /opt/, /var) and each one "listen"ing only on one IP-address - running fine.

FWIW,
Wodisch
Zeev Schultz
Honored Contributor

Re: Two or more Samba package in one node.

Woodich,and have different NetBIOS names of course?
So computers don't think yet. At least not chess computers. - Seymour Cray