Operating System - HP-UX
1826215 Members
2795 Online
109691 Solutions
New Discussion

Configure Samba as ServiceGuard package or service

 
SOLVED
Go to solution
John Kittel
Trusted Contributor

Configure Samba as ServiceGuard package or service

Is there documentation ( tutorial, how-to, simple set of instructions, ...) for configuring Samba to run as a ServiceGuard package or service?

I want to have Samba offer a couple directory services ( disk shares ) which will be located on a ServiceGuard switchable filesystem, and follow one of our existing application packages to whichever node it is running on.

- John
4 REPLIES 4
Geoff Wild
Honored Contributor
Solution

Re: Configure Samba as ServiceGuard package or service

Yes, in:

/opt/samba/HA

I'm doing it that way on one server as well as from the control script on another:

function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
/etc/cmcluster/PRD/sapdbci.cntl startDBCI PRD
test_return 51
/opt/samba/bin/startsmb
}

# This function is a place holder for customer define functions.
# You should define all actions you want to happen here, before the service is
# halted.

function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
/etc/cmcluster/PRD/sapdbci.cntl stopDBCI PRD
test_return 52
/opt/samba/bin/stopsmb
}

# END OF CUSTOMER DEFINED FUNCTIONS

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.
Sundar_7
Honored Contributor

Re: Configure Samba as ServiceGuard package or service

Yes, refer the documents in the /opt/samba/HA. You can have active-active or active-passive configuration. In active-active there will be more than one Samba instance can be running in a node. In active-standby, samba will only be running in one node, with the other node ready to take over the package incase of any hardware failures to the primary node.

You might want to disable the AUTO_RUN of the samba package and have it started/halted by your application package. this is how we do it
Learn What to do ,How to do and more importantly When to do ?
John Kittel
Trusted Contributor

Re: Configure Samba as ServiceGuard package or service

Thanks Geoff. I think that will get me through. I had earlier found an old HP technical document that didn't quite do the job for me, and it said some docs were in /opt/samba/docs/HA - which I found did not exist. I didn't notice there was a /opt/samba/HA directory.

- John
John Kittel
Trusted Contributor

Re: Configure Samba as ServiceGuard package or service

Thanks too, Sundar.