Project

General

Profile

Bug #24730

Client::_invalidate_kernel_dcache causes NFS lookup “deleted” dentry

Added by shawn wu over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

We exported an NFS directory via a mounted ceph-fuse directory named "testshawn", and then started a write/read task using VDBENCH. During the task, the single active MDS was stopped manually. The fuse client connected to a new active MDS successfully, which was standby previously. However, the NFS client hang as well as IO became 0 after the NFS log showed it lookuped the manipulated directory dentry with “deleted”.

There were only 2 dentries in the cache displayed in the fuse client log after reconnection. Also, the log showed client “ll_lookup” the used directory dentry with “deleted” all the time. We found the Client::_invalidate_kernel_dcache would disable the dentries in dcache when reconnect. If entered the mounted fuse directory and did an ”ls” operation, or restarted the nfsd/nfs-mountd daemon, IO would resume.

The version of CEPH environment is v10.2.10 and OS is centos 7.2 of which kernel version is 3.10.0-693.

var_log_message.log View (4.67 KB) shawn wu, 07/02/2018 12:49 PM

ceph-client.admin_reconnect_and_trim_cache.log View (316 KB) shawn wu, 07/02/2018 12:50 PM

ceph-client.admin_lookup_deleted_dentry_appeared_and_hang.log.zip (50.2 KB) shawn wu, 07/02/2018 12:50 PM


Related issues

Duplicates CephFS - Bug #21423: qa: test_client_pin times out waiting for dentry release from kernel Resolved 09/18/2017

History

#2 Updated by Zheng Yan over 5 years ago

set client_try_dentry_invalidate config of ceph-fuse to false

#4 Updated by Zheng Yan over 5 years ago

  • Status changed from New to Closed

#5 Updated by Patrick Donnelly over 5 years ago

  • Duplicates Bug #21423: qa: test_client_pin times out waiting for dentry release from kernel added

#6 Updated by Patrick Donnelly over 5 years ago

  • Status changed from Closed to Duplicate

Also available in: Atom PDF