Bug #22631
closedmds: crashes because of old pool id in journal header
0%
Description
we have use rados cppool command to copy the cephfs metadata pool
but,after copy done, mds would keep crashing when we restart it
home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/12.2.2/rpm/el7/BUILD/ceph-12.2.2/src/osdc/Journaler.cc: 87: FAILED assert(layout.pool_id pg_pool)
/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/12.2.2/rpm/el7/BUILD/ceph-12.2.2/src/osdc/Journaler.cc: In function 'void Journaler::_set_layout(const file_layout_t*)' thread 7ff0a0595700 time 2018-01-09 02:26:47.129658
/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/12.2.2/rpm/el7/BUILD/ceph-12.2.2/src/osdc/Journaler.cc: 87: FAILED assert(layout.pool_id pg_pool)
ceph version 12.2.2 (cf0baeeeeba3b47f9427c6c97e2144b094b7e5ba) luminous (stable)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x110) [0x5556f751f850]
2: (()+0x544abf) [0x5556f748eabf]
3: (Journaler::_finish_read_head(int, ceph::buffer::list&)+0x2b5) [0x5556f7491e35]
4: (Context::complete(int)+0x9) [0x5556f71ff069]
5: (Finisher::finisher_thread_entry()+0x198) [0x5556f751e7c8]
6: (()+0x7e25) [0x7ff0ab7f3e25]
7: (clone()+0x6d) [0x7ff0aa8d634d]