bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

Unable to allocate journal write

Open RAOF opened this issue 3 years ago • 1 comments

When mounting the troublesome fs on kernel commit 9482cfb5 with -o verbose,fix_errors,fsck it fails, with:

[  290.358978] bcachefs: bch2_fs_open() 
[  290.358979] bcachefs: bch2_read_super() 
[  290.359218] bcachefs: bch2_read_super() ret 0
[  290.359389] bcachefs: bch2_read_super() 
[  290.390594] bcachefs: bch2_read_super() ret 0
[  290.391527] bcachefs: bch2_read_super() 
[  290.392131] bcachefs: bch2_read_super() ret 0
[  290.392956] bcachefs: bch2_read_super() 
[  290.393720] bcachefs: bch2_read_super() ret 0
[  290.394133] bcachefs: bch2_read_super() 
[  290.394477] bcachefs: bch2_read_super() ret 0
[  290.394990] bcachefs: bch2_read_super() 
[  290.395263] bcachefs: bch2_read_super() ret 0
[  290.395754] bcachefs: bch2_fs_alloc() 
[  290.443423] bcachefs: bch2_fs_journal_init() 
[  290.443808] bcachefs: bch2_fs_journal_init() ret 0
[  290.443844] bcachefs: bch2_fs_btree_cache_init() 
[  290.445085] bcachefs: bch2_fs_btree_cache_init() ret 0
[  290.445400] bcachefs: bch2_fs_encryption_init() 
[  290.457159] bcachefs: bch2_fs_encryption_init() ret 0
[  290.457161] bcachefs: __bch2_fs_compress_init() 
[  290.457203] bcachefs: __bch2_fs_compress_init() ret 0
[  290.457205] bcachefs: bch2_fs_fsio_init() 
[  290.457247] bcachefs: bch2_fs_fsio_init() ret 0
[  290.457248] bcachefs: bch2_dev_alloc() 
[  290.469122] bcachefs: bch2_dev_alloc() ret 0
[  290.469125] bcachefs: bch2_dev_alloc() 
[  290.471345] bcachefs: bch2_dev_alloc() ret 0
[  290.471348] bcachefs: bch2_dev_alloc() 
[  290.479261] bcachefs: bch2_dev_alloc() ret 0
[  290.479263] bcachefs: bch2_dev_alloc() 
[  290.487531] bcachefs: bch2_dev_alloc() ret 0
[  290.487546] bcachefs: bch2_dev_alloc() 
[  290.488658] bcachefs: bch2_dev_alloc() ret 0
[  290.488660] bcachefs: bch2_dev_alloc() 
[  290.494074] bcachefs: bch2_dev_alloc() ret 0
[  290.494284] bcachefs: bch2_fs_alloc() ret 0
[  299.355568] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): journal read done, 0 keys in 1 entries, seq 6537892
[  299.409001] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting alloc read
[  299.743460] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): alloc read done
[  299.743461] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting stripes_read
[  299.743929] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripes_read done
[  299.743930] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting mark and sweep
[  299.919441] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 77, fixing
[  299.930095] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930098] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930100] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930101] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930103] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930104] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930105] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930106] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930108] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): pointer does not match stripe 3, fixing
[  299.930108] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Ratelimiting new instances of previous error
[  336.724038] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 1 has wrong block_sectors[0]: got 15024, should be 0, fixing
[  336.724042] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 1 has wrong block_sectors[1]: got 24168, should be 0, fixing
[  336.724043] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 3 has wrong block_sectors[0]: got 9496, should be 0, fixing
[  336.724044] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 3 has wrong block_sectors[1]: got 9608, should be 0, fixing
[  336.724045] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 4 has wrong block_sectors[0]: got 19288, should be 0, fixing
[  336.724046] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 4 has wrong block_sectors[1]: got 25840, should be 0, fixing
[  336.724047] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 6 has wrong block_sectors[0]: got 16160, should be 0, fixing
[  336.724048] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 6 has wrong block_sectors[1]: got 24856, should be 0, fixing
[  336.724049] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 7 has wrong block_sectors[0]: got 15496, should be 0, fixing
[  336.724049] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripe 7 has wrong block_sectors[1]: got 16072, should be 0, fixing
[  336.724050] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Ratelimiting new instances of previous error
[  336.813810] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 1/1 [5]: got 25864, should be 837368, fixing
[  336.813815] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 2/3 [0 2 5]: got 849816, should be 29600, fixing
[  336.813818] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 1/1 [2]: got 30184, should be 1110848, fixing
[  336.813820] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 2/3 [2 3 5]: got 339912, should be 12248, fixing
[  336.813825] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 1/1 [0]: got 209267850, should be 209841738, fixing
[  336.813826] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 1/1 [3]: got 35824, should be 1104555, fixing
[  336.813828] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 2/3 [0 2 3]: got 1661547, should be 54960, fixing
[  336.813829] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): fs has wrong user: 2/3 [0 3 5]: got 814048, should be 33728, fixing
[  336.821677] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): mark and sweep done
[  336.821685] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting journal replay
[  340.710034] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Unable to allocate journal write:
               active journal entries:	5
               seq:			6537927
               last_seq:		6537923
               last_seq_ondisk:	5556610308919079162
               flushed_seq_ondisk:	6537924
               prereserved:		1088/29032448
               nr flush writes:	7
               nr noflush writes:	19
               nr direct reclaim:	0
               nr background reclaim:	4
               current entry sectors:	4294960128
               current entry error:	0
               current entry:		266955/523810
               current entry:		idx 3 refcount 1
               unwritten entry:	idx 2 refcount 0 sectors 4096
               unwritten entry:	idx 1 refcount 0 sectors 4096
               need write:		0
               replay done:		1
               space:
               	discarded	4294960128:1038336
               	clean ondisk	4294960128:1038336
               	clean		4294960128:1038336
               	total		2048:1048576
               dev 0:
               	nr		1024
               	bucket size	1024
               	available	1022:112
               	discard_idx	5
               	dirty_ondisk	5 (seq 6537910)
               	dirty_idx	5 (seq 6537910)
               	cur_idx		5 (seq 6537910)
               dev 1:
               	nr		1024
               	bucket size	512
               	available	1022:56
               	discard_idx	34
               	dirty_ondisk	34 (seq 6537909)
               	dirty_idx	34 (seq 6537909)
               	cur_idx		34 (seq 6537
[  340.710041] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): emergency read only
[  340.710059] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): unable to write journal to sufficient devices
[  340.746240] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Unable to allocate journal write:
               active journal entries:	4
               seq:			6537927
               last_seq:		6537924
               last_seq_ondisk:	9128681461447830077
               flushed_seq_ondisk:	6537925
               prereserved:		1088/29163520
               nr flush writes:	8
               nr noflush writes:	19
               nr direct reclaim:	0
               nr background reclaim:	4
               current entry sectors:	4294964224
               current entry error:	0
               current entry:		error
               current entry:		idx 3 refcount 1
               unwritten entry:	idx 2 refcount 0 sectors 4096
               need write:		0
               replay done:		1
               space:
               	discarded	4294964224:1042432
               	clean ondisk	4294964224:1042432
               	clean		4294964224:1042432
               	total		2048:1048576
               dev 0:
               	nr		1024
               	bucket size	1024
               	available	1022:112
               	discard_idx	5
               	dirty_ondisk	5 (seq 6537910)
               	dirty_idx	5 (seq 6537910)
               	cur_idx		5 (seq 6537910)
               dev 1:
               	nr		1024
               	bucket size	512
               	available	1022:56
               	discard_idx	34
               	dirty_ondisk	34 (seq 6537909)
               	dirty_idx	34 (seq 6537909)
               	cur_idx		34 (seq 6537909)
               dev 2:
               	nr		512
               	bucket size	2048
               	available	510:2
