[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Cluster Failover Scripts...

On Thu, 2006-06-22 at 00:23 -0400, Vito Laurenza wrote:
> Hello all,
> I've written a script to notify via email on Cluster Suite events
> (failovers, etc) and have added it to my service in cluster.conf, but
> I've noticed that manual failovers are not processing properly.  My
> failover script runs, serviceB is relocated, but serviceA only stops
> on the source node and does not start on the destination node.

That's odd; what version of rgmanager is it?
> Is it ok to list more than one script per service in cluster.conf?  Am
> I going about this the wrong way?

Perfectly okay to list as many scripts as you want.  Out of curiosity,
does service B depend on service A?

>  <rm>
>    <failoverdomains>
>         <failoverdomain name="scalix_cluster_001" ordered="1"
> restricted="1">
>                 <failoverdomainnode name="serverA" priority="1"/>
>                 <failoverdomainnode name="serverB" priority="2"/>
>         </failoverdomain>
>    </failoverdomains>
>    <resources>
>         <ip address="<myip>" monitor_link="1"/>
>    </resources>
>    <service autostart="1" name="myservice">
>         <ip ref="<myip>"/>
>         <fs device="/dev/device" fstype="ext3" mountpoint="/somewhere"
> force_unmount="1" name="mysharedstorage"/>
>         <script file="/usr/local/bin/failover-notify"
> name="notify_script"/>
>         <scritp file="/etc/init.d/serviceA" name="serviceA_script"/>
>         <script file="/etc/init.d/serviceB" name="serviceB_script"/>
>    </service>
>  </rm>

That looks fine.

-- Lon

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]