Bug 254111
| Summary: | rgmanager umounts shared partition gfs although its used by another service | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Herbert L. Plankl <h.plankl> | ||||||
| Component: | rgmanager | Assignee: | Lon Hohberger <lhh> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 5.0 | CC: | cluster-maint | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | RHBA-2008-0353 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2008-05-21 14:30:32 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
The simplest way to fix this is to make the resource agent maintain a reference count after mounting occurs. Created attachment 198841 [details]
Preliminary patch
This allows clusterfs.sh to maintain a reference count after mount/before
unmount. The caveat which applies here is that the services using a shared
clusterfs resource should be disabled if mount options change.
Specifying force_unmount should not be required if reference counts are used. This patch still requires force_unmount, so it is a bit inadequate. Does this script solve the problem for you? I'm sorry - how can I test that. I'm using rgmanager-2.0.28-1.el5. The files referenced in the patch are not available on my system and on rhn is no source-package available. Can you upload the scripts instead of the patch? The reference count store location needs to be configurable so that the changes to /etc/init.d/rgmanager are not needed. I'll fix that and build test packages. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. All cluster version 5 defects should be reported under red hat enterprise linux 5 product name - not cluster suite. Created attachment 290066 [details]
Adds reference count support to rgmanager & refcount checking to clusterfs.sh
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. http://rhn.redhat.com/errata/RHBA-2008-0353.html |
Description of problem: I have a two_node-cluster and 2 services using the same shared gfs-partition at the same mountpoint. Both services are running on one member. The force_unmount="1" option is set for this resource. If I'm relocating one service, the gfs partition gets unounted although the other service running on this member uses the partition too. After a few seconds, rgmanager recognizes that the service running on this nodes has lost its gfs-partition an remounts it. The log-output is: Aug 24 09:31:50 rhel5n1 clurgmgrd[6337]: <notice> Stopping service service:testscript1 Aug 24 09:31:51 rhel5n1 avahi-daemon[2400]: Withdrawing address record for 192.168.111.221 on bond0. Aug 24 09:32:02 rhel5n1 clurgmgrd[6337]: <notice> Service service:testscript1 is stopped Aug 24 09:32:05 rhel5n1 clurgmgrd[6337]: <notice> Service service:testscript1 is now running on member 2 Aug 24 09:32:55 rhel5n1 clurgmgrd[6337]: <notice> status on clusterfs "opt_icoserve" returned 1 (generic error) Aug 24 09:32:55 rhel5n1 clurgmgrd[6337]: <warning> Some independent resources in service:testscript2 failed; Attempting inline recovery Aug 24 09:32:56 rhel5n1 avahi-daemon[2400]: Withdrawing address record for 192.168.111.222 on bond0. Aug 24 09:33:10 rhel5n1 kernel: Trying to join cluster "lock_dlm", "forty_two:opt_icoserve" Aug 24 09:33:10 rhel5n1 kernel: Joined cluster. Now mounting FS... Aug 24 09:33:10 rhel5n1 kernel: GFS: fsid=forty_two:opt_icoserve.1: jid=1: Trying to acquire journal lock... Aug 24 09:33:10 rhel5n1 kernel: GFS: fsid=forty_two:opt_icoserve.1: jid=1: Looking at journal... Aug 24 09:33:10 rhel5n1 kernel: GFS: fsid=forty_two:opt_icoserve.1: jid=1: Done Aug 24 09:33:10 rhel5n1 kernel: GFS: fsid=forty_two:opt_icoserve.1: Scanning for log elements... Aug 24 09:33:12 rhel5n1 kernel: GFS: fsid=forty_two:opt_icoserve.1: Found 0 unlinked inodes Aug 24 09:33:12 rhel5n1 kernel: GFS: fsid=forty_two:opt_icoserve.1: Found quota changes for 0 IDs Aug 24 09:33:12 rhel5n1 kernel: GFS: fsid=forty_two:opt_icoserve.1: Done Aug 24 09:33:13 rhel5n1 avahi-daemon[2400]: Registering new address record for 192.168.111.222 on bond0. Aug 24 09:33:14 rhel5n1 clurgmgrd[6337]: <notice> Inline recovery of service:testscript2 succeeded Version-Release number of selected component (if applicable): cman-2.0.70-1.el5 rgmanager-2.0.28-1.el5 system-config-cluster-1.0.50-1.2 ricci-0.10.0-2.el5 luci-0.10.0-2.el5 How reproducible: * 2node-cluster * 2 service running on the same node using the same shared gfs-partition. * force_unmount="1" set * cluster.conf: <resources> <clusterfs device="/dev/icoserve/opt_icoserve" force_unmount="1" fsid="63088" fstype="gfs" mountpoint="/opt/icoserve" name="opt_icoserve" options=""/> </resources> <service autostart="1" domain="n1_n2" exclusive="0" name="testscript1" recovery="restart"> <ip address="192.168.111.221" monitor_link="1"/> <script file="/etc/init.d/testscript1" name="testscript1"/> <clusterfs ref="opt_icoserve"/> </service> <service autostart="1" domain="n1_n2" exclusive="0" name="testscript2" recovery="restart"> <ip address="192.168.111.222" monitor_link="1"/> <script file="/etc/init.d/testscript2" name="testscript2"/> <clusterfs ref="opt_icoserve"/> </service> Steps to Reproduce: 1. relocate one service 2. watch the logfile 3. watch output of "mount" Actual results: Partition gets unmounted although another service on this node is using it. Expected results: Partition gets unmounted only if no other service on this node is using it. Its a shared ressource - not a private one. Additional info: Thats important for us, because we (will) have a few services using the same partition. But if on one node no service is running, but the partition remains mounted, clvmd cannot be stopped and so cman cannot be stopped. So we have to use force_unmount="1".