[  340.746253] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): unable to write journal to sufficient devices
[  340.958277] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Error in recovery: journal replay failed (-5)
[  340.958281] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): shutting down
[  340.958284] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): flushing journal and stopping allocators
[  340.958285] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): flushing journal and stopping allocators complete
[  341.362278] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): shutdown complete
[  341.452163] bcachefs: bch2_fs_open() ret -5

RAOF avatar Mar 19 '21 06:03 RAOF

Fresh attempt, on a5c0e1bb - mount with -o verbose,fsck,version_upgrade,fix_errors fails with

[  603.969378] bcachefs: bch2_fs_open() 
[  603.969385] bcachefs: bch2_read_super() 
[  603.969701] bcachefs: bch2_read_super() ret 0
[  603.969915] bcachefs: bch2_read_super() 
[  604.001121] bcachefs: bch2_read_super() ret 0
[  604.001338] bcachefs: bch2_read_super() 
[  604.033969] bcachefs: bch2_read_super() ret 0
[  604.034187] bcachefs: bch2_read_super() 
[  604.065482] bcachefs: bch2_read_super() ret 0
[  604.065606] bcachefs: bch2_read_super() 
[  604.627775] bcachefs: bch2_read_super() ret 0
[  604.628088] bcachefs: bch2_read_super() 
[  605.218393] bcachefs: bch2_read_super() ret 0
[  605.218975] bcachefs: bch2_fs_alloc() 
[  605.241148] bcachefs: bch2_fs_journal_init() 
[  605.242081] bcachefs: bch2_fs_journal_init() ret 0
[  605.242269] bcachefs: bch2_fs_btree_cache_init() 
[  605.245424] bcachefs: bch2_fs_btree_cache_init() ret 0
[  605.246239] bcachefs: bch2_fs_encryption_init() 
[  605.246265] bcachefs: bch2_fs_encryption_init() ret 0
[  605.246269] bcachefs: __bch2_fs_compress_init() 
[  605.246354] bcachefs: __bch2_fs_compress_init() ret 0
[  605.246366] bcachefs: bch2_fs_fsio_init() 
[  605.246721] bcachefs: bch2_fs_fsio_init() ret 0
[  605.246723] bcachefs: bch2_dev_alloc() 
[  605.270705] bcachefs: bch2_dev_alloc() ret 0
[  605.270711] bcachefs: bch2_dev_alloc() 
[  605.274727] bcachefs: bch2_dev_alloc() ret 0
[  605.274732] bcachefs: bch2_dev_alloc() 
[  605.289551] bcachefs: bch2_dev_alloc() ret 0
[  605.289556] bcachefs: bch2_dev_alloc() 
[  605.305141] bcachefs: bch2_dev_alloc() ret 0
[  605.305147] bcachefs: bch2_dev_alloc() 
[  605.307271] bcachefs: bch2_dev_alloc() ret 0
[  605.307276] bcachefs: bch2_dev_alloc() 
[  605.318908] bcachefs: bch2_dev_alloc() ret 0
[  605.320743] bcachefs: bch2_fs_alloc() ret 0
[  605.320881] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): version prior to inode backpointers, upgrade and fsck required
[  613.500410] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): journal read done, 120567 keys in 23 entries, seq 6538376
[  613.628057] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting alloc read
[  614.530169] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): alloc read done
[  614.530174] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting stripes_read
[  614.530876] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripes_read done
[  614.530879] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting mark and sweep
[  614.704179] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting topology repair pass
[  616.987565] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): error validating btree node on nvme1n1 at btree extents level 0/2
                 u64s 12 type btree_ptr_v2 732508:1928:U32_MAX len 0 ver 0: seq dde1173404a7ad9c written 0 min_key 731799:9:0 ptr: 1:249368576 gen 6 ptr: 4:100500480 gen 1
                 node offset 0: bad magic
