[Linux-cluster] How do I implement an unmount only filesystem resource agent
Jankowski, Chris
Chris.Jankowski at hp.com
Thu Dec 9 05:09:44 UTC 2010
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 at redhat.com [mailto:linux-cluster-bounces at 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 at redhat.com
https://www.redhat.com/mailman/listinfo/linux-cluster
More information about the Linux-cluster
mailing list