Re: possible better error handling for nfsv4 and localhost maps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/10/2014 10:33 AM, Dave Sullivan wrote:
>> Have you tried using the -o timeo=1,retry=0 mount options? They might help...
>>
> But do you really want to have all your other mounts doing this too?
> 
> I don't think so, its less resilient right.
> 
> I think the /etc/nfsmount.conf fix
> 
> [ Server "localhost" ]
>     Nfsvers=3
> 
> 
> Is 100% sufficient, but it still would be nice to have this brought 
> up to your attention easier through error handling/logging.
Understood... 

> 
> Unless in automount configuration you could force nfsv4 to 
> do -o timeo=1,retry=0 just for localhost then fallback to 
> nfsv3 with different set of options.
> 
> But I believe you would then globally being setting nfsv4 to 
> use the same -o timeo=1,retry=0 options and I don't think 
> there is fallback mechanism either.
> 
> So basically I still think to have these mounts land you still 
> want the previously document solution.
Documentation has never been a strong suite with Linux NFS...
esp with debugging... Its probably a side effect of being Opensource,
the code is the documentation! ;-) 

That said, we have to be careful not to log common errors either... 
I too have been frustrated with mounts hang with "Connection refused"
because it was using the wrong address... But its a common error so we
have to be careful about flooding syslog with common occurrences... 

I'm not sure adding more debugging code to NFS kernel or user daemons 
is the answer... What I think the answer is making the current debugging
more user friendly... 

Being able to dynamically turn on and off debugging in daemons. Added
a user friendly address (possibly a GUI) to the current tracepoints.
Tailor the existing systemtab script to make debugging situations 
like this more straightforward... 

I think efforts in these areas would pay of more than just adding 
yet more debugging code... 

steved.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux