Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accounting keys with version=0 fix doesn't persist #756

Closed
g2p opened this issue Oct 4, 2024 · 8 comments
Closed

accounting keys with version=0 fix doesn't persist #756

g2p opened this issue Oct 4, 2024 · 8 comments

Comments

@g2p
Copy link
Contributor

g2p commented Oct 4, 2024

This issue seems more cosmetic, reporting it because the that fsck code was updated recently

When mounting (with or without -o fsck,fix_errors):

09:52:55.882747: bcachefs (99…): recovering from clean shutdown, journal seq 58017678
09:52:55.950641: bcachefs (99…): accounting_read...
09:52:55.950701: invalid bkey u64s 6 type accounting 0:8:6 len 0 ver 0: btree btree=(unknown) 0
09:52:55.950721:   accounting key with version=0: delete?, fixing
09:52:55.966640: invalid bkey u64s 6 type accounting 0:9:6 len 0 ver 0: btree btree=(unknown) 0
09:52:55.966676:   accounting key with version=0: delete?, fixing
09:52:55.990640: invalid bkey u64s 6 type accounting 0:15:6 len 0 ver 0: btree btree=(unknown) 0
09:52:55.990674:   accounting key with version=0: delete?, fixing
09:52:55.990699: invalid bkey u64s 6 type accounting 0:16:6 len 0 ver 0: btree btree=(unknown) 0
09:52:55.990714:   accounting key with version=0: delete?, fixing
09:52:56.098647:  done
09:52:56.478634: bcachefs (99…): alloc_read... done

Sometimes during runtime (edit: when I run bcachefs fs usage or look at /sys/kernel/debug/bcachefs/99*/btrees/accounting/keys):

16:07:12.493477: invalid bkey u64s 6 type accounting 0:15:6 len 0 ver 0: btree btree=(unknown) 0
16:07:12.493605:   accounting key with version=0: delete?, fixing
16:07:12.493624: invalid bkey u64s 6 type accounting 0:16:6 len 0 ver 0: btree btree=(unknown) 0
16:07:12.493641:   accounting key with version=0: delete?, fixing

And again at shutdown:

09:47:35.541132: bcachefs (99…): shutting down
09:47:35.541183: bcachefs (99…): going read-only
09:47:35.581130: bcachefs (99…): finished waiting for writes to stop
09:47:35.605131: bcachefs (99…): flushing journal and stopping allocators, journal seq 58017677
09:47:35.605164: bcachefs (99…): flushing journal and stopping allocators complete, journal seq 58017677
09:47:35.613130: bcachefs (99…): shutdown complete, journal seq 58017678
09:47:35.669127: invalid bkey u64s 6 type accounting 0:8:6 len 0 ver 0: btree btree=(unknown) 0
09:47:35.669164:   accounting key with version=0: delete?, fixing
09:47:35.693128: invalid bkey u64s 6 type accounting 0:9:6 len 0 ver 0: btree btree=(unknown) 0
09:47:35.693159:   accounting key with version=0: delete?, fixing
09:47:35.721129: invalid bkey u64s 6 type accounting 0:15:6 len 0 ver 0: btree btree=(unknown) 0
09:47:35.721157:   accounting key with version=0: delete?, fixing
09:47:35.721170: invalid bkey u64s 6 type accounting 0:16:6 len 0 ver 0: btree btree=(unknown) 0
09:47:35.721181:   accounting key with version=0: delete?, fixing
09:47:35.877129: bcachefs (99…): marking filesystem clean
09:47:35.897188: bcachefs (99…): shutdown complete
@koverstreet
Copy link
Owner

That report makes it look like we're still generating version=0 keys, and the patch making bkey errors AUTOFIX broke the emergency shutdown paths that would've given us more info.

Can you try the current bcachefs-for-upstream branch?

@g2p
Copy link
Contributor Author

g2p commented Oct 5, 2024

No change with the current bcachefs-for-upstream (0f25eb4).

