[Linux-cluster] How do I implement an unmount only filesystem resource agent
Jankowski, Chris
Chris.Jankowski at hp.com
Mon Dec 6 12:27:58 UTC 2010
Hi,
I am configuring a service that uses HA-LVM and XFS filesystem on top of it.
The filesystem will be backed up by a separate script run from cron(8) creating an LVM snapshot of the filesystem and mounting it on a mountpoint.
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.
All of that is a prerequisite for HA-LVM to be able to do its work on the volume group. HA-LVM needs to deactivate the volume group. Once this is done the relocation of the service to another node will succeed
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?
Thanks and regards,
Chris Jankowski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20101206/b40f0287/attachment.htm>
More information about the Linux-cluster
mailing list