[Pacemaker] Running a custom script

Darren Mansell darren.mansell at gmail.com
Tue Mar 12 08:19:36 EDT 2013


Hi Michael. I wrote this a while back. It may not be what you're looking
for or it may be out of date but see if it helps.

http://wmdzone.blogspot.co.uk/2011/02/making-bash-scripts-ha-compatible.html

Sent from my Nexus.
On 12 Mar 2013 11:19, "Michael Smith" <michael.smith at hipcom.co.uk> wrote:

>  Hi,****
>
> ** **
>
> I think it’s quite simple but I can’t see how to do it.****
>
> ** **
>
> I have a two node cluster serving up a samba share and allowing access via
> sftp, these I have all working fine, but for the following.****
>
> ** **
>
> In order to have samba and sftp working together on the same directories I
> need to do a mount –o bind <path> <mountpoint>.****
>
> ** **
>
> This I need to be done when the cluster fails over, it’s a one off event
> and doesn’t have a any running process or require a start/stop script.  I
> have written the script but I now need it to run as a clustered resource,
> once the file system has been mounted (drdb) and before I start samba and
> set the virtual IP.****
>
> ** **
>
> Hope you can help.****
>
> ** **
>
> Thanks****
>
> ** **
>
> Michael Smith****
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130312/84fc9366/attachment-0003.html>


More information about the Pacemaker mailing list