I get the messages, and the autofixing, on mount, umount, and when looking at filesystem usage. Still no idea where these are generated.

@g2p
Copy link
Contributor Author

g2p commented Oct 5, 2024

Is it expected to have accounting keys with btree=(unknown)?
This is a common point between these zombie keys.

@g2p
Copy link
Contributor Author

g2p commented Oct 10, 2024

I've switched to 406358e "bcachefs: Avoid bch2_btree_id_str()" on bcachefs-testing, so I get slightly more detailed error messages:

2024-10-10T10:56:17.826733: bcachefs (99…): starting version 1.13: inode_has_child_snapshots opts=compression=lz4,background_compression=zstd,foreground_target=ssd,background_target=hdd,promote_target=ssd,gc_reserve_percent=5,verbose
2024-10-10T10:56:17.826824: bcachefs (99…): recovering from clean shutdown, journal seq 58265289
2024-10-10T10:56:17.914710: bcachefs (99…): accounting_read...
2024-10-10T10:56:17.914745: invalid bkey u64s 6 type accounting 0:8:6 len 0 ver 0: btree btree=(unknown btree 134217728) 0
2024-10-10T10:56:17.914765:   accounting key with version=0: delete?, fixing
2024-10-10T10:56:18.062711:  done
2024-10-10T10:56:18.394730: bcachefs (99…): alloc_read... done
2024-10-10T10:56:18.394808: bcachefs (99…): stripes_read... done
2024-10-10T10:56:18.394825: bcachefs (99…): snapshots_read... done
2024-10-10T10:56:18.474727: bcachefs (99…): journal_replay... done
2024-10-10T10:56:18.474769: bcachefs (99…): resume_logged_ops... done
2024-10-10T10:56:18.474796: bcachefs (99…): delete_dead_inodes... done
2024-10-10T10:56:18.474815: bcachefs (99…): going read-write
2024-10-10T10:56:18.474830: bcachefs (99…): done starting filesystem

134217728 is 2^27

Some of the other keys have been staying fixed, and this is the last one.

The messages from before the reboot, at umount time:

oct. 10 10:50:55: bcachefs (99…): shutting down
oct. 10 10:50:55: bcachefs (99…): going read-only
oct. 10 10:50:55: bcachefs (99…): finished waiting for writes to stop
oct. 10 10:50:55: bcachefs (99…): flushing journal and stopping allocators, journal seq 58265288
oct. 10 10:50:55: bcachefs (99…): flushing journal and stopping allocators complete, journal seq 58265288
oct. 10 10:50:55: bcachefs (99…): shutdown complete, journal seq 58265289
oct. 10 10:50:55: invalid bkey u64s 6 type accounting 0:8:6 len 0 ver 0: btree btree=(unknown) 0
oct. 10 10:50:55:   accounting key with version=0: delete?, fixing
oct. 10 10:50:55: bcachefs (99…): marking filesystem clean
oct. 10 10:50:55: bcachefs (99…): shutdown complete

@g2p
Copy link
Contributor Author

g2p commented Oct 10, 2024

Though if I look for "unknown btree" I find more:

