koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
120 stars 89 forks source link

fsck no help when FS can not mount ,fsck showing no errors #158

Closed bhzhu203 closed 1 year ago

bhzhu203 commented 1 year ago
[ 9011.442316] bcachefs: loading out-of-tree module taints kernel.
[ 9011.530243] bcachefs (vdb): mounting version 1.2: deleted_inodes opts=compression=lz4
[ 9011.530931] bcachefs (vdb): recovering from unclean shutdown
[ 9011.531386] bcachefs (vdb): starting journal read
[ 9025.949481] bcachefs (vdb): journal read done on device vdb, ret 0
[ 9025.949944] bcachefs (vdb): journal read done, replaying entries 6976947-6976947
[ 9026.152293] bcachefs (vdb): alloc_read... done
[ 9026.157128] bcachefs (vdb): stripes_read... done
[ 9026.157393] bcachefs (vdb): snapshots_read... done
[ 9026.158884] bcachefs (vdb): journal_replay... done
[ 9026.159160] bcachefs (vdb): delete_dead_snapshots...
[ 9026.159162] bcachefs (vdb): going read-write
[ 9034.685402]  done
[ 9034.685600] bcachefs (vdb): delete_dead_inodes... done
[ 9034.692262] bcachefs (vdb): bch2_inode_peek(): error looking up inum 1:4096: ENOENT_inode
[ 9034.692899] bcachefs (vdb): error mounting: error getting root inode: ENOENT
[ 9034.693900] bcachefs (vdb): shutdown complete
[ 9034.694994] mount (72836) used greatest stack depth: 11768 bytes left
[ 9047.381821] divide error: 0000 [#1] PREEMPT SMP PTI
[ 9047.382174] CPU: 2 PID: 73041 Comm: bch-rebalance/v Kdump: loaded Tainted: G           O       6.4.0-uksm+ #44 bb0e0ef3da5d44126bf2e48475ecd94d97cc8e12
[ 9047.382906] Hardware name: Alibaba Cloud Alibaba Cloud ECS, BIOS 449e491 04/01/2014
[ 9047.383334] RIP: 0010:rebalance_work+0xe8/0x220 [bcachefs]
[ 9047.383681] Code: 49 8d 04 29 49 39 e9 49 0f 43 d1 49 89 c2 48 39 c7 4c 0f 46 d7 48 39 d0 4c 0f 42 d7 31 d2 4b 8d 04 92 48 8d 04 80 48 c1 e0 02 <48> f7 f7 44 39 e0 72 11 44 89 6c 24 14 41 89 c4 48 89 3c 24 4c 89
[ 9047.384676] RSP: 0018:ffffc90000f63d40 EFLAGS: 00010246
[ 9047.384982] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 9047.385366] RDX: 0000000000000000 RSI: ffff88810b740000 RDI: 0000000000000000
[ 9047.385762] RBP: 0000000000000000 R08: ffff88810d511cb8 R09: 0000000000000000
[ 9047.386146] R10: 0000000000000000 R11: ffff8881d0ec0001 R12: 0000000000000000
[ 9047.386530] R13: 0000000000000000 R14: ffff8881b53af000 R15: ffff88810b740000
[ 9047.386920] FS:  0000000000000000(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000
[ 9047.387353] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9047.387678] CR2: 00007fac20fdee48 CR3: 0000000002434003 CR4: 00000000003706e0
[ 9047.388064] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 9047.388462] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 9047.388851] Call Trace:
[ 9047.388999]  <TASK>
[ 9047.389127]  ? die+0x32/0x80
[ 9047.389300]  ? do_trap+0xd2/0x100
[ 9047.389490]  ? rebalance_work+0xe8/0x220 [bcachefs 83a2d26889bc6edb970709b8e52e92646102c61d]
[ 9047.389974]  ? do_error_trap+0x65/0x80
[ 9047.390184]  ? rebalance_work+0xe8/0x220 [bcachefs 83a2d26889bc6edb970709b8e52e92646102c61d]
[ 9047.390660]  ? exc_divide_error+0x31/0x40
[ 9047.390894]  ? rebalance_work+0xe8/0x220 [bcachefs 83a2d26889bc6edb970709b8e52e92646102c61d]
[ 9047.391662]  ? asm_exc_divide_error+0x16/0x20
[ 9047.392142]  ? rebalance_work+0xe8/0x220 [bcachefs 83a2d26889bc6edb970709b8e52e92646102c61d]
[ 9047.392840]  ? task_cputime_adjusted+0x44/0xe0
[ 9047.393297]  bch2_rebalance_thread+0x167/0x4e0 [bcachefs 83a2d26889bc6edb970709b8e52e92646102c61d]
[ 9047.394029]  ? finish_task_switch.isra.0+0x91/0x290
[ 9047.394510]  ? rebalance_work+0x220/0x220 [bcachefs 83a2d26889bc6edb970709b8e52e92646102c61d]
[ 9047.395199]  kthread+0xf0/0x120
[ 9047.395595]  ? kthread_complete_and_exit+0x20/0x20
[ 9047.396067]  ret_from_fork+0x1f/0x30
[ 9047.396478]  </TASK>
[ 9047.396823] Modules linked in: bcachefs(O) mean_and_variance netconsole rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache netfs tcp_diag inet_diag sunrpc binfmt_misc nls_utf8 nls_cp437 intel_rapl_msr intel_rapl_common virtio_console virtio_balloon joydev evdev serio_raw squashfs loop dm_multipath dm_mod msr fuse efi_pstore ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx raid1 raid0 multipath linear md_mod nvme_tcp nvme_rdma rdma_cm iw_cm ib_cm ib_core configfs nvme_fc nvme_fabrics virtio_net crct10dif_pclmul net_failover failover virtio_blk crc32_pclmul ghash_clmulni_intel sha512_ssse3 cirrus aesni_intel drm_shmem_helper crypto_simd drm_kms_helper virtio_pci virtio virtio_pci_legacy_dev virtio_pci_modern_dev cryptd drm psmouse i2c_piix4 virtio_ring i2c_core floppy pata_acpi button

I can not mount fs on my mongodb snapshots server . When mounting , the system run into deadlock (hang).

tool version 4d04fe42623a2f2b91a75cfa3d3503ab88e48acc