Suppress kernel messages "NFSv4 fileid > 32bits"

Rick Macklem rmacklem at uoguelph.ca
Mon Dec 4 00:31:17 UTC 2017


Colin Percival wrote:
>On 12/03/17 09:18, Rafal Lukawiecki wrote:
>> Is there a way to completely suppress the "NFSv4 fileid > 32bits” messages
>> from flooding my logs and the subsequent emailed reports? This message is
>> unavoidable when running on AWS until FreeBSD 12 comes out, based on the
>> previous discussions here.
>
>Well, unavoidable when using EFS.  Most people in EC2 aren't using EFS.
>
>> I can see that Colin has worked on reducing their number
>> (https://reviews.freebsd.org/D8523) but I would prefer to disable this
>> message completely.
>
>This is more of an NFS question than an EC2 question, but sure, suppressing
>that message completely is entirely doable.
>
>CCing in Rick, as the maintainer of the NFS code -- Rick, any opinion on
>having a vfs.nfs.suppress_32bits_warning sysctl, defaulting to 0, which
>suppresses those two warnings when set to nonzero?
My only suggestion is that the message should be generated at least once,
since it does indicate that your mount is "broken". When the fileid (i-node#)
is truncated to 32bits, it is possible for two different fileids to be mapped to
the same number. The most common error I am aware of is the fts(3) library
functions generating "cycle in directory structure" errors.

It would have to be a direct commit to stable/11, but if Colin wants to do it,
I don't have a problem with it, rick



More information about the freebsd-cloud mailing list