grep 'unknown btree' /sys/kernel/debug/bcachefs/*/btrees/accounting/keys

/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:1:6 len 0 ver 223039708970619963: btree btree=(unknown btree 16777216) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:2:6 len 0 ver 211017940890302657: btree btree=(unknown btree 33554432) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:3:6 len 0 ver 200599076079675518: btree btree=(unknown btree 50331648) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:4:6 len 0 ver 223471636651746005: btree btree=(unknown btree 67108864) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:5:6 len 0 ver 200599956547968954: btree btree=(unknown btree 83886080) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:6:6 len 0 ver 200599956547969038: btree btree=(unknown btree 100663296) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:7:6 len 0 ver 223036148442753235: btree btree=(unknown btree 117440512) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:10:6 len 0 ver 223474973841295589: btree btree=(unknown btree 167772160) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:11:6 len 0 ver 218858171760920748: btree btree=(unknown btree 184549376) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:12:6 len 0 ver 210472926720304453: btree btree=(unknown btree 201326592) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:13:6 len 0 ver 223471748320889715: btree btree=(unknown btree 218103808) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:14:6 len 0 ver 223450127455510715: btree btree=(unknown btree 234881024) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:18:6 len 0 ver 223471726846060559: btree btree=(unknown btree 301989888) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:19:6 len 0 ver 200619215181342260: btree btree=(unknown btree 318767104) 0
/sys/kernel/debug/bcachefs/99…/btrees/accounting/keys:u64s 6 type accounting 0:20:6 len 0 ver 199355051687280790: btree btree=(unknown btree 335544320) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:1:6 len 0 ver 56195352100988: btree btree=(unknown btree 16777216) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:2:6 len 0 ver 21474836514: btree btree=(unknown btree 33554432) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:4:6 len 0 ver 4294969487: btree btree=(unknown btree 67108864) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:7:6 len 0 ver 197568496461: btree btree=(unknown btree 117440512) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:8:6 len 0 ver 17179874433: btree btree=(unknown btree 134217728) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:9:6 len 0 ver 17179874295: btree btree=(unknown btree 150994944) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:10:6 len 0 ver 73014444151: btree btree=(unknown btree 167772160) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:11:6 len 0 ver 17179874043: btree btree=(unknown btree 184549376) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:12:6 len 0 ver 141733921266: btree btree=(unknown btree 201326592) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:13:6 len 0 ver 25769803810: btree btree=(unknown btree 218103808) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:14:6 len 0 ver 575525617968: btree btree=(unknown btree 234881024) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:15:6 len 0 ver 17179874170: btree btree=(unknown btree 251658240) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:16:6 len 0 ver 51539608564: btree btree=(unknown btree 268435456) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:17:6 len 0 ver 64424509710: btree btree=(unknown btree 285212672) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:18:6 len 0 ver 73014444254: btree btree=(unknown btree 301989888) 0
/sys/kernel/debug/bcachefs/f4…/btrees/accounting/keys:u64s 6 type accounting 0:20:6 len 0 ver 25769803986: btree btree=(unknown btree 335544320) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:1:6 len 0 ver 33170848470794420: btree btree=(unknown btree 16777216) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:2:6 len 0 ver 33180920169113601: btree btree=(unknown btree 33554432) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:3:6 len 0 ver 11247896577966496: btree btree=(unknown btree 50331648) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:4:6 len 0 ver 33154128163111092: btree btree=(unknown btree 67108864) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:7:6 len 0 ver 30495384493105285: btree btree=(unknown btree 117440512) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:8:6 len 0 ver 103079215149: btree btree=(unknown btree 134217728) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:9:6 len 0 ver 98784261363: btree btree=(unknown btree 150994944) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:10:6 len 0 ver 33178115555461098: btree btree=(unknown btree 167772160) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:11:6 len 0 ver 33081513151041875: btree btree=(unknown btree 184549376) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:12:6 len 0 ver 32697890967152940: btree btree=(unknown btree 201326592) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:13:6 len 0 ver 33188698354876550: btree btree=(unknown btree 218103808) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:14:6 len 0 ver 33103967240075803: btree btree=(unknown btree 234881024) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:15:6 len 0 ver 98784261187: btree btree=(unknown btree 251658240) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:16:6 len 0 ver 1168231105356: btree btree=(unknown btree 268435456) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:17:6 len 0 ver 10158306324667245: btree btree=(unknown btree 285212672) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:18:6 len 0 ver 33130694821546073: btree btree=(unknown btree 301989888) 0
/sys/kernel/debug/bcachefs/ff…/btrees/accounting/keys:u64s 6 type accounting 0:20:6 len 0 ver 94489308003: btree btree=(unknown btree 335544320) 0

(The btree ids aren't all powers of two, but they all have at least 24 trailing zeroes)

The first time I grep there's just one that gets reported in dmesg

11:12:17.354721: invalid bkey u64s 6 type accounting 0:8:6 len 0 ver 0: btree btree=(unknown btree 134217728) 0
11:12:17.354988:   accounting key with version=0: delete?, fixing

@g2p
Copy link
Contributor Author

g2p commented Oct 21, 2024

This seems to have fixed itself with fd034bd (bcachefs-testing)

[   21.781258] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): starting version 1.13: inode_has_child_snapshots opts=compression=lz4,background_compression=zstd,foreground_t
arget=ssd,background_target=hdd,promote_target=ssd,gc_reserve_percent=5,verbose                                                                                               
[   21.781593] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): recovering from unclean shutdown                                                                              
[   21.781783] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): starting journal read                                                                                         
[   23.884225] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): journal read done on device vdb, ret 0                                                                        
[   40.064416] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): journal read done on device vda, ret 0                                                                        
[   40.064618] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): journal read done, replaying entries 58806907-58806907                                                        
[   40.065265] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): Journal keys: 0 read, 0 after sorting and compacting                                                          
[   40.234899] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): accounting_read... done                                                                                       
[   40.401766] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): alloc_read... done                                                                                            
[   40.762722] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): stripes_read... done                                                                                          
[   40.762778] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): snapshots_read... done                                                                                        
[   40.838226] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): going read-write                                                                                              
[   40.838906] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): journal_replay... done                                                                                        
[   40.838996] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): resume_logged_ops... done                                                                                     
[   40.839103] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): delete_dead_inodes... done                                                                                    
[   40.843195] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): done starting filesystem                                                                                      
[   41.008971] invalid bkey u64s 10 type extent 604008059:651576:U32_MAX len 8 ver 205877152811173580: durability: 1 crc: c_size 16 size 16 offset 0 nonce 0 csum chacha20_pol
y1305_80 bd4a:4e4446c9823f61f4  compress incompressible ptr: 2:181401:848 gen 45 rebalance: target hdd compression zstd (invalid extent entry 0000000000000000)               
[   41.008975]   invalid extent entry type (got 6, shutting down                                                                                                              
[   41.009362] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): inconsistency detected - emergency read only at journal seq 58806916                                          
[   41.009435] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): invalid bkey on insert from bch2_moving_ctxt_init -> get_update_rebalance_opts [bcachefs]                     
[   41.009435]                                                                                                                                                                
[   41.009688] 2 transaction updates for bch2_moving_ctxt_init journal seq 58806916                                                                        15:15:42 [627/1436]
[   41.009689]   update: btree=extents cached=0 get_update_rebalance_opts+0x16a/0x2f0 [bcachefs]                                                                              
[   41.009691]     old u64s 9 type extent 604008059:651576:U32_MAX len 8 ver 205877152811173580: durability: 1 crc: c_size 16 size 16 offset 0 nonce 0 csum chacha20_poly1305_
80 bd4a:4e4446c9823f61f4  compress incompressible ptr: 2:181401:848 gen 45 rebalance: target hdd compression zstd                                                             
[   41.009692]     new u64s 10 type extent 604008059:651576:U32_MAX len 8 ver 205877152811173580: durability: 1 crc: c_size 16 size 16 offset 0 nonce 0 csum chacha20_poly1305
_80 bd4a:4e4446c9823f61f4  compress incompressible ptr: 2:181401:848 gen 45 rebalance: target hdd compression zstd (invalid extent entry 0000000000000000)                    
[   41.009694]   update: btree=alloc cached=1 bch2_trans_start_alloc_update+0x154/0x2e0 [bcachefs]                                                                            
[   41.009695]     old u64s 13 type alloc_v4 2:181401:0 len 0 ver 0:                                                                                                          
[   41.009696]     gen 45 oldest_gen 42 data_type user                                                                                                                        
[   41.009696]     journal_seq       58800966
[   41.009697]     need_discard      1
[   41.009698]     need_inc_gen      1
[   41.009699]     dirty_sectors     88
[   41.009700]     stripe_sectors    0
[   41.009700]     cached_sectors    144
[   41.009701]     stripe            0
[   41.009702]     stripe_redundancy 0
[   41.009703]     io_time[READ]     924136780240
[   41.009704]     io_time[WRITE]    592014784976
[   41.009705]     fragmentation     184549376
[   41.009705]     bp_start          8
[   41.009706]   
[   41.009707]     new u64s 13 type alloc_v4 2:181401:0 len 0 ver 0: 
[   41.009708]     gen 45 oldest_gen 42 data_type user
[   41.009709]     journal_seq       58800966
[   41.009710]     need_discard      1
[   41.009710]     need_inc_gen      1
[   41.009711]     dirty_sectors     88
[   41.009712]     stripe_sectors    0
[   41.009713]     cached_sectors    144
[   41.009714]     stripe            0
[   41.009714]     stripe_redundancy 0
[   41.009715]     io_time[READ]     924136780240
[   41.009716]     io_time[WRITE]    592014784976
[   41.009717]     fragmentation     184549376
[   41.009718]     bp_start          8
[   41.009718]   
[   41.009720]   write_buffer_keys: btree=backpointers level=0 u64s 5 type deleted 2:190213603328:0 len 0 ver 0write_buffer_keys: btree=accounting level=0 u64s 6 type account
ing 0:2:16843778 len 0 ver 252573780998624286: replicas user: 1/1 [2] -8write_buffer_keys: btree=accounting level=0 u64s 6 type accounting 0:255:4294967045 len 0 ver 25257378
0998624293: snapshot id=4294967295 -8write_buffer_keys: btree=accounting level=0 u64s 8 type accounting 0:0:1284 len 0 ver 252573780998624300: compression incompressible -1 -
16 -16write_buffer_keys: btree=accounting level=0 u64s 8 type accounting 0:36:7240456 len 0 ver 252573780998624309: inum  -1 -8 -8write_buffer_keys: btree=backpointers level=
0 u64s 9 type backpointer 2:190213603328:0 len 0 ver 0: bucket=2:181401:0 btree=extents level=0 offset=848:0 len=8 pos=604008059:651576:U32_MAXwrite_buffer_keys: btree=accoun
ting level=0 u64s 6 type accounting 0:2:16843778 len 0 ver 252573780998624328: replicas user: 1/1 [2] 8write_buffer_keys: btree=accounting level=0 u64s 6 type account
[   41.010462] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): going read-only
[   41.016595] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): bch2_trans_commit_write_locked(): fatal error fatal error in transaction commit: fsck_delete_bkey
[   41.016685] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): do_rebalance(): error fsck_delete_bkey
[   41.016817] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): unable to write journal to sufficient devices
[   41.017149] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): flushing journal and stopping allocators, journal seq 58806916
[   41.017324] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): flushing journal and stopping allocators complete, journal seq 58806916
[   41.017449] bcachefs (9986b9d8-9f64-43c3-9a1d-cd397dcf3643): unshutdown complete, journal seq 58806916
[   41.017641] bch-rebalance/9 (196) used greatest stack depth: 8336 bytes left

First time mounting errors (see above), but the next one was successful. There are still unknown accounting keys but they aren't noticed by fsck.

@g2p
Copy link
Contributor Author

g2p commented Oct 26, 2024

Closing as I can't reproduce anymore, though let me know if the other unknown keys are of interest. I guess they are kept by design for forward compat reasons and I don't think new ones are being introduced.

@g2p g2p closed this as completed Oct 26, 2024
@g2p
Copy link
Contributor Author

g2p commented Dec 2, 2024

6e44d6e "bcachefs: If we did repair on a btree node, make sure we rewrite it" seemed to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants