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

inconsistency detected under heavy Nix build loads #815

Open
alyssais opened this issue Jan 12, 2025 · 2 comments
Open

inconsistency detected under heavy Nix build loads #815

alyssais opened this issue Jan 12, 2025 · 2 comments

Comments

@alyssais
Copy link
Contributor

It happens to me very regularly (more often than not) that a couple of hours into a large Nix build, my build fails because my bcachefs filesystem has become read-only.

Example:

Jan 12 15:01:46 sf kernel: bcachefs (nvme0n1p2): inode 296678065 link count underflow
Jan 12 15:01:46 sf kernel: 0 transaction updates for __bch2_unlink journal seq 0
Jan 12 15:01:46 sf kernel:   
Jan 12 15:01:46 sf kernel: bcachefs (nvme0n1p2): inconsistency detected - emergency read only at journal seq 22001751
Jan 12 15:01:46 sf kernel: bcachefs (nvme0n1p2): inode 296678065 link count underflow
Jan 12 15:01:46 sf kernel: 0 transaction updates for __bch2_unlink journal seq 0
Jan 12 15:01:46 sf kernel:   
Jan 12 15:01:46 sf kernel: bcachefs (nvme0n1p2): unshutdown complete, journal seq 22001751

When this happens, I mount bcachefs with -o fsck,fix_errors from the initramfs, and it fixes some stuff, but the same thing happens again next time.

@koverstreet
Copy link
Owner

What does bcachefs show-super -f errors say?

@koverstreet
Copy link
Owner

Also, what kernel version? This might be fixed on the master branch

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