Bug 151091 - netfs.sh status broken, causing uneccesary failovers
netfs.sh status broken, causing uneccesary failovers
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: rgmanager (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Lon Hohberger
Cluster QE
Depends On:
  Show dependency treegraph
Reported: 2005-03-14 15:01 EST by Derek Anderson
Modified: 2009-04-16 16:16 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-06 16:45:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Derek Anderson 2005-03-14 15:01:20 EST
Description of problem:
The status of the netfs.sh is currently calling this:
  isMounted ${OCF_RESKEY_device} ${OCF_RESKEY_mountpoint}

This fails with a usage becuase isMounted wants the full NFS path
including the hostname of the exporter, like $host:$export.  This is
causing the entire group to fail/relocate/restart, depending on what
you have recovery= set to.

So if you change it to:
    isMounted ${OCF_RESKEY_host}:${OCF_RESKEY_export} 

It seems to be working correctly.  Haven't yet tried it with multiple
netfs services.

2) The Usage for isMounted is also kind of mangled.  "fullpathice"?
    "Usage: isMounted fullpathice mount_point"

    <netfs name="Net_FS" mountpoint="/mnt/nfs1" host="link-01"
export="/tmp" fstype="nfs" options="sync"/>
  <resourcegroup ref="FOO">
    <netfs ref="Net_FS"/>

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Set up a netfs service
2. Enable it
3. Wait 5 minutes for routine status check
Actual results:

Expected results:
Passes, since the service is in fact fine.

Additional info:
Comment 1 Lon Hohberger 2005-03-21 10:01:42 EST
You're right -- should be host:export

start and stop both call isMounted in the netfs properly; the only black sheep
appears to be status.
Comment 2 Lon Hohberger 2005-03-21 16:08:28 EST
Fixed in CVS
Comment 3 Lon Hohberger 2005-05-06 16:45:55 EDT
These have been fixed in CVS for some time; closing

Note You need to log in before you can comment on or make changes to this bug.