rhel8/9: "kernel: FS-Cache: Duplicate cookie detected" messages on mounting multiple NFS at the same time
Issue
We mount multiple shares from an NFS server at boot, like this in /etc/fstab:
192.168.4.1:/mnt/store/tmp /mnt/tmp nfs defaults 0 0
192.168.4.1:/mnt/store/tmp2 /mnt/tmp2 nfs defaults 0 0
On system boot, we see this on the console:
[ 4.148469] FS-Cache: Loaded
[ 4.223361] intel_pmc_core intel_pmc_core.0: initialized
[ 4.234580] FS-Cache: Netfs 'nfs' registered for caching
[ 4.243442] Key type dns_resolver registered
[ 4.401110] NFS: Registering the id_resolver key type
[ 4.401773] Key type id_resolver registered
[ 4.402379] Key type id_legacy registered
[ 4.415748] FS-Cache: Duplicate cookie detected
[ 4.416431] FS-Cache: O-cookie c=00000000d4b78de9 [p=0000000068e3e812 fl=222 nc=0 na=1]
[ 4.417617] FS-Cache: O-cookie d=000000009ef12cbd n=0000000027900355
[ 4.418628] FS-Cache: O-key=[16] '040000000200000002000801c0a80401'
[ 4.419725] FS-Cache: N-cookie c=00000000b1dadc9a [p=0000000068e3e812 fl=2 nc=0 na=1]
[ 4.420949] FS-Cache: N-cookie d=000000009ef12cbd n=000000009038c87e
[ 4.421926] FS-Cache: N-key=[16] '040000000200000002000801c0a80401'
What to do about it?
Environment
- Red Hat Enterprise Linux (RHEL)
- RHEL8: all minor versions affected
- RHEL9: minor versions 0 and 1 affected
- NFS
- multiple mounts from the same NFS server in /etc/fstab
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.