FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 03-22-2011, 07:34 AM
"Fabio M. Di Nitto"
 
Default resource-agents: Try force-unmount before fuser for netfs.sh

ACK.

Fabio

On 3/22/2011 2:07 AM, Lon Hohberger wrote:
> RHEL5 only. A completely separate patch is needed for
> upstream and RHEL6
>
> Resolves: rhbz#678494
>
> Signed-off-by: Lon Hohberger <lhh@redhat.com>
> ---
> rgmanager/src/resources/netfs.sh | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/rgmanager/src/resources/netfs.sh b/rgmanager/src/resources/netfs.sh
> index 1a669d3..837a4c4 100755
> --- a/rgmanager/src/resources/netfs.sh
> +++ b/rgmanager/src/resources/netfs.sh
> @@ -486,6 +486,7 @@ stopNFSFilesystem() {
> typeset no_umount=""
> typeset force_umount=""
> typeset fstype=""
> + typeset umount_flag=""
>
>
> #
> @@ -558,7 +559,7 @@ stopNFSFilesystem() {
> sync; sync; sync
> ocf_log info "unmounting $mp"
>
> - umount $mp
> + umount $umount_flag $mp
> if [ $? -eq 0 ]; then
> umount_failed=
> done=$YES
> @@ -568,6 +569,10 @@ stopNFSFilesystem() {
> umount_failed=yes
>
> if [ "$force_umount" ]; then
> + if [ -z "$umount_flag" ]; then
> + umount_flag="-f"
> + continue
> + fi
> if [ $try -eq 1 ]; then
> fuser -TERM -kvm "$mp"
> else
 

Thread Tools




All times are GMT. The time now is 05:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org