Re: How do I implement an unmount only filesystem resource agent

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

 



On Mon, 2010-12-06 at 12:27 +0000, Jankowski, Chris wrote:
>  
> To have a foolproof HA service I need to:
>  
>       * Check, if the snapshot filesystem is mounted
>       * If it is, all processes running in it need to be killed
>       * Then the snapshot filesystem needs to be unmounted.


>  
> I could configure a script resource with a script that would do the 3
> steps listed above as part of its stop action.  It would have
> essentially null start and status actions.
>  
> Is there a better, more elegant way of achieving the same result e.g.
> using the filesystem resource?

In theory you could delete the 'start' operation from the agent, but I
think rgmanager will ignore that and try to start it anyway...

You could edit the 'fs' agent and make the 'stop' and 'status'
operations return 0 immediately, though.

-- Lon


--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux