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

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

 



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@xxxxxxxxxx [mailto:linux-cluster-bounces@xxxxxxxxxx] On Behalf Of Lon Hohberger
Sent: Thursday, 9 December 2010 06:49
To: linux clustering
Subject: Re:  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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

--
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