Bug #60986
opencrash: void MDCache::rejoin_send_rejoins(): assert(auth >= 0)
0%
Description
Assert condition: auth >= 0
Assert function: void MDCache::rejoin_send_rejoins()
Sanitized backtrace:
MDCache::rejoin_send_rejoins()
MDSRankDispatcher::handle_mds_map(boost::intrusive_ptr<MMDSMap const> const&, MDSMap const&)
MDSDaemon::handle_mds_map(boost::intrusive_ptr<MMDSMap const> const&)
MDSDaemon::handle_core_message(boost::intrusive_ptr<Message const> const&)
MDSDaemon::ms_dispatch2(boost::intrusive_ptr<Message> const&)
DispatchQueue::entry()
DispatchQueue::DispatchThread::entry()
Crash dump sample:
{
"assert_condition": "auth >= 0",
"assert_file": "mds/MDCache.cc",
"assert_func": "void MDCache::rejoin_send_rejoins()",
"assert_line": 4084,
"assert_msg": "mds/MDCache.cc: In function 'void MDCache::rejoin_send_rejoins()' thread 7fad76ed2700 time 2023-04-25T04:30:36.005858-0400\nmds/MDCache.cc: 4084: FAILED ceph_assert(auth >= 0)",
"assert_thread_name": "ms_dispatch",
"backtrace": [
"/lib64/libpthread.so.0(+0x12d80) [0x7fad7f7e5d80]",
"gsignal()",
"abort()",
"(ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x18f) [0x7fad807e947b]",
"/usr/lib64/ceph/libceph-common.so.2(+0x2695e7) [0x7fad807e95e7]",
"(MDCache::rejoin_send_rejoins()+0x2013) [0x55fd558e2eb3]",
"(MDSRankDispatcher::handle_mds_map(boost::intrusive_ptr<MMDSMap const> const&, MDSMap const&)+0x1b72) [0x55fd5577d2a2]",
"(MDSDaemon::handle_mds_map(boost::intrusive_ptr<MMDSMap const> const&)+0xd66) [0x55fd5574e9b6]",
"(MDSDaemon::handle_core_message(boost::intrusive_ptr<Message const> const&)+0x367) [0x55fd55751f77]",
"(MDSDaemon::ms_dispatch2(boost::intrusive_ptr<Message> const&)+0x177) [0x55fd557526f7]",
"(Messenger::ms_deliver_dispatch(boost::intrusive_ptr<Message> const&)+0x478) [0x7fad80a64668]",
"(DispatchQueue::entry()+0x50f) [0x7fad80a61aaf]",
"(DispatchQueue::DispatchThread::entry()+0x11) [0x7fad80b28ef1]",
"/lib64/libpthread.so.0(+0x82de) [0x7fad7f7db2de]",
"clone()"
],
"ceph_version": "17.2.5",
"crash_id": "2023-04-25T08:30:36.008366Z_31305a85-41e6-4558-9503-9dd700dfb575",
"entity_name": "mds.ea712f0f7730e25884ca687e6f7d3d73e1e91998",
"os_id": "centos",
"os_name": "CentOS Linux",
"os_version": "8 (Core)",
"os_version_id": "8",
"process_name": "ceph-mds",
"stack_sig": "5069956bbe0e3828fa162226b569d9ebfaea1b69544f0f4d5b3cf057977b8640",
"timestamp": "2023-04-25T08:30:36.008366Z",
"utsname_machine": "x86_64",
"utsname_release": "4.18.0-80.el8.x86_64",
"utsname_sysname": "Linux",
"utsname_version": "#1 SMP Tue Jun 4 09:19:46 UTC 2019"
}
Files
TB Updated by Telemetry Bot over 3 years ago
MC Updated by Milind Changire over 3 years ago
- Related to Bug #54765: crash: void MDCache::rejoin_send_rejoins(): assert(auth >= 0) added
MC Updated by Milind Changire over 3 years ago
- Assignee set to Milind Changire
XL Updated by Xiubo Li over 2 years ago · Edited
A new report from the ceph-user mail list: https://lists.ceph.io/hyperkitty/list/[email protected]/thread/GOAZLA6NQHYFM3OHQ6ALWU6VQENCB5OS/
Hi,
a 17.2.7 cluster with two filesystems has suddenly non-working MDSs:
# ceph -s
cluster:
id: f54eea86-265a-11eb-a5d0-457857ba5742
health: HEALTH_ERR
22 failed cephadm daemon(s)
2 filesystems are degraded
1 mds daemon damaged
insufficient standby MDS daemons available
services:
mon: 5 daemons, quorum ceph00,ceph03,ceph04,ceph01,ceph02 (age 4h)
mgr: ceph03.odfupq(active, since 4h), standbys: ppc721.vsincn, ceph00.lvbddp, ceph02.zhyxjg, ceph06.eifppc
mds: 4/5 daemons up
osd: 145 osds: 145 up (since 20h), 145 in (since 2d)
rgw: 12 daemons active (4 hosts, 1 zones)
data:
volumes: 0/2 healthy, 2 recovering; 1 damaged
pools: 15 pools, 4897 pgs
objects: 195.64M objects, 195 TiB
usage: 617 TiB used, 527 TiB / 1.1 PiB avail
pgs: 4892 active+clean
5 active+clean+scrubbing+deep
io:
client: 2.5 MiB/s rd, 20 MiB/s wr, 665 op/s rd, 938 op/s wr
# ceph fs status
ABC - 4 clients
===========
RANK STATE MDS ACTIVITY DNS INOS DIRS CAPS
0 failed
1 resolve ABC.ceph04.lzlkdu 0 3 1 0
2 resolve ABC.ppc721.rzfmyi 0 3 1 0
3 resolve ABC.ceph04.jiepaw 249 252 13 0
POOL TYPE USED AVAIL
cephfs.ABC.meta metadata 33.0G 104T
cephfs.ABC.data data 390T 104T
DEF - 154 clients
===========
RANK STATE MDS ACTIVITY DNS INOS DIRS CAPS
0 rejoin(laggy) DEF.ceph06.etthum 30.9k 30.8k 5084 0
POOL TYPE USED AVAIL
cephfs.DEF.meta metadata 190G 104T
cephfs.DEF.data data 118T 104T
MDS version: ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)
The first filesystem will not get an MDS in rank 0,
we already tried to set max_msd to 1 but to no avail.
The second filesystem's MDS shows "replay" for a while and then
it crashes in the rejoin phase with:
-92> 2024-05-06T16:07:15.514+0000 7f1927e9d700 1 mds.0.501522 handle_mds_map i am now mds.0.501522
-91> 2024-05-06T16:07:15.514+0000 7f1927e9d700 1 mds.0.501522 handle_mds_map state change up:reconnect --> up:rejoin
-90> 2024-05-06T16:07:15.514+0000 7f1927e9d700 1 mds.0.501522 rejoin_start
-89> 2024-05-06T16:07:15.514+0000 7f1927e9d700 1 mds.0.501522 rejoin_joint_start
-88> 2024-05-06T16:07:15.514+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005bfece err -22/0
-87> 2024-05-06T16:07:15.514+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000671eb5 err -22/0
-86> 2024-05-06T16:07:15.514+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005bfed3 err -22/0
-85> 2024-05-06T16:07:15.514+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-84> 2024-05-06T16:07:15.514+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b0274 err -22/0
-83> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000671eb5 err -22/0
-82> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-81> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000671ebd err -22/-22
-80> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000671ecd err -22/-22
-79> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc9ea err -22/-22
-78> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005bfed3 err -22/0
-77> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc9c3 err -22/-22
-76> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc978 err -22/-22
-75> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc99d err -22/-22
-74> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc95b err -22/-22
-73> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc980 err -22/-22
-72> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b0274 err -22/0
-71> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x20001dc7a7e err -22/-22
-70> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012be364 err -22/-22
-69> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b2e32 err -22/-22
-68> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000671eb5 err -22/0
-67> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-66> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000671ebd err -22/-22
-65> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000671ecd err -22/-22
-64> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc9ea err -22/-22
-63> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc978 err -22/-22
-62> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x3000069373a err -22/-22
-61> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012dc5d8 err -22/-22
-60> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a32e8 err -22/-22
-59> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x30000696952 err -22/-22
-58> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-57> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005bfed3 err -22/0
-56> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc99d err -22/-22
-55> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc980 err -22/-22
-54> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x20001dc7a7e err -22/-22
-53> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58cf err -22/-22
-52> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012c3a0e err -22/-22
-51> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-50> 2024-05-06T16:07:15.518+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b0274 err -22/0
-49> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x20001dc7a7f err -22/-22
-48> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc95b err -22/-22
-47> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b2e32 err -22/-22
-46> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012be364 err -22/-22
-45> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b388d err -22/-22
-44> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x10007185ac2 err -22/-22
-43> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-42> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc980 err -22/-22
-41> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc99d err -22/-22
-40> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58cf err -22/-22
-39> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012c3a0e err -22/-22
-38> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58db err -22/-22
-37> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x40000d63bff err -22/-22
-36> 2024-05-06T16:07:15.522+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-35> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc95b err -22/-22
-34> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012be364 err -22/-22
-33> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x10007185ac2 err -22/-22
-32> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-31> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x10007185ac4 err -22/-22
-30> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc980 err -22/-22
-29> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58cf err -22/-22
-28> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58db err -22/-22
-27> 2024-05-06T16:07:15.526+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58f4 err -22/-22
-26> 2024-05-06T16:07:15.530+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-25> 2024-05-06T16:07:15.534+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc980 err -22/-22
-24> 2024-05-06T16:07:15.534+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58cf err -22/-22
-23> 2024-05-06T16:07:15.534+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58db err -22/-22
-22> 2024-05-06T16:07:15.534+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58f4 err -22/-22
-21> 2024-05-06T16:07:15.534+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a5fc4 err -22/-22
-20> 2024-05-06T16:07:15.534+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a634d err -22/-22
-19> 2024-05-06T16:07:15.534+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a63bf err -22/-22
-18> 2024-05-06T16:07:15.542+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc94c err -22/0
-17> 2024-05-06T16:07:15.542+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bc980 err -22/-22
-16> 2024-05-06T16:07:15.546+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58cf err -22/-22
-15> 2024-05-06T16:07:15.550+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58db err -22/-22
-14> 2024-05-06T16:07:15.550+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a58f4 err -22/-22
-13> 2024-05-06T16:07:15.550+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a5fc4 err -22/-22
-12> 2024-05-06T16:07:15.550+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a634d err -22/-22
-11> 2024-05-06T16:07:15.550+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x400000a63bf err -22/-22
-10> 2024-05-06T16:07:15.550+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bfd9c err -22/-22
-9> 2024-05-06T16:07:15.550+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x200012bfb78 err -22/-22
-8> 2024-05-06T16:07:15.554+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b0274 err -22/0
-7> 2024-05-06T16:07:15.554+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b2e32 err -22/-22
-6> 2024-05-06T16:07:15.554+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b388d err -22/-22
-5> 2024-05-06T16:07:15.562+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b0274 err -22/0
-4> 2024-05-06T16:07:15.562+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b2e32 err -22/-22
-3> 2024-05-06T16:07:15.562+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x300005b388d err -22/-22
-2> 2024-05-06T16:07:15.562+0000 7f1921e91700 0 mds.0.cache failed to open ino 0x40000d5a226 err -22/-22
-1> 2024-05-06T16:07:15.634+0000 7f1921e91700 -1 /home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.7/rpm/el8/BUILD/ceph-17.2.7/src/mds/MDCache.cc: In function 'void MDCache::rejoin_send_rejoins()' thread 7f1921e91700 time 2024-05-06T16:07:15.635683+0000
/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.7/rpm/el8/BUILD/ceph-17.2.7/src/mds/MDCache.cc: 4086: FAILED ceph_assert(auth >= 0)
ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x135) [0x7f1930ad94a3]
2: /usr/lib64/ceph/libceph-common.so.2(+0x269669) [0x7f1930ad9669]
3: (MDCache::rejoin_send_rejoins()+0x216b) [0x5614ac8747eb]
4: (MDCache::process_imported_caps()+0x1993) [0x5614ac872353]
5: (Context::complete(int)+0xd) [0x5614ac6e182d]
6: (MDSContext::complete(int)+0x5f) [0x5614aca41f4f]
7: (void finish_contexts<std::vector<MDSContext*, std::allocator<MDSContext*> > >(ceph::common::CephContext*, std::vector<MDSContext*, std::allocator<MDSContext*> >&, int)+0x8d) [0x5614ac6e6f5d]
8: (OpenFileTable::_open_ino_finish(inodeno_t, int)+0x156) [0x5614aca765a6]
9: (MDSContext::complete(int)+0x5f) [0x5614aca41f4f]
10: (void finish_contexts<std::vector<MDSContext*, std::allocator<MDSContext*> > >(ceph::common::CephContext*, std::vector<MDSContext*, std::allocator<MDSContext*> >&, int)+0x8d) [0x5614ac6e6f5d]
11: (MDCache::open_ino_finish(inodeno_t, MDCache::open_ino_info_t&, int)+0x138) [0x5614ac867168]
12: (MDCache::_open_ino_backtrace_fetched(inodeno_t, ceph::buffer::v15_2_0::list&, int)+0x290) [0x5614ac87ff90]
13: (MDSContext::complete(int)+0x5f) [0x5614aca41f4f]
14: (MDSIOContextBase::complete(int)+0x534) [0x5614aca426e4]
15: (Finisher::finisher_thread_entry()+0x18d) [0x7f1930b7884d]
16: /lib64/libpthread.so.0(+0x81ca) [0x7f192fac81ca]
17: clone()
How do we solve this issue?
XL Updated by Xiubo Li over 2 years ago
Hi all, we have a serious problem with CephFS. A few days ago, the CephFS file systems became inaccessible, with the message MDS_DAMAGE: 1 mds daemon damaged The cephfs-journal-tool tells us: "Overall journal integrity: OK" The usual attempts with redeploy were unfortunately not successful. After many attempts to achieve something with the orchestrator, we set the MDS to “failed” and provoked the creation of new MDS with “ceph fs reset”. But this MDS crashes: ceph-17.2.7/src/mds/MDCache.cc: In function 'void MDCache::rejoin_send_rejoins()' ceph-17.2.7/src/mds/MDCache.cc: 4086: FAILED ceph_assert(auth >= 0) (The full trace is attached). What can we do now? We are grateful for any help!
RS Updated by Robert Sander over 2 years ago
- File ceph-mds.vol-bierinf.ceph04.jiepaw.log ceph-mds.vol-bierinf.ceph04.jiepaw.log added
- File ceph-mds.vol-bierinf.ceph04.lzlkdu.log ceph-mds.vol-bierinf.ceph04.lzlkdu.log added
- File ceph-mds.vol-bierinf.ppc721.dfkfzy.log ceph-mds.vol-bierinf.ppc721.dfkfzy.log added
- File ceph-mds.vol-bierinf.ppc721.rzfmyi.log ceph-mds.vol-bierinf.ppc721.rzfmyi.log added
Xiubo Li wrote in #note-4:
A new report from the ceph-user mail list: https://lists.ceph.io/hyperkitty/list/[email protected]/thread/GOAZLA6NQHYFM3OHQ6ALWU6VQENCB5OS/
We now collected debug logs. The following actions have been made:
ceph fs set ksz-cephfs2 max_mds 1
ceph fs set vol-bierinf max_mds 1
ceph fs set ksz-cephfs2 standby_count_wanted 1
ceph fs set vol-bierinf standby_count_wanted 1
# for _md in $(ceph orch ps | grep mds | cut -d ' ' -f 1)
> do
> ceph orch daemon stop $_md
> done
...
# ceph fs status
vol-bierinf - 0 clients
===========
RANK STATE MDS ACTIVITY DNS INOS DIRS CAPS
0 failed
1 failed
2 failed
3 failed
POOL TYPE USED AVAIL
cephfs.vol-bierinf.meta metadata 33.0G 104T
cephfs.vol-bierinf.data data 390T 104T
ksz-cephfs2 - 0 clients
===========
RANK STATE MDS ACTIVITY DNS INOS DIRS CAPS
0 failed
POOL TYPE USED AVAIL
cephfs.ksz-cephfs2.meta metadata 190G 104T
cephfs.ksz-cephfs2.data data 118T 104T
# ceph fs dump
e501532
enable_multiple, ever_enabled_multiple: 1,1
default compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable
ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned
encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2}
legacy client fscid: -1
Filesystem 'vol-bierinf' (10)
fs_name vol-bierinf
epoch 501532
flags 12 joinable allow_snaps allow_multimds_snaps
created 2021-05-04T12:21:48.898727+0000
modified 2024-05-07T06:37:23.924755+0000
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 8796093022208
required_client_features {}
last_failure 0
last_failure_osd_epoch 279880
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default
file layouts on dirs,4=dir inode in separate object,5=mds uses versioned
encoding,6=dirfrag is stored in omap,7=mds uses inline data,8=no anchor table,9=file
layout v2,10=snaprealm v2}
max_mds 1
in 0,1,2,3
up {}
failed 1,2,3
damaged 0
stopped 4,5,6,7
data_pools [26]
metadata_pool 25
inline_data disabled
balancer
standby_count_wanted 1
Filesystem 'ksz-cephfs2' (11)
fs_name ksz-cephfs2
epoch 501530
flags 12 joinable allow_snaps allow_multimds_snaps
created 2024-05-05T19:00:35.635663+0000
modified 2024-05-07T06:36:09.307179+0000
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 1099511627776
required_client_features {}
last_failure 0
last_failure_osd_epoch 279575
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default
file layouts on dirs,4=dir inode in separate object,5=mds uses versioned
encoding,6=dirfrag is stored in omap,7=mds uses inline data,8=no anchor table,9=file
layout v2,10=snaprealm v2}
max_mds 1
in 0
up {0=8532994}
failed
damaged
stopped 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
data_pools [37]
metadata_pool 36
inline_data disabled
balancer
standby_count_wanted 1
[mds.vol-bierinf.ppc721.meydsp{0:8532994} state up:rejoin seq 4 laggy since
2024-05-06T16:07:32.761409+0000 join_fscid=10 addr
[v2:10.149.12.250:6802/2957952954,v1:10.149.12.250:6803/2957952954] compat
{c=[1],r=[1],i=[7ff]}]
dumped fsmap epoch 501532
ceph config set global debug_mds 25
ceph config set global debug_ms 1
ceph orch daemon start mds.vol-bierinf.ceph04.jiepaw
ceph orch daemon start mds.vol-bierinf.ceph04.lzlkdu # erst in ksz-cephfs2(crash), dann in
vol-bierinf
ceph orch daemon start mds.vol-bierinf.ppc721.dfkfzy
ceph orch daemon start mds.vol-bierinf.ppc721.rzfmyi
ceph fs status
vol-bierinf - 4 clients
===========
RANK STATE MDS ACTIVITY DNS INOS DIRS CAPS
0 failed
1 resolve vol-bierinf.ceph04.jiepaw 0 3 1 0
2 resolve vol-bierinf.ceph04.lzlkdu 0 3 1 0
3 resolve vol-bierinf.ppc721.dfkfzy 249 252 13 0
POOL TYPE USED AVAIL
cephfs.vol-bierinf.meta metadata 33.0G 104T
cephfs.vol-bierinf.data data 390T 104T
ksz-cephfs2 - 154 clients
===========
RANK STATE MDS ACTIVITY DNS INOS DIRS CAPS
0 rejoin(laggy) vol-bierinf.ppc721.rzfmyi 143 102 14 0
POOL TYPE USED AVAIL
cephfs.ksz-cephfs2.meta metadata 190G 104T
cephfs.ksz-cephfs2.data data 118T 104T
MDS version: ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy
(stable)
ceph config rm global debug_mds
ceph config rm global debug_ms
ceph fs dump
e501610
enable_multiple, ever_enabled_multiple: 1,1
default compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable
ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned
encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2}
legacy client fscid: -1
Filesystem 'vol-bierinf' (10)
fs_name vol-bierinf
epoch 501589
flags 12 joinable allow_snaps allow_multimds_snaps
created 2021-05-04T12:21:48.898727+0000
modified 2024-05-07T07:17:51.056080+0000
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 8796093022208
required_client_features {}
last_failure 0
last_failure_osd_epoch 279909
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default
file layouts on dirs,4=dir inode in separate object,5=mds uses versioned
encoding,6=dirfrag is stored in omap,7=mds uses inline data,8=no anchor table,9=file
layout v2,10=snaprealm v2}
max_mds 1
in 0,1,2,3
up {1=8559832,2=8559872,3=8559902}
failed
damaged 0
stopped 4,5,6,7
data_pools [26]
metadata_pool 25
inline_data disabled
balancer
standby_count_wanted 1
[mds.vol-bierinf.ceph04.jiepaw{1:8559832} state up:resolve seq 2 join_fscid=10 addr
[v2:10.149.12.14:6800/3253575127,v1:10.149.12.14:6801/3253575127] compat
{c=[1],r=[1],i=[7ff]}]
[mds.vol-bierinf.ceph04.lzlkdu{2:8559872} state up:resolve seq 2 join_fscid=10 addr
[v2:10.149.12.14:6802/4188570865,v1:10.149.12.14:6803/4188570865] compat
{c=[1],r=[1],i=[7ff]}]
[mds.vol-bierinf.ppc721.dfkfzy{3:8559902} state up:resolve seq 2 join_fscid=10 addr
[v2:10.149.12.250:6800/5841986,v1:10.149.12.250:6801/5841986] compat
{c=[1],r=[1],i=[7ff]}]
Filesystem 'ksz-cephfs2' (11)
fs_name ksz-cephfs2
epoch 501610
flags 12 joinable allow_snaps allow_multimds_snaps
created 2024-05-05T19:00:35.635663+0000
modified 2024-05-07T07:21:25.482889+0000
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 1099511627776
required_client_features {}
last_failure 0
last_failure_osd_epoch 279922
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default
file layouts on dirs,4=dir inode in separate object,5=mds uses versioned
encoding,6=dirfrag is stored in omap,7=mds uses inline data,8=no anchor table,9=file
layout v2,10=snaprealm v2}
max_mds 1
in 0
up {0=8536329}
failed
damaged
stopped 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
data_pools [37]
metadata_pool 36
inline_data disabled
balancer
standby_count_wanted 1
[mds.vol-bierinf.ppc721.rzfmyi{0:8536329} state up:rejoin seq 4 laggy since
2024-05-07T07:21:25.482828+0000 join_fscid=10 addr
[v2:10.149.12.250:6802/3452773200,v1:10.149.12.250:6803/3452773200] compat
{c=[1],r=[1],i=[7ff]}]
dumped fsmap epoch 501610
RS Updated by Robert Sander over 2 years ago
While trying to export the journal the following error shows up:
# cephfs-journal-tool --rank=ksz-cephfs2:0 journal export
/tmp/ksz-cephfs2.rank0.journal.export.bin
journal is 98761711816021~506984147
2024-05-07T16:59:38.160+0200 7f412db87040 -1 Error 22 ((22) Invalid argument) seeking to
0x59d2c0c00d55
Error ((22) Invalid argument)
XL Updated by Xiubo Li over 2 years ago
Robert Sander wrote in #note-6:
Xiubo Li wrote in #note-4:
A new report from the ceph-user mail list: https://lists.ceph.io/hyperkitty/list/[email protected]/thread/GOAZLA6NQHYFM3OHQ6ALWU6VQENCB5OS/
We now collected debug logs. The following actions have been made:
[...]
Since this tracker is assigned to Milind, I will leave it to him. Thanks!
RS Updated by Robert Sander over 2 years ago
Can we please bump the severity a few levels?
There is loss of production as the MDS are currently not running. Even after the upgrade to 18.2.2 the error just after starting happens.
We will collect debug logs and add them here.
RS Updated by Robert Sander over 2 years ago
These are the current actions tried:
# cephfs-journal-tool --rank=ksz-cephfs2:0 event recover_dentries summary
Events by type:
COMMITTED: 45
EXPORT: 1930
IMPORTFINISH: 2151
IMPORTSTART: 2153
OPEN: 3788
PEERUPDATE: 118
SESSION: 198
SESSIONS: 1
SUBTREEMAP: 128
UPDATE: 43121
Errors: 0
# ca. 10-15 Min.
### JOURNAL TRUNCATION
# cephfs-journal-tool --rank=ksz-cephfs2:0 journal reset
old journal was 98761711816021~506984147
new journal start will be 98762219323392 (523224 bytes past old end)
writing journal head
writing EResetJournal entry
done
### MDS TABLE WIPES
# cephfs-table-tool --rank=ksz-cephfs2:0 reset session
Error (2024-05-08T13:25:25.066+0200 7f7184801000 -1 main: Bad rank selection: --rank=ksz-cephfs2:0'
(2) No such file or directory)
# cephfs-table-tool --rank=ksz-cephfs2:0 reset snap
Error (2024-05-08T13:52:27.464+0200 7f622ab2f000 -1 main: Bad rank selection: --rank=ksz-cephfs2:0'
(2) No such file or directory)
# this is different
# cephfs-table-tool --rank=ksz-cephfs2:0 reset inode
Error (2024-05-08T13:53:44.254+0200 7f2c30c85000 -1 main: Bad rank selection: --rank=ksz-cephfs2:0'
(2) No such file or directory)
# ceph fs reset ksz-cephfs2 --yes-i-really-mean-it
Error EINVAL: all MDS daemons must be inactive before resetting filesystem: set the
cluster_down flag and use `ceph mds fail` to make this so
RS Updated by Robert Sander over 2 years ago
The cluster now serves the two CephFS again after running these commands for both:
cephfs-journal-tool event recover_dentries summary
cephfs-journal-tool journal reset
ceph fs reset
YC Updated by Yunzhi Cheng over 2 years ago
IF Updated by Igor Fedotov about 2 years ago · Edited
- Severity changed from 3 - minor to 2 - major
Just faced the same issue on 17.2.7
KS Updated by Konstantin Shalygin about 2 years ago
- Affected Versions v16.2.15, v17.2.7 added
- Affected Versions deleted (
v17.2.5)
AP Updated by Alexander Patrakov about 2 years ago · Edited
This issue has been hit in a customer cluster (on 17.2.7) when trying to reduce from 2 active MDS ranks to 1.
In hindsight, I remember that there were a few directories statically pinned to rank 1.
I have set max_mds to 1. Then rank 1 entered the "up:stopping" state and staued there for almost two hours, with the used memory amount slowly decreasing. It started from 75 GB and went down to 900 MB, then got stuck. In `ceph tell mds.1 ops`, there were mostly `peer_request`s stuck for 5-10 seconds due to xlock.
So, I decided to try and unstick it by restarting both active MDS daemons. This helped, but then the decrease of the used memory got stuck again. The second attempt to restart mds.1 has led to a filesystem corruption:
Oct 03 04:28:25 ceph-head-01 ceph-mds[185919]: -10> 2024-10-03T04:28:25.516+0000 7f1ffb1f5700 0 mds.1.server srcdn back to [dentry #0x101/stray6/20007536339 [840,head] auth NULL (dversion lock) pv=378156740 v=378156733 ino=(nil) state=1610612800|bottomlru | dirty=1 0x555dc23f0000] Oct 03 04:28:25 ceph-head-01 ceph-mds[185919]: -9> 2024-10-03T04:28:25.516+0000 7f1ffb1f5700 0 mds.1.server srci back to [inode 0x20007536339 [...840,head] ~mds1/stray6/20007536339/ [email protected] v378124519 pv378156740 snaprealm=0x555dc2fc3e00 DIRTYPARENT f() n(v0 rc2024-09-24T09:37:42.017679+0000 1=0+1) old_inodes=1 (iversion lock) | dirfrag=1 dirtyparent=1 dirty=1 0x555dc466b080] Oct 03 04:28:25 ceph-head-01 ceph-mds[185919]: -8> 2024-10-03T04:28:25.516+0000 7f1ffb1f5700 0 mds.1.server destdn back to [dentry #0x100/stray6/20007536339 [840,head] [email protected] (dversion lock) v=0 ino=0x20007536339 state=536870976|bottomlru | inodepin=1 dirty=1 0x555dc23ec780] Oct 03 04:28:25 ceph-head-01 ceph-mds[185919]: -7> 2024-10-03T04:28:25.516+0000 7f1ffb1f5700 -1 mds.1.cache.den(0x101 stray6) newly corrupt dentry to be committed: [dentry #0x101/stray6 [2,head] auth (dversion lock) v=219992805 ino=0x610 state=1610612736 | inodepin=1 dirty=1 0x555dc5124500] Oct 03 04:28:25 ceph-head-01 ceph-mds[185919]: -6> 2024-10-03T04:28:25.516+0000 7f1ffb1f5700 -1 mds.1.damage notify_dentry Damage to dentries in fragment * of ino 0x101is fatal because it is a system directory for this rank Oct 03 04:28:25 ceph-head-01 ceph-mds[185919]: -5> 2024-10-03T04:28:25.516+0000 7f1ffb1f5700 5 mds.beacon.ceph-head-01 set_want_state: up:resolve -> down:damaged
An attempt to fix this using the instructions from https://docs.ceph.com/en/latest/cephfs/disaster-recovery-experts/ has been performed:
cephfs-journal-tool --rank mainfs:1 event recover_dentries summary cephfs-journal-tool --rank mainfs:1 journal reset --yes-i-really-really-mean-it
The first command found this:
# cephfs-journal-tool --rank mainfs:1 event recover_dentries summary 2024-10-03T04:51:19.091+0000 7fb09bfaf0c0 1 recover_dentries: frag 606.00000000 is corrupt, overwriting
However, this, followed by a restart of mds.0 (in hindsight, for no good reason) also led to rank 0 being stuck in `up:resolve` with this assertion:
{
"archived": "2024-10-03 05:38:54.483804",
"assert_condition": "auth >= 0",
"assert_file": "/home/abuild/rpmbuild/BUILD/ceph-17.2.7/src/mds/MDCache.cc",
"assert_func": "void MDCache::rejoin_send_rejoins()",
"assert_line": 4086,
"assert_msg": "/home/abuild/rpmbuild/BUILD/ceph-17.2.7/src/mds/MDCache.cc: In function 'void MDCache::rejoin_send_rejoins()' thread 7fc0499ec700 time 2024-10-03T04:53:51.265123+0000\n/home/abuild/rpmbuild/BUILD/ceph-17.2.7/src/mds/MDCache.cc: 4086: FAILED ceph_assert(auth >= 0)\n",
"assert_thread_name": "mds_rank_progr",
"backtrace": [
"/lib64/libpthread.so.0(+0x16910) [0x7fc055860910]",
"gsignal()",
"abort()",
"(ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x17e) [0x7fc055b015b9]",
"/usr/lib64/ceph/libceph-common.so.2(+0x2726ff) [0x7fc055b016ff]",
"(MDCache::rejoin_send_rejoins()+0x2395) [0x55d554b2a395]",
"(MDCache::process_imported_caps()+0x1975) [0x55d554b2c145]",
"(MDCache::rejoin_open_ino_finish(inodeno_t, int)+0x20f) [0x55d554b2fadf]",
"(MDSContext::complete(int)+0x5b) [0x55d554cf22bb]",
"(void finish_contexts<std::vector<MDSContext*, std::allocator<MDSContext*> > >(ceph::common::CephContext*, std::vector<MDSContext*, std::allocator<MDSContext*> >&, int)+0x90) [0x55d5549b0b60]",
"(MDCache::open_ino_finish(inodeno_t, MDCache::open_ino_info_t&, int)+0x138) [0x55d554af5238]",
"(MDCache::_open_ino_traverse_dir(inodeno_t, MDCache::open_ino_info_t&, int)+0xb7) [0x55d554af5577]",
"(MDSContext::complete(int)+0x5b) [0x55d554cf22bb]",
"(MDSRank::_advance_queues()+0x97) [0x55d5549d0247]",
"(MDSRank::ProgressThread::entry()+0x105) [0x55d5549d0875]",
"/lib64/libpthread.so.0(+0xa6ea) [0x7fc0558546ea]",
"clone()"
],
"ceph_version": "17.2.7",
"crash_id": "2024-10-03T04:53:51.267689Z_7c2c4334-a88a-4fa1-8fa1-a117d9adb0a1",
"entity_name": "mds.ceph-head-01",
"os_id": "opensuse-leap",
"os_name": "openSUSE Leap",
"os_version": "15.5",
"os_version_id": "15.5",
"process_name": "ceph-mds",
"stack_sig": "82280975cd8b183be2843f317d5e3fb2102f8887013a14efe23d42804871188a",
"timestamp": "2024-10-03T04:53:51.267689Z",
"utsname_hostname": "ceph-head-01",
"utsname_machine": "x86_64",
"utsname_release": "5.14.21-150500.55.52-default",
"utsname_sysname": "Linux",
"utsname_version": "#1 SMP PREEMPT_DYNAMIC Tue Mar 5 16:53:41 UTC 2024 (a62851f)"
}
We were able to partially recover from this by running the following commands:
cephfs-journal-tool --rank mainfs:0 event recover_dentries summary cephfs-journal-tool --rank mainfs:0 journal reset --yes-i-really-really-mean-it cephfs-table-tool all reset session
Partially, because now the cluster reports metadata damage, and rank 1 is still in the "up:stopping" state for more than an hour.
$ ceph -s
cluster:
id: <redacted>
health: HEALTH_ERR
1 MDSs report damaged metadata
(muted: MDS_CLIENT_LATE_RELEASE MDS_CLIENT_RECALL PG_NOT_DEEP_SCRUBBED PG_NOT_SCRUBBED)
services:
mon: 5 daemons, quorum ceph-head-03,ceph-head-02,ceph-head-01,ceph-head-04,ceph-head-05 (age 4w)
mgr: ceph-head-03(active, since 4w), standbys: ceph-head-01, ceph-head-02, ceph-head-04, ceph-head-05
mds: 2/2 daemons up, 3 standby
osd: 212 osds: 212 up (since 26h), 212 in (since 7w)
data:
volumes: 1/1 healthy
pools: 4 pools, 2337 pgs
objects: 1.29G objects, 1.1 PiB
usage: 1.5 PiB used, 734 TiB / 2.2 PiB avail
pgs: 2313 active+clean
20 active+clean+scrubbing
4 active+clean+scrubbing+deep
io:
client: 78 MiB/s rd, 3.8 MiB/s wr, 295 op/s rd, 666 op/s wr
# ceph fs get mainfs
Filesystem 'mainfs' (1)
fs_name mainfs
epoch 1131698
flags 12 joinable allow_snaps allow_multimds_snaps
created 2022-04-22T11:24:50.583505+0000
modified 2024-10-03T05:19:42.701817+0000
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 1099511627776
required_client_features {}
last_failure 0
last_failure_osd_epoch 333746
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,7=mds uses inline data,8=no anchor table,9=file layout v2,10=snaprealm v2}
max_mds 1
in 0,1
up {0=1233241072,1=1233242687}
failed
damaged
stopped
data_pools [3]
metadata_pool 2
inline_data disabled
balancer
standby_count_wanted 1
[mds.ceph-head-02{0:1233241072} state up:active seq 342 join_fscid=1 addr [v2:10.5.60.2:6800/401008747,v1:10.5.60.2:6801/401008747] compat {c=[1],r=[1],i=[7ff]}]
[mds.ceph-head-01{1:1233242687} state up:stopping seq 310 export targets 0 join_fscid=1 addr [v2:10.5.60.1:6800/2538391471,v1:10.5.60.1:6801/2538391471] compat {c=[1],r=[1],i=[7ff]}]
Note, however, that the `cephfs-shell` command hangs indefinitely and does not react to Ctrl+C, so something does look damaged.
What would be the recommended next steps? We need to get rid of rank 1 temporarily, however, I am too scared by the `ceph fs reset` command suggested above. Will it lose directories that were on rank 1?
AP Updated by Alexander Patrakov about 2 years ago
All accesses to the root directory now hang. However, mounting known subdirectories (e.g., /hdd/data) works, no matter to which MDS rank they were pinned.
AP Updated by Alexander Patrakov about 2 years ago
Forgot to say: after two days, the 1st rank has stopped by itself, and root directory access no longer hangs. But there is some FS damage.
SS Updated by Steve Scheit over 1 year ago
We have encountered this same issue on Quincy (17.2.7) during an MDS shutdown. This is fortunately a non-production cluster, and the filesystem has no workload. I have attached debug for attempted MDS restart to capture some detail that may help in resolution. We are keeping the cluster in this state should any additional information be needed.
{
"assert_condition": "auth >= 0",
"assert_file": "/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.7/rpm/el8/BUILD/ceph-17.2.7/src/mds/MDCache.cc",
"assert_func": "void MDCache::rejoin_send_rejoins()",
"assert_line": 4086,
"assert_msg": "/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.7/rpm/el8/BUILD/ceph-17.2.7/src/mds/MDCache.cc: In function 'void MDCache::rejoin_send_rejoins()' thread 7f884f472700 time 2025-04-17T05:26:15.260004-0700\n/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.7/rpm/el8/BUILD/ceph-17.2.7/src/mds/MDCache.cc: 4086: FAILED ceph_assert(auth >= 0)\n",
"assert_thread_name": "ms_dispatch",
"backtrace": [
"/lib64/libpthread.so.0(+0x12990) [0x7f88570b5990]",
"gsignal()",
"abort()",
"(ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x18f) [0x7f88580bd4fd]",
"/usr/lib64/ceph/libceph-common.so.2(+0x269669) [0x7f88580bd669]",
"(MDCache::rejoin_send_rejoins()+0x216b) [0x55e3b40877eb]",
"(MDSRankDispatcher::handle_mds_map(boost::intrusive_ptr<MMDSMap const> const&, MDSMap const&)+0x1b72) [0x55e3b3f1e2a2]",
"(MDSDaemon::handle_mds_map(boost::intrusive_ptr<MMDSMap const> const&)+0xd66) [0x55e3b3eeef96]",
"(MDSDaemon::handle_core_message(boost::intrusive_ptr<Message const> const&)+0x367) [0x55e3b3ef2467]",
"(MDSDaemon::ms_dispatch2(boost::intrusive_ptr<Message> const&)+0x177) [0x55e3b3ef2be7]",
"(Messenger::ms_deliver_dispatch(boost::intrusive_ptr<Message> const&)+0x478) [0x7f8858338ed8]",
"(DispatchQueue::entry()+0x50f) [0x7f885833631f]",
"(DispatchQueue::DispatchThread::entry()+0x11) [0x7f8858400381]",
"/lib64/libpthread.so.0(+0x81ca) [0x7f88570ab1ca]",
"clone()"
],
"ceph_version": "17.2.7",
"crash_id": "2025-04-17T12:26:15.264325Z_656c6f2e-fed7-48e4-b9a0-432779f5b531",
"entity_name": "mds.p3plceph267b",
"os_id": "almalinux",
"os_name": "AlmaLinux",
"os_version": "8.10 (Cerulean Leopard)",
"os_version_id": "8.10",
"process_name": "ceph-mds",
"stack_sig": "7c0839cd180581f00a587387902de56acca3d2d743b7c00dc41db09329f34b4a",
"timestamp": "2025-04-17T12:26:15.264325Z",
"utsname_hostname": "p3plceph267.prod.phx3.gdg",
"utsname_machine": "x86_64",
"utsname_release": "4.18.0-425.10.1.el8_7.x86_64",
"utsname_sysname": "Linux",
"utsname_version": "#1 SMP Thu Jan 12 10:05:00 EST 2023"
}
sudo ceph fs get cephfs03
Filesystem 'cephfs03' (4)
fs_name cephfs03
epoch 6385
flags 12 joinable allow_snaps allow_multimds_snaps
created 2023-02-01T09:37:36.093887-0700
modified 2025-04-17T10:50:01.783816-0700
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 1099511627776
required_client_features {}
last_failure 0
last_failure_osd_epoch 45049
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,7=mds uses inline data,8=no anchor table,9=file layout v2,10=snaprealm v2}
max_mds 2
in 0,1
up {0=334963246,1=329731614}
failed
damaged
stopped
data_pools [9]
metadata_pool 10
inline_data disabled
balancer
standby_count_wanted 1
[mds.p3plceph267b{0:334963246} state up:rejoin seq 4 laggy since 2025-04-17T10:50:01.783743-0700 addr [v2:10.37.214.135:6896/3282842849,v1:10.37.214.135:6897/3282842849] compat {c=[1],r=[1],i=[7ff]}]
[mds.p3plceph269a{1:329731614} state up:active seq 53213 addr [v2:10.37.214.148:6896/1538620942,v1:10.37.214.148:6898/1538620942] compat {c=[1],r=[1],i=[7ff]}]
attached is log file with debug_mds 25 debug_ms 1
DV Updated by Dan van der Ster over 1 year ago · Edited
@sscheit here's the context of the assert:
// my subtree?
if (dir->is_auth())
continue; // skip my own regions!
mds_rank_t auth = dir->get_dir_auth().first;
ceph_assert(auth >= 0);
So -- the auth rank is negative.
Looks like this is because the root inode has a rep at rank -2:
2025-04-17T10:48:54.043-0700 7f91a9783700 15 mds.0.cache show_subtrees 2025-04-17T10:48:54.043-0700 7f91a9783700 10 mds.0.cache |__ 0 auth [dir 0x100 ~mds0/ [2,head] auth v=92 cv=0/0 dir_auth=0 state=1073741824 f(v0 10=0+10) n(v2 rc2025-03-04T16:56:53.146097-0700 10=0+10) hs=0+0,ss=0+0 | subtree=1 subtreetemp=0 0x555fac72c880] 2025-04-17T10:48:54.043-0700 7f91a9783700 10 mds.0.cache |__-2 rep [dir 0x1 / [2,head] [email protected] dir_auth=-2 state=134217728 f(v0 m2025-03-04T16:51:14.732723-0700 2=0+2) n(v28 rc2025-03-04T16:56:53.155097-0700 b1630852939 93043=87243+5800) hs=0+0,ss=0+0 | child=0 subtree=1 subtreetemp=0 0x555fac72cd00] 2025-04-17T10:48:54.043-0700 7f91a9783700 1 mds.0.6371 rejoin_joint_start 2025-04-17T10:48:54.043-0700 7f91a9783700 10 mds.0.cache rejoin_send_rejoins with recovery_set 1 2025-04-17T10:48:54.045-0700 7f91ac789700 1 -- [v2:10.37.214.135:6896/3052804132,v1:10.37.214.135:6897/3052804132] <== mon.1 v2:10.37.214.147:3300/0 17 ==== mdsbeacon(334963210/p3plceph267b up:rejoin seq=4 v6374) v8 ==== 141+0+0 (secure 0 0 0) 0x555fad437080 con 0x555fac7ee400 2025-04-17T10:48:54.045-0700 7f91ac789700 5 mds.beacon.p3plceph267b received beacon reply up:rejoin seq 4 rtt 1.011 2025-04-17T10:48:54.045-0700 7f91a9783700 -1 /home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.7/rpm/el8/BUILD/ceph-17.2.7/src/mds/MDCache.cc: In function 'void MDCache::rejoin_send_rejoins()' thread 7f91a9783700 time 2025-04-17T10:48:54.043924-0700 /home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.7/rpm/el8/BUILD/ceph-17.2.7/src/mds/MDCache.cc: 4086: FAILED ceph_assert(auth >= 0)
-2 is probably this?
mds/CDentry.h: static const int PIN_FRAGMENTING = -2; // containing dir is refragmentingSo @Milind Changire does this mean that MDCache::trim_non_auth() needs to also trim these refragmenting subtrees?
Sorry, -2 is probably CDIR_AUTH_UNKNOWN ?
IF Updated by Igor Fedotov over 1 year ago
From Steve's log it Looks like ESubtreeMap log entry is missing root (ino 0x1 '/') CDir item. Instead MDCache::subtree gets relevant entry in a different way when processing subsequent EOpen and as a result that root CDir has invalid auth fields (-2, -2) which finally causes the assertion.
Here is a normal ESubtreeMap replay (note 2 subtrees):
2025-04-18T17:15:30.198+0300 7f78028006c0 10 mds.0.log replay 4194304~872 / 4195196 2025-04-18T17:10:01.905154+0300: ESubtreeMap 2 subtrees ,
0 ambiguous [metablob 0x1, 2 dirs]
2
...
2025-04-18T17:15:30.198+0300 7f78028006c0 7 mds.0.cache adjust_bounded_subtree_auth -2,-2 -> 0,-2 on [dir 0x1 / [2,head] auth v=1 cv=0/0 dir_auth=-2 state=1073741824 f() n() hs=0+0,ss=0+0 | subtree=1 0x55937eef0400] bounds
2025-04-18T17:15:30.198+0300 7f78028006c0 10 mds.0.cache |_-2 auth [dir 0x100 ~mds0/ [2,head] auth v=1 cv=0/0 dir_auth=-2 state=1073741824 f(v0 10=0+10) n(v0 rc2025-04-18T17:10:01.905035+0300 10=0+10) hs=0+0,ss=0+0 | subtree=1 0x55937eef0880]
2025-04-18T17:15:30.198+0300 7f78028006c0 10 mds.0.cache |__-2 auth [dir 0x1 / [2,head] auth v=1 cv=0/0 dir_auth=-2 state=1073741824 f() n() hs=0+0,ss=0+0 | subtree=1 0x55937eef0400]
2025-04-18T17:15:30.198+0300 7f78028006c0 7 mds.0.cache current root is [dir 0x1 / [2,head] auth v=1 cv=0/0 dir_auth=-2 state=1073741824 f() n() hs=0+0,ss=0+0 | subtree=1 0x55937eef0400]
2025-04-18T17:15:30.198+0300 7f78028006c0 10 mds.0.cache.dir(0x1) setting dir_auth=0,-2 from -2,-2 on [dir 0x1 / [2,head] auth v=1 cv=0/0 dir_auth=-2 state=1073741824 f() n() hs=0+0,ss=0+0 | subtree=1 0x55937eef0400]
2025-04-18T17:15:30.198+0300 7f78028006c0 10 mds.0.cache |__-2 auth [dir 0x100 ~mds0/ [2,head] auth v=1 cv=0/0 dir_auth=-2 state=1073741824 f(v0 10=0+10) n(v0 rc2025-04-18T17:10:01.905035+0300 10=0+10) hs=0+0,ss=0+0 | subtree=1 0x55937eef0880]
2025-04-18T17:15:30.198+0300 7f78028006c0 10 mds.0.cache |__ 0 auth [dir 0x1 / [2,head] auth v=1 cv=0/0 dir_auth=0 state=1073741824 f() n() hs=0+0,ss=0+0 | subtree=1 0x55937eef0400]
2
Compare to ESubtreeMap replay from Steve's log, single subtree only and auth for ~mds0 is updated only:
2025-04-17T10:48:51.067-0700 7f91a1f74700 10 mds.0.log replay 521890819~520 / 521895663 2025-03-04T17:01:46.995333-0700: ESubtreeMap 1 subtrees , 0 ambiguous [metablob 0x100, 1 dirs]
...
2025-04-17T10:48:51.068-0700 7f91a1f74700 7 mds.0.cache adjust_bounded_subtree_auth -2,-2 -> 0,-2 on [dir 0x100 ~mds0/ [2,head] auth v=92 cv=0/0 dir_auth=-2 state=1073741824 f(v0 10=0+10) n(v2 rc2025-03-04T16:56:53.146097-0700 10=0+10) hs=0+0,ss=0+0 | subtree=1 0x555fac72c880] bounds
2025-04-17T10:48:51.068-0700 7f91a1f74700 15 mds.0.cache show_subtrees
2025-04-17T10:48:51.068-0700 7f91a1f74700 10 mds.0.cache |_-2 auth [dir 0x100 ~mds0/ [2,head] auth v=92 cv=0/0 dir_auth=-2 state=1073741824 f(v0 10=0+10) n(v2 rc2025-03-04T16:56:53.146097-0700 10=0+10) hs=0+0,ss=0+0 | subtree=1 0x555fac72c880]
2025-04-17T10:48:51.068-0700 7f91a1f74700 7 mds.0.cache current root is [dir 0x100 ~mds0/ [2,head] auth v=92 cv=0/0 dir_auth=-2 state=1073741824 f(v0 10=0+10) n(v2 rc2025-03-04T16:56:53.146097-0700 10=0+10) hs=0+0,ss=0+0 | subtree=1 0x555fac72c880]
2025-04-17T10:48:51.068-0700 7f91a1f74700 10 mds.0.cache.dir(0x100) setting dir_auth=0,-2 from -2,-2 on [dir 0x100 ~mds0/ [2,head] auth v=92 cv=0/0 dir_auth=-2 state=1073741824 f(v0 10=0+10) n(v2 rc2025-03-04T16:56:53.146097-0700 10=0+10) hs=0+0,ss=0+0 | subtree=1 0x555fac72c880]
2025-04-17T10:48:51.068-0700 7f91a1f74700 15 mds.0.cache show_subtrees
2025-04-17T10:48:51.068-0700 7f91a1f74700 10 mds.0.cache |__ 0 auth [dir 0x100 ~mds0/ [2,head] auth v=92 cv=0/0 dir_auth=0 state=1073741824 f(v0 10=0+10) n(v2 rc2025-03-04T16:56:53.146097-0700 10=0+10) hs=0+0,ss=0+0 | subtree=1 0x555fac72c880]
IF Updated by Igor Fedotov over 1 year ago
So this looks like invalid ESubtreeMap entry is written to MDS log at some point.
Unfortunately we don't have relevant log file for that moment...
DV Updated by Dan van der Ster over 1 year ago
@Venky Shankar @Milind Changire do you have a suggestion here to debug further? Any hints how the invalid ESubtreeMap entry was written?
VS Updated by Venky Shankar 11 months ago
- Assignee changed from Milind Changire to Mahesh Mohan
- Tags (freeform) set to temp-assign
VS Updated by Venky Shankar 4 months ago
- Assignee deleted (
Mahesh Mohan)
VS Updated by Venky Shankar 3 months ago
- Category set to Correctness/Safety
- Status changed from New to Triaged
- Assignee set to Venky Shankar
- Target version set to v22.0.0
- Backport set to umbrella,tentacle,squid
- Component(FS) MDS added
- Labels (FS) multimds added
VS Updated by Venky Shankar 3 months ago
- Affected Versions v20.2.5, v18.2.8, v19.2.7, v21.1.1 added
- Affected Versions deleted (
v16.2.15, v17.2.7)