Hide Forgot
The RHEL 5 bug this is cloned from references NFSv3 servers since that is default in RHEL5. In RHEL 6 NFSv4 should be used, but we'll need to provide different config information than what is provided below. +++ This bug was initially created as a clone of Bug #692220 +++ Description of problem: rgmanager supports making NFSv3 servers highly available in an active/passive manner when backed by a non-clustered filesystem. In this configuration scenario, you would want to be able to fail over the locks from one server to another so that the passive node can immediately pick up where the failed server left off. This lock failover has not been extensively tested in a while, so this bug is to track testing of lock failover specifically. Notes: > 1) Add this to /etc/sysconfig/nfs: > > STATDARG="-H /usr/sbin/clunfslock" > > 2) In cluster.conf, your service _MUST_ be structured like this; if you > don't get the dependency chains just right, it will not work: > > ... > <resources> > <nfsexport name="nfsexports"/> > </resources> > ... > <service name="foo" nfslock="1" ... > > <fs name="fs1" ... > > <nfsexport ref="nfsexports"> > <nfsclient ... /> > <nfsclient ... /> > ... > </nfsexport> > </fs> > <fs name="fs2" ... > > <nfsexport ref="nfsexports"> > <nfsclient ... /> > <nfsclient ... /> > ... > </nfsexport> > </fs> > <ip ... /> > </service>
Lock failover should work with v4 today. There is a difference, however: only one v4 server is allowed per cluster. This is a limitation with how v4 recovery is done in the Linux implementation. <service name="foo" ... > <fs name="fs1" ... > <nfsserver name="nfsserver"> <nfsclient ... /> <nfsclient ... /> ... </nfsserver> </fs> <ip ... /> </service>
Actually, the same agent on RHEL6 should work with v3 recovery too, according to the original bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=595547#c27
*** This bug has been marked as a duplicate of bug 595547 ***
V4 lock failover is not something that needs to be explicitly configured on RHEL6. It's part of the "nfsserver" resource agent.