From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15198 invoked by alias); 12 Jan 2009 14:49:19 -0000 Received: (qmail 15190 invoked by alias); 12 Jan 2009 14:49:18 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS X-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on bastion.fedora.phx.redhat.com Subject: cluster: RHEL5 - [rgmanager] Add no_unmount to netfs.sh To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/RHEL5 X-Git-Reftype: branch X-Git-Oldrev: 70bc706890e89f6a51728e3c5b6f267fb0323acd X-Git-Newrev: 705b1fc5472c69e09738149f4d95c9875971d76c From: Lon Hohberger Message-Id: <20090112144743.19F57120515@lists.fedorahosted.org> Date: Mon, 12 Jan 2009 14:49:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00091.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=705b1fc5472c69e09738149f4d95c9875971d76c Commit: 705b1fc5472c69e09738149f4d95c9875971d76c Parent: 70bc706890e89f6a51728e3c5b6f267fb0323acd Author: Mark Hlawatschek AuthorDate: Fri Jan 9 14:19:53 2009 -0500 Committer: Lon Hohberger CommitterDate: Fri Jan 9 14:19:53 2009 -0500 [rgmanager] Add no_unmount to netfs.sh --- rgmanager/src/resources/netfs.sh | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/rgmanager/src/resources/netfs.sh b/rgmanager/src/resources/netfs.sh index d7d63f5..bd391b6 100755 --- a/rgmanager/src/resources/netfs.sh +++ b/rgmanager/src/resources/netfs.sh @@ -107,6 +107,16 @@ meta_data() + + + Do not unmount the filesystem during a stop or relocation operation + + + Skip unmount opration + + + + If set, the cluster will kill all processes using @@ -573,6 +583,7 @@ stopNFSFilesystem() { typeset -i sleep_time=2 # time between each umount failure typeset done="" typeset umount_failed="" + typeset no_umount="" typeset force_umount="" typeset fstype="" @@ -625,6 +636,17 @@ stopNFSFilesystem() { return $FAIL ;; $YES) + case ${OCF_RESKEY_no_unmount} in + $YES_STR) no_umount="$YES" ;; + 1) no_umount="$YES" ;; + *) no_umount="" ;; + esac + + if [ "$no_umount" ]; then + ocf_log info "skipping unmount operation of $mp" + return $SUCCESS + fi + sync; sync; sync ocf_log info "unmounting $mp"