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

Re: [Linux-cluster] How do I implement an unmount only filesystem resource agent



Lon,

Thank you for your suggestion.

In the meantime, I developed a script to do the unmount of a snapshot on stop and configured it as an additional resource agent of the type script.

This works very well.

Regards,

Chris Jankowski

-----Original Message-----
From: linux-cluster-bounces redhat com [mailto:linux-cluster-bounces redhat com] On Behalf Of Lon Hohberger
Sent: Thursday, 9 December 2010 06:49
To: linux clustering
Subject: Re: [Linux-cluster] How do I implement an unmount only filesystem resource agent

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 redhat com
https://www.redhat.com/mailman/listinfo/linux-cluster


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