Project

General

Profile

Actions

Bug #58411

closed
ZG ZG

mds: a few simple operations crash mds

Bug #58411: mds: a few simple operations crash mds

Added by Zhansong Gao almost 4 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:

100%

Source:
Backport:
reef,quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
crash
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-3982-g7b2968570a9
Released In:
v19.2.0~2345
Upkeep Timestamp:
2025-07-12T19:08:13+00:00

Description

mount a cephfs with multiple active mds daemons on '/mnt/cephfs' and then do the following operations in order:

(1) create directorys 'target' and 'link'
mkdir /mnt/cephfs/{target,link}
(2) pinning 'target' to mds.0 and 'link' to mds.1
setfattr -n ceph.dir.pin -v 0 /mnt/cephfs/target && setfattr -n ceph.dir.pin -v 1 /mnt/cephfs/link
(3) create file 'test.txt' in directory 'target'
touch /mnt/cephfs/target/test.txt
(4) create a hard link for 'test.txt' in directory 'link'
ln /mnt/cephfs/target/test.txt /mnt/cephfs/link/test.txt
(5) truncate 'test.txt' by opening hard link
truncate -s 0 /mnt/cephfs/link/test.txt

The mds.1 will crash after the above operations and operation(5) will be blocked.
If a standby mds replaces the crashed mds as mds.1, it will also crash immediately.
To stop the endless crash, use 'ceph tell mds.0 client ls' to find the client
currently in use and 'ceph tell mds.0 client evict' to evict it, and then restart
the crashed mds daemons.


Related issues 5 (0 open — 5 closed)

Related to CephFS - Bug #63743: MDS crash on ceph_assert(in->is_auth())DuplicateMilind Changire

Actions
Related to CephFS - Bug #58395: mds:in openc, if unlink is not finished we should reintegrate the dentry before continuing further. Duplicate

Actions
Copied to CephFS - Backport #61233: quincy: mds: a few simple operations crash mdsResolvedVenky Shankar

Actions
Copied to CephFS - Backport #61234: reef: mds: a few simple operations crash mdsResolvedVenky Shankar

Actions
Copied to CephFS - Backport #61235: pacific: mds: a few simple operations crash mdsResolvedVenky Shankar

Actions

VS Updated by Venky Shankar almost 4 years ago Actions #1

  • Category set to Correctness/Safety
  • Status changed from New to Triaged
  • Assignee set to Zhansong Gao
  • Backport set to pacific,quincy
  • Labels (FS) crash added

Good catch!

ZG Updated by Zhansong Gao almost 4 years ago Actions #2

This bug will only be triggered in kernel client and ceph-fuse client doesn't have this problem.

VS Updated by Venky Shankar over 3 years ago Actions #3

  • Status changed from Triaged to Fix Under Review
  • Priority changed from Normal to Low
  • Target version changed from v18.0.0 to v19.0.0
  • Backport changed from pacific,quincy to reef,quincy,pacific

VS Updated by Venky Shankar over 3 years ago Actions #4

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot over 3 years ago Actions #5

  • Copied to Backport #61233: quincy: mds: a few simple operations crash mds added

UB Updated by Upkeep Bot over 3 years ago Actions #6

  • Copied to Backport #61234: reef: mds: a few simple operations crash mds added

UB Updated by Upkeep Bot over 3 years ago Actions #7

  • Copied to Backport #61235: pacific: mds: a few simple operations crash mds added

KS Updated by Konstantin Shalygin over 3 years ago Actions #9

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100

VS Updated by Venky Shankar almost 2 years ago Actions #10

  • Related to Bug #63743: MDS crash on ceph_assert(in->is_auth()) added

VS Updated by Venky Shankar almost 2 years ago Actions #11

  • Related to Bug #58395: mds:in openc, if unlink is not finished we should reintegrate the dentry before continuing further. added

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Merge Commit set to 7b2968570a937d936d0df512927b8968bfc65963
  • Fixed In set to v18.0.0-3982-g7b2968570a9
  • Released In set to v19.2.0~2345
  • Upkeep Timestamp set to 2025-07-12T19:08:13+00:00
Actions

Also available in: PDF Atom