[  616.987575] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): retrying read
[  654.711180] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): topology repair pass done
[  687.133453] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): mark and sweep done
[  687.133469] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting journal replay
[  687.196768] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): going read-write
[  691.987218] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): journal replay done
[  691.987235] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting fsck
[  696.133029] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): checking extents
[  716.454025] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): checking dirents
[  719.636331] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Unable to allocate journal write:
               active journal entries:	23
               seq:			6538417
               last_seq:		6538395
               last_seq_ondisk:	2738894362151599288
               flushed_seq_ondisk:	6538415
               prereserved:		2762/14450688
               each entry reserved:	459
               nr flush writes:	12
               nr noflush writes:	21
               nr direct reclaim:	0
               nr background reclaim:	35
               reclaim kicked:		0
               reclaim runs in:	12 ms
               current entry sectors:	4294964224
               current entry error:	0
               current entry:		3706/261678
               current entry:		idx 1 refcount 1
               unwritten entry:	idx 0 refcount 0 sectors 4096
               need write:		0
               replay done:		1
               space:
               	discarded	4294964224:1034240
               	clean ondisk	4294964224:1034240
               	clean		4294964224:1034240
               	total		2048:1048576
               dev 0:
               	nr		1024
               	bucket size	1024
               	available	1022:56
               	discard_idx	13
               	dirty_ondisk	13 (seq 6538400)
               	dirty_idx	13 (seq 6538400)
               	cur_idx		13 (seq 6538400)
               dev 1:
               	nr		1024
               	bucket size	512
               	available	1018:24
               	discard_idx	122
               	dirty_ondisk	122 (seq 6538395)
               	dirty_idx	122 (seq 6538
[  719.636345] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): emergency read only
[  719.636355] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): unable to write journal to sufficient devices
[  719.637754] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): error in fsck: error -30 updating inode
[  719.638237] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Error in recovery: error in fsck (-30)
[  719.638243] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): shutting down
[  719.638250] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): flushing journal and stopping allocators
[  719.657487] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): flushing journal and stopping allocators complete
[  719.956514] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): shutdown complete
[  720.563726] bcachefs: bch2_fs_open() ret -30
[  720.565227] bcachefs: bch2_fs_open() 
[  720.565233] bcachefs: bch2_read_super() 
[  720.565482] bcachefs: bch2_read_super() ret 0
[  720.565781] bcachefs: bch2_read_super() 
[  720.566591] bcachefs: bch2_read_super() ret 0
[  720.566827] bcachefs: bch2_read_super() 
[  720.573751] bcachefs: bch2_read_super() ret 0
[  720.573972] bcachefs: bch2_read_super() 
[  720.604209] bcachefs: bch2_read_super() ret 0
[  720.604990] bcachefs: bch2_read_super() 
[  720.611970] bcachefs: bch2_read_super() ret 0
[  720.612542] bcachefs: bch2_read_super() 
[  720.615430] bcachefs: bch2_read_super() ret 0
[  720.616186] bcachefs: bch2_fs_alloc() 
[  720.667041] bcachefs: bch2_fs_journal_init() 
[  720.667926] bcachefs: bch2_fs_journal_init() ret 0
[  720.668066] bcachefs: bch2_fs_btree_cache_init() 
[  720.670861] bcachefs: bch2_fs_btree_cache_init() ret 0
[  720.672729] bcachefs: bch2_fs_encryption_init() 
[  720.672811] bcachefs: bch2_fs_encryption_init() ret 0
[  720.672822] bcachefs: __bch2_fs_compress_init() 
[  720.673086] bcachefs: __bch2_fs_compress_init() ret 0
[  720.673142] bcachefs: bch2_fs_fsio_init() 
[  720.675291] bcachefs: bch2_fs_fsio_init() ret 0
[  720.675304] bcachefs: bch2_dev_alloc() 
[  720.725896] bcachefs: bch2_dev_alloc() ret 0
[  720.725902] bcachefs: bch2_dev_alloc() 
[  720.730417] bcachefs: bch2_dev_alloc() ret 0
[  720.730422] bcachefs: bch2_dev_alloc() 
[  720.745720] bcachefs: bch2_dev_alloc() ret 0
[  720.745725] bcachefs: bch2_dev_alloc() 
[  720.761387] bcachefs: bch2_dev_alloc() ret 0
[  720.761391] bcachefs: bch2_dev_alloc() 
[  720.763546] bcachefs: bch2_dev_alloc() ret 0
[  720.763552] bcachefs: bch2_dev_alloc() 
[  720.775476] bcachefs: bch2_dev_alloc() ret 0
[  720.776970] bcachefs: bch2_fs_alloc() ret 0
[  720.777113] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): version prior to inode backpointers, upgrade and fsck required
[  728.920048] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): journal read done, 116041 keys in 21 entries, seq 6538416
[  729.041437] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting alloc read
[  729.855132] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): alloc read done
[  729.855136] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting stripes_read
[  729.855896] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): stripes_read done
[  729.855899] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting mark and sweep
[  730.030415] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting topology repair pass
[  732.280894] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): error validating btree node on nvme1n1 at btree extents level 0/2
                 u64s 12 type btree_ptr_v2 732508:1928:U32_MAX len 0 ver 0: seq dde1173404a7ad9c written 0 min_key 731799:9:0 ptr: 1:249368576 gen 6 ptr: 4:100500480 gen 1
                 node offset 0: bad magic
