X-Git-Url: https://arthur.barton.de/gitweb/?p=ocf-ra.git;a=blobdiff_plain;f=OCFS2_DRBD;h=9ab7a5da5f0377aa7a948ee8cfc36438a562485f;hp=495de5a5894ed99f1ff68eb94f505b2c73c093b2;hb=4a954b54191633bd2779e421400d79b52dadd302;hpb=bcfb8d3f346f80d5e6d1eccac8fd78a8c3945c41 diff --git a/OCFS2_DRBD b/OCFS2_DRBD index 495de5a..9ab7a5d 100755 --- a/OCFS2_DRBD +++ b/OCFS2_DRBD @@ -36,7 +36,7 @@ meta_data() { -1.4 +1.5 This Resource Agent starts and stops OCFS2 file systems located on DRBD devices. @@ -59,6 +59,11 @@ This Resource Agent starts and stops OCFS2 file systems located on DRBD devices. Mountpoint for OCFS2 filesystem + +Reload CRON configuration after mounting OCFS2 filesystem +Reload CRON configuration + + @@ -66,7 +71,7 @@ This Resource Agent starts and stops OCFS2 file systems located on DRBD devices. - + END @@ -84,10 +89,14 @@ ClusterFS_start() { if [ $? -ne 0 ]; then return $OCF_ERR_GENERIC fi - mount -t ocfs2 "$OCF_RESKEY_drbd_dev" "$OCF_RESKEY_mountpoint" + mount -t ocfs2 -o noatime \ + "$OCF_RESKEY_drbd_dev" "$OCF_RESKEY_mountpoint" if [ $? -ne 0 ]; then return $OCF_ERR_GENERIC fi + if [ "$OCF_RESKEY_reload_cron" = "1" ]; then + [ -d /etc/cron.d ] && touch /etc/cron.d + fi return $OCF_SUCCESS } @@ -120,6 +129,9 @@ ClusterFS_stop() { fi fi drbdadm secondary "$OCF_RESKEY_drbd" + if [ "$OCF_RESKEY_reload_cron" = "1" ]; then + [ -d /etc/cron.d ] && touch /etc/cron.d + fi return $OCF_SUCCESS }