Bug 1733525 - After umounting and mounting an NFS volume, the cache is ignored. [NEEDINFO]
Summary: After umounting and mounting an NFS volume, the cache is ignored.
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: cachefs
Version: 30
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: David Howells
QA Contact: David Howells
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-26 11:36 UTC by Daniel Dietrich
Modified: 2019-08-27 18:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
steved: needinfo? (dhowells)


Attachments (Terms of Use)

Description Daniel Dietrich 2019-07-26 11:36:15 UTC
Description of problem:
After umounting and mounting an NFS volume, the cache is ignored.

Version-Release number of selected component (if applicable):
Fedora 30 with cachefilesd 0.10.10

How reproducible:

NFS-Server:
echo '/NFS CLIENT(OPTIONS)' >> /etc/exports
systemctl restart nfs-server.service

NFS-Client:
yum -y install cachefilesd
systemctl enable --now cachefilesd
mkdir /nfs

Steps to Reproduce:
1. mount -t nfs -o fsc SERVER:/NFS /nfs
2. time md5sum /nfs/FILE
3. time md5sum /nfs/FILE
4. umount /nfs
5. mount -t nfs -o fsc SERVER:/NFS /nfs
6. time md5sum /nfs/FILE

Actual results:
Step (2) fills the cache and step (3) uses the cache. Step (6) always reloads the file from the server.

Expected results:
Step (6) should use the cache.

Additional info:

- The cache works with CentOS 7.6 and cachefilesd 0.10.7, but shows the problem with Fedora 30 and cachefilesd 0.10.7.
- The problem also occurs in CentOS 7.6 if you specify a directory other than /var/cache/fscache for the cache in /etc/cachefilesd.conf.
- Each mount operation uses the same options. (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/storage_administration_guide/fscachenfs)


Note You need to log in before you can comment on or make changes to this bug.