[Pacemaker] Filesystem resource agent patch
Marko Potocnik
marko.potocnik at gmail.com
Fri Mar 18 10:35:01 UTC 2011
If you use symbolic links in Filesystem resource agent directory parameter,
then monitoring operation fails, because actual mount point in /proc/mounts
(or the output of mount command) is diferent as the configured one.
Here is the patch that fixes this:
--- Filesystem_new_org 2011-03-18 11:32:37.000000000 +0100
+++ Filesystem_new 2011-03-18 12:27:35.000000000 +0100
@@ -1002,0 +1003,6 @@
+
+ #Resolve symlinks in MOUNTPOINT
+ resolved_mntpnt=`readlink -f $MOUNTPOINT`
+ if [ $? -eq 0 ]; then
+ MOUNTPOINT=$resolved_mntpnt
+ fi
Regards,
Marko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110318/8725b7f4/attachment-0003.html>
More information about the Pacemaker
mailing list