Red Hat Bugzilla – Bug 162824
Shared nfsclient references by multiple filesystems don't get monitored
Last modified: 2009-04-16 16:17:43 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.7.8-1.3.1
Description of problem:
Shared nfsclient resources do not get status monitor run against them if they are referenced multiple times. This was originally posted by Birger Wathne on the linux-cluster mailing list.
In the config file below, only 5 of the 9 exports below get a status monitor, export1fs:h-nfs-root
The rest do not get checked since they are the second reference to the shared resource.
Relevant cluster.conf section---
<fs fstype="ext3" name="export1fs" mountpoint="/exports/export1" device="/dev/LocalGroup01/Export1Vol00" options="acl"/>
<fs fstype="ext3" name="export2fs" mountpoint="/exports/export2" device="/dev/LocalGroup01/Export2Vol00" options="acl"/>
<fs fstype="ext3" name="export3fs" mountpoint="/exports/export3" device="/dev/LocalGroup01/Export3Vol00" options="acl"/>
<nfsclient name="nis-hosts" target="172.19.30.31" options="rw,sync"/>
<nfsclient name="nis-hosts-ro" target="172.19.30.32" options="ro,sync,no_root_squash"/>
<nfsclient name="h-nfs-root" target="172.19.30.33" options="rw,sync,no_root_squash"/>
<nfsclient name="h-nfs-insecure" target="172.19.30.34" options="rw,sync,insecure"/>
<nfsclient name="h-nfs-insecure-ro" target="172.19.30.35" options="ro,sync,no_root_squash,insecure"/>
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Reference the same nfsclient shared resource in multiple filesystem nfsexport
Actual Results: only 5 monitor commands are executed, instead of 9.
Expected Results: All 9 exports are monitored.
Created attachment 116552 [details]
The proposed patch makes a copy of the resource action list in each resource
node that references a resource. It then uses that list when checking the
status, so each use of the resource has it's own last checked timestamp for
Patch is also here:
Discussed in this thread:
I received an email from Birger, stating that the patch did fix the nfs export
monitoring problem on his cluster.
Excellent. Putting in STABLE, RHEL4, and HEAD.
I ran a regression test to ensure that there was no memory leaked; there wasn't.
Patch is definitely acceptable.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.