[  732.280904] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): retrying read
[  769.879167] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): topology repair pass done
[  802.290199] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): mark and sweep done
[  802.290216] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting journal replay
[  802.351335] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): going read-write
[  807.428577] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): journal replay done
[  807.428594] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): starting fsck
[  811.570944] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): checking extents
[  831.861796] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): checking dirents
[  835.497563] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Unable to allocate journal write:
               active journal entries:	25
               seq:			6538457
               last_seq:		6538433
               last_seq_ondisk:	5123637119813422829
               flushed_seq_ondisk:	6538455
               prereserved:		2510/14450688
               each entry reserved:	459
               nr flush writes:	12
               nr noflush writes:	21
               nr direct reclaim:	0
               nr background reclaim:	34
               reclaim kicked:		0
               reclaim runs in:	44 ms
               current entry sectors:	4294964224
               current entry error:	0
               current entry:		3494/261678
               current entry:		idx 1 refcount 1
               unwritten entry:	idx 0 refcount 0 sectors 4096
               need write:		0
               replay done:		1
               space:
               	discarded	4294964224:1034240
               	clean ondisk	4294964224:1034240
               	clean		4294964224:1034240
               	total		2048:1048576
               dev 0:
               	nr		1024
               	bucket size	1024
               	available	1022:56
               	discard_idx	15
               	dirty_ondisk	15 (seq 6538440)
               	dirty_idx	15 (seq 6538440)
               	cur_idx		15 (seq 6538440)
               dev 1:
               	nr		1024
               	bucket size	512
               	available	1017:24
               	discard_idx	130
               	dirty_ondisk	130 (seq 6538434)
               	dirty_idx	130 (seq 6538
[  835.497583] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): emergency read only
[  835.497583] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): error in fsck: error -30 updating inode
[  835.497594] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): unable to write journal to sufficient devices
[  835.498032] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): Error in recovery: error in fsck (-30)
[  835.498037] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): shutting down
[  835.498041] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): flushing journal and stopping allocators
[  835.498043] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): flushing journal and stopping allocators complete
[  835.814804] bcachefs (ea4e6e4c-5851-40e2-99f6-31b4f34e1feb): shutdown complete
[  836.436128] bcachefs: bch2_fs_open() ret -30

RAOF avatar May 06 '21 02:05 RAOF

This particular problem no longer occurs on my fs.

RAOF avatar Sep 18 '22 23:09 RAOF