On Fri, Nov 20, 2009 at 5:47 PM, Jason Maur <[email protected]> wrote:
>> I have used the exact same setup and i didn't find a solution to the
>> problem and there was also
>> a bug with nfsv4 locking
>> https://bugzilla.redhat.com/show_bug.cgi?id=524520 so i switched to
>> nfsv3
>> and now the failover time is about 4 seconds :)
>
> Thanks for the reply Alex,
>
> I switched over to NFSv3, and it seems better for my needs, but there's still 
> a good 30-seconds or more where the NFS share is inaccessible.  In 
> /var/log/messages, I still get this on the node taking over:
>
>>  kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery 
>> directory
>>  kernel: NFSD: starting 90-second grace period
>
> Looking at the output of 'rpcinfo -p', I think I need to disable version 4 
> for 'nlockmgr' (I've already disabled it for 'nfs' in /etc/sysconfig/nfs by 
> putting 'RPCNFSDARGS="-N 4"').
>
> So I guess I'm asking how do I disable version 4 support for nlockmgr? Or am 
> I wrong in thinking that doing this will get rid of the kernel messages above?

I didn't disable v4 for nlockmgr.

Here is my /etc/sysconfig/nfs,

# Path to remote quota server. See rquotad(8)
RQUOTAD="/usr/sbin/rpc.rquotad"
# Port rquotad should listen on.
RQUOTAD_PORT=875
# Optinal options passed to rquotad
#RPCRQUOTADOPTS=""
#
# Optional arguments passed to in-kernel lockd
#LOCKDARG=
# TCP port rpc.lockd should listen on.
LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
LOCKD_UDPPORT=32769
#
#
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Turn off v2 and v3 protocol support
#RPCNFSDARGS="-N 2 -N 3"
# Turn off v4 protocol support
#RPCNFSDARGS="-N 4"
RPCNFSDARGS="-N 2 -N 4"
# Number of nfs server processes to be started.
# The default is 8.
RPCNFSDCOUNT=256
# Stop the nfsd module from being pre-loaded
#NFSD_MODULE="noload"
#
#
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
#RPCMOUNTDOPTS=""
# Port rpc.mountd should listen on.
MOUNTD_PORT=892
#
#
# Optional arguments passed to rpc.statd. See rpc.statd(8)
#STATDARG=""
# Port rpc.statd should listen on.
STATD_PORT=662
# Outgoing port statd should used. The default is port
# is random
STATD_OUTGOING_PORT=2020
# Specify callout program
#STATD_HA_CALLOUT="/usr/local/bin/foo"

STATD_HOSTNAME=hostnamepointingtoyourVIP.example.com

# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
#RPCIDMAPDARGS=""
#
# Set to turn on Secure NFS mounts.
#SECURE_NFS="yes"
# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
#RPCGSSDARGS="-vvv"
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
#RPCSVCGSSDARGS="-vvv"
# Don't load security modules in to the kernel
#SECURE_NFS_MODS="noload"
#
# Don't load sunrpc module.
#RPCMTAB="noload"

For other configuration i used this manual http://www.linux-ha.org/HaNFS.

I hope i could help you!

Alex
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to