Project

General

Profile

Actions

Bug #23280

open

mds: restarted mds may show wrong num_strays stats

Added by 鹏 张 about 6 years ago. Updated about 5 years ago.

Status:
Need More Info
Priority:
Normal
Assignee:
-
Category:
Correctness/Safety
Target version:
-
% Done:

0%

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

Description

1.on ceph filesystem:mkdir test1 test2
2.touch ./test1/1 ./test1/2
3.ln ./test1/1 ./test2/1
ln ./test1/2 ./test2/2
4.rm -rf ./test1/* . rm -rf ./test2/*
5.restart ceph-mds
6.ceph daemon mds.[node*] perf dump |grep strays

I saw the num_strays is the same of strays_created. But I think the num_strays is zero. when restat mds.It can scan all the stray dir and calculate the num_strays.i think the purge or reintegrated or migrated is not remove the dentry from stray dir map.


Files

ceph-mds.log.txt (17.2 KB) ceph-mds.log.txt 鹏 张, 03/13/2018 09:29 AM
ceph-mds.txt (10.4 KB) ceph-mds.txt 鹏 张, 03/14/2018 03:43 AM
Actions

Also available in: Atom PDF