* ENOSPC and unable to add a device to rectify
@ 2026-11-30 3:23 J
2026-12-01 8:47 ` Zygo Blaxell
0 siblings, 1 reply; 2+ messages in thread
From: J @ 2026-11-30 3:23 UTC (permalink / raw)
To: linux-btrfs@vger.kernel.org
2026.11.29 @ 17:05:42
From: https://superuser.com/questions/1419067/btrfs-root-no-space-left-on-device-auto-remount-read-only-cant-balance-cant
So I ran:
mount -L "Titan A.E." -o subvol=@,noatime,nodev,nosuid,compress=zstd,space_cache=v2,rw,clear_cache,skip_balance
and it looks like it failed on that too with ENOSPC.
It does happen to be on luks with FDE (The entire disks are encrypted - ie no partition tables) (dm0-dm3) - and then btrfs device add was used with dm0/dm1/dm2/dm3. Would this cause space to be estimated wrong? The journalctl entry mentions: has XXXXXXXXXXXXXXXXXXX free, is full a number of times. Thus my question.
What is the fix for this?
I grabbed another drive and formatted it via cryptsetup and I'm ready to add the the array so I ran:
mount -L "Titan A.E." -o subvol=@,noatime,nodev,nosuid,compress=zstd,space_cache=v2,rw,clear_cache,skip_balance
again and now I'm getting this:
Nov 29 18:42:19 kernel: BTRFS info (device dm-3): last unmount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
Nov 29 18:46:20 kernel: BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
Nov 29 18:46:20 kernel: BTRFS info (device dm-3): using sha256 checksum algorithm
Nov 29 18:46:21 kernel: BTRFS info (device dm-3): rebuilding free space tree
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 30998528 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 31850496 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 32735232 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 34668544 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 34947072 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 35618816 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 35733504 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 35848192 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 36110336 mirror 0 wanted 84016 found 84022
Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 37371904 mirror 0 wanted 84016 found 84022
Nov 29 18:46:30 kernel: btrfs_buffer_uptodate: 25 callbacks suppressed
Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94470144 mirror 0 wanted 84016 found 84022
Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94486528 mirror 0 wanted 84016 found 84022
Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94584832 mirror 0 wanted 84016 found 84022
Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94748672 mirror 0 wanted 84016 found 84022
Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 93093888 mirror 0 wanted 84016 found 84022
Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 93126656 mirror 0 wanted 84016 found 84022
Nov 29 18:47:08 kernel: ------------[ cut here ]------------
Nov 29 18:47:08 kernel: !xa_empty(&transaction->delayed_refs.head_refs)
Nov 29 18:47:08 kernel: WARNING: fs/btrfs/transaction.c:174 at btrfs_put_transaction+0x13c/0x190, CPU#25: btrfs-transacti/3148200
Nov 29 18:47:08 kernel: Modules linked in: tcp_diag inet_diag uhid snd_seq_dummy snd_hrtimer snd_seq snd_seq_device veth nf_conntrack_netlink nft_nat nft_masq nft_ct xfrm_user xfrm_algo nft_fib_ipv4 nft_fib nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables pppoe rfcomm pppox algif_hash algif_skcipher ppp_generic slhc af_alg bnep overlay dm_crypt encrypted_keys trusted tee asn1_encoder vfat fat 8021q mrp garp snd_hda_codec_alc882 snd_hda_codec_realtek_lib snd_hda_codec_generic snd_hda_codec_atihdmi snd_hda_codec_hdmi intel_rapl_msr snd_hda_intel amd_atl intel_rapl_common snd_hda_codec amd64_edac snd_hda_core btusb kvm_amd snd_intel_dspcfg mt7921e btmtk snd_intel_sdw_acpi wireguard btbcm mt7921_common libcurve25519 snd_hwdep btintel ip6_udp_tunnel mt792x_lib btrtl kvm ccp snd_pcm udp_tunnel spd5118 asus_armoury mt76_connac_lib snd_timer bluetooth sp5100_tco bridge eeepc_wmi aesni_intel atlantic asus_ec_sensors mt76 snd asus_wmi ucsi_acpi gf128mul firmware_attributes_class i2c_piix4 stp soundcore
Nov 29 18:47:08 kernel: sparse_keymap rapl intel_wmi_thunderbolt wmi_bmof llc typec_ucsi igc macsec mac80211 k10temp i2c_smbus roles ptp pps_core prom21_xhci libarc4 mousedev joydev typec cfg80211 gpio_amdpt gpio_generic rfkill mac_hid nct6775 nct6775_core dm_mod sg uinput crypto_user hwmon_vid i2c_dev ntsync kvmfr(OE) uas usb_storage thunderbolt nvme nvme_core nvme_keyring nvme_auth vmd amdgpu drm_panel_backlight_quirks drm_buddy gpu_sched amdxcp radeon drm_suballoc_helper drm_ttm_helper ttm i2c_algo_bit drm_display_helper cec video wmi drm_exec amd libphy mdio_bus vfio_pci vfio_pci_core irqbypass vfio_iommu_type1 vfio iommufd
Nov 29 18:47:08 kernel: CPU: 25 UID: 0 PID: 3148200 Comm: btrfs-transacti Tainted: G W OE 7.4.0-rc4-1-cachyos-rc #1 PREEMPT(full) 22790e353feb3216cfedcee068c89bbe5f1ff493
Nov 29 18:47:08 kernel: Tainted: [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
Nov 29 18:47:08 kernel: Hardware name: ASUS System Product Name/ProArt X670E-CREATOR WIFI, BIOS 3112 06/05/2025
Nov 29 18:47:08 kernel: Sched_ext: rusty_1.1.4_x86_64_unknown_linux_gnu (enabled+all), task: runnable_at=+0ms
Nov 29 18:47:08 kernel: RIP: 0010:btrfs_put_transaction+0x13c/0x190
Nov 29 18:47:08 kernel: Code: 89 df 5b 41 5c 41 5d 41 5e 41 5f e9 5e d1 d2 ff 48 83 c3 10 be 03 00 00 00 48 89 df 5b 41 5c 41 5d 41 5e 41 5f e9 74 b3 2c 00 <0f> 0b 48 83 bb 40 01 00 00 00 0f 84 09 ff ff ff 0f 0b 48 83 bb 60
Nov 29 18:47:08 kernel: RSP: 0018:ffffd2ac0378fdd0 EFLAGS: 00010282
Nov 29 18:47:08 kernel: RAX: ffff8882ff237828 RBX: ffff8882ff237800 RCX: ffff8882ff237828
Nov 29 18:47:08 kernel: RDX: 0000000000000001 RSI: 0000000000000282 RDI: ffff8882ff237800
Nov 29 18:47:08 kernel: RBP: ffff8882ff237838 R08: 0000000000000001 R09: ffffd2ac0378fdb8
Nov 29 18:47:08 kernel: R10: 0000000000000101 R11: ffffffff8965b608 R12: ffff8882ff237800
Nov 29 18:47:08 kernel: R13: ffff8882ff237870 R14: ffff8883e69bf000 R15: ffff88825b9183e0
Nov 29 18:47:08 kernel: FS: 0000000000000000(0000) GS:ffff888ffba30000(0000) knlGS:0000000000000000
Nov 29 18:47:08 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 29 18:47:08 kernel: CR2: 0000123ce1d7b004 CR3: 000000078c6b4000 CR4: 0000000000f50ef0
Nov 29 18:47:08 kernel: PKRU: 55555554
Nov 29 18:47:08 kernel: Call Trace:
Nov 29 18:47:08 kernel: <TASK>
Nov 29 18:47:08 kernel: btrfs_commit_transaction+0xa3a/0x1180
Nov 29 18:47:08 kernel: ? btrfs_init_metadata_block_rsv+0x49/0x60
Nov 29 18:47:08 kernel: transaction_kthread+0x11d/0x1b0
Nov 29 18:47:08 kernel: ? __pfx_transaction_kthread+0x10/0x10
Nov 29 18:47:08 kernel: kthread+0x100/0x130
Nov 29 18:47:08 kernel: ? __pfx_kthread+0x10/0x10
Nov 29 18:47:08 kernel: ret_from_fork+0x105/0x9f0
Nov 29 18:47:08 kernel: ? srso_alias_return_thunk+0x5/0xfbef5
Nov 29 18:47:08 kernel: ? __pfx_kthread+0x10/0x10
Nov 29 18:47:08 kernel: ret_from_fork_asm+0x1a/0x30
Nov 29 18:47:08 kernel: </TASK>
Nov 29 18:47:08 kernel: ---[ end trace 0000000000000000 ]---
It is also hanging on the mount instead of returning /sigh...
OK - it returned after a couple of minutes with:
mount: /mnt/titan: fsconfig() failed: No space left on device.
dmesg(1) may have more information after failed mount system call.
And the following lines came immediately after the ---[ end trace ... ]--- above:
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): space_info METADATA (sub-group id 0) has 537411584 free, is full
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): space_info total=260919263232, used=259378659328, pinned=0, reserved=33849344, may_use=969211904, readonly=131072 zone_unusable=0
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): global_block_rsv: size 0 reserved 0
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): trans_block_rsv: size 0 reserved 0
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): chunk_block_rsv: size 0 reserved 0
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): remap_block_rsv: size 0 reserved 0
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): delayed_block_rsv: size 0 reserved 0
Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): delayed_refs_rsv: size 2037383168 reserved 969211904
Nov 29 18:49:59 kernel: BTRFS error (device dm-3 state I): open_ctree failed: -ENOSPC
So I was initially talking to google and it suggested:
sudo mount -o rw,rescue=nologreplay,skip_balance,compress=zstd,noatime -L "Titan A.E." /mnt/titan && sudo btrfs device add /dev/mapper/titan5 /mnt/titan
(I changed to a label vs device) but it's otherwise the command it suggested):
To which I see in the logs:
[Sun Nov 29 19:00:43 2026] BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
[Sun Nov 29 19:00:43 2026] BTRFS info (device dm-3): using sha256 checksum algorithm
[Sun Nov 29 19:00:43 2026] BTRFS error (device dm-3): nologreplay must be used with ro mount option
[Sun Nov 29 19:00:43 2026] BTRFS error (device dm-3): open_ctree failed: -EINVAL
[Sun Nov 29 19:01:04 2026] BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
[Sun Nov 29 19:01:04 2026] BTRFS info (device dm-3): using sha256 checksum algorithm
[Sun Nov 29 19:01:04 2026] BTRFS error (device dm-3): nologreplay must be used with ro mount option
[Sun Nov 29 19:01:04 2026] BTRFS error (device dm-3): open_ctree failed: -EINVAL
[Sun Nov 29 19:02:39 2026] BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
[Sun Nov 29 19:02:39 2026] BTRFS info (device dm-3): using sha256 checksum algorithm
[Sun Nov 29 19:02:41 2026] BTRFS info (device dm-3): enabling free space tree
[Sun Nov 29 19:02:41 2026] BTRFS info (device dm-3): use zstd compression, level 3
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 4 wanted 84023 found 84031
[Sun Nov 29 19:03:04 2026] BTRFS warning (device dm-3): missing free space info for 9521972903936
<snip 98 lines of the same log spam for brevity>
[Sun Nov 29 19:03:04 2026] BTRFS warning (device dm-3): missing free space info for 21425474764800
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 2 wanted 84031 found 84023
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 2 wanted 84031 found 84023
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 1 wanted 84031 found 84023
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 3 wanted 84031 found 84023
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 4 wanted 84031 found 84023
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): failed to run delayed ref for logical 26148864 num_bytes 16384 type 176 action 1 ref_mod 1: -5
[Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3 state A): Transaction 84031 aborted (-EIO)
[Sun Nov 29 19:03:04 2026] BTRFS: error (device dm-3 state A) in btrfs_run_delayed_refs:2248: errno=-5 IO failure
[Sun Nov 29 19:03:04 2026] BTRFS info (device dm-3 state EA): forced readonly
So at this point I'm chicken-and-egg re: I need to free space to free space!!!
How in the heck is there not *always* enough reserved space for these kind of operations? That feels like a filesystem oversite - am I wrong?
I guess - more to the point - is how to I fix this? I still seem to be able to mount read-only so I can *eventually* back everything up to another medium (I have 2 offline backups (ie a 22tb removable drive and a 4xraid 0 (not redundant) 18tb of useable storage) that between the 2 systems I have a second copy of everything I own - although I need to update those with my latest files /sigh...
I will update my backups regardless. Is there anyway I can get out of this chicken-and-egg without wiping and redoing my entire array?
I can include logs if they would help - I feel like this error isn't new - from googling around - I've even encountered errors about a year ago that had me backing up / starting over fresh and doing raid5 with metadata 1c4 so I wouldn't have metadata failures - at least.
Anyway - I'm at my wits end. Any help would be appreciated.
Thank you (and sorry for the long post)...
J
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ENOSPC and unable to add a device to rectify
2026-11-30 3:23 ENOSPC and unable to add a device to rectify J
@ 2026-12-01 8:47 ` Zygo Blaxell
0 siblings, 0 replies; 2+ messages in thread
From: Zygo Blaxell @ 2026-12-01 8:47 UTC (permalink / raw)
To: J; +Cc: linux-btrfs@vger.kernel.org
On Mon, Nov 30, 2026 at 03:23:04AM +0000, J wrote:
> 2026.11.29 @ 17:05:42
> From: https://superuser.com/questions/1419067/btrfs-root-no-space-left-on-device-auto-remount-read-only-cant-balance-cant
> So I ran:
>
> mount -L "Titan A.E." -o subvol=@,noatime,nodev,nosuid,compress=zstd,space_cache=v2,rw,clear_cache,skip_balance
You don't want clear_cache here (or ever, if you're already on space_cache
v2). This is not the use case clear_cache is for.
clear_cache seems to have bitrotted in v6.14, and can now corrupt
filesystems.
Try `btrfs check --readonly` to see if your filesystem survived.
Run btrfs check with the filesystem unmounted. If you're lucky,
the metadata damage we're seeing in the logs didn't get written
to disk.
Don't mount it read-write again before the btrfs check.
A successful mount doesn't mean it's undamaged. To copy data off,
use `-o ro,rescue=nologreplay` (a plain ro mount still replays
the log tree, which writes), or `ro,rescue=all` if that fails
(`ro,rescue=all,rescue=usebackuproot_0` on kernel 7.4-rc to avoid a
different regression there).
The bug:
* While the cache rebuild runs, btrfs_run_delayed_refs() returns
immediately without doing anything (BTRFS_FS_CREATING_FREE_SPACE_TREE
is set).
* Since 882af9f13e83 (v6.14), the rebuild can release its transaction
handle between block groups, so another thread can commit partway through.
* That commit writes the superblock without applying its extent tree
updates. New tree blocks get no extent item, so they look free and
get reused.
* The rebuild also never clears FREE_SPACE_TREE_VALID, so if it is
interrupted, the next mount trusts a partial tree. The commit message
of 882af9f13e83 assumes the opposite.
The damage needs a transaction commit during the rebuild. Commits happen
every 30 seconds by default, so a rebuild running longer than that should
be enough, and yours was still going at 47 seconds. I reproduced it on
a test VM (7.3 with local patches) by forcing commits with commit=1:
about 1.5 seconds into the rebuild the warning fired, the mount failed,
and btrfs check found extent tree errors. A later plain read-write mount
of a copy succeeded, but aborted on the first write after.
The log messages that fit:
* the 18:47:08 !xa_empty(head_refs) warning comes from the transaction
kthread during the rebuild, and no abort is flagged. The teardown dump
also shows leftover delayed ref reservations.
* the first transid errors (18:46:25) come before that warning, so the
damage probably started in the earlier clear_cache mount, whose log wasn't
sent. The 18:46 mount then reused those blocks and dropped more updates.
* the "missing free space info" warnings probably come from a partial
tree. The log pasted here has no "failed to rebuild" line, so we can't
see which rebuild was interrupted.
> and it looks like it failed on that too with ENOSPC.
Maybe. You didn't post a log from that mount, so can't confirm.
It's likely you had a normal metadata ENOSPC before you used clear_cache,
which would have been recoverable in most cases. Now you have a
different problem.
> It does happen to be on luks with FDE (The entire disks are encrypted
> - ie no partition tables) (dm0-dm3) - and then btrfs device add was
> used with dm0/dm1/dm2/dm3. Would this cause space to be estimated
> wrong? The journalctl entry mentions: has XXXXXXXXXXXXXXXXXXX free,
> is full a number of times. Thus my question.
> What is the fix for this?
For the original ENOSPC, the usual fix is to delete one file at a time,
with sync after each one, until you have enough metadata space free
to run a data balance (btrfs balance start -dusage=50), at which point
you'll have some unallocated space to expand metadata. If it fails with
a large file, try smaller ones.
You can also add more drives, but it's tricky to pull that off when
you have 0.6% of allocated metadata space free.
> I grabbed another drive and formatted it via cryptsetup and I'm ready
> to add the the array so I ran:
>
> mount -L "Titan A.E." -o subvol=@,noatime,nodev,nosuid,compress=zstd,space_cache=v2,rw,clear_cache,skip_balance
>
> again and now I'm getting this:
>
> Nov 29 18:42:19 kernel: BTRFS info (device dm-3): last unmount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
> Nov 29 18:46:20 kernel: BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
> Nov 29 18:46:20 kernel: BTRFS info (device dm-3): using sha256 checksum algorithm
> Nov 29 18:46:21 kernel: BTRFS info (device dm-3): rebuilding free space tree
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 30998528 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 31850496 mirror 0 wanted 84016 found 84022
This is no longer ENOSPC. It's potential metadata damage.
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 32735232 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 34668544 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 34947072 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 35618816 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 35733504 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 35848192 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 36110336 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:25 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 37371904 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:30 kernel: btrfs_buffer_uptodate: 25 callbacks suppressed
> Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94470144 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94486528 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94584832 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 94748672 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 93093888 mirror 0 wanted 84016 found 84022
> Nov 29 18:46:30 kernel: BTRFS error (device dm-3): parent transid verify failed on logical 93126656 mirror 0 wanted 84016 found 84022
> Nov 29 18:47:08 kernel: ------------[ cut here ]------------
> Nov 29 18:47:08 kernel: !xa_empty(&transaction->delayed_refs.head_refs)
> Nov 29 18:47:08 kernel: WARNING: fs/btrfs/transaction.c:174 at btrfs_put_transaction+0x13c/0x190, CPU#25: btrfs-transacti/3148200
> Nov 29 18:47:08 kernel: Modules linked in: tcp_diag inet_diag uhid snd_seq_dummy snd_hrtimer snd_seq snd_seq_device veth nf_conntrack_netlink nft_nat nft_masq nft_ct xfrm_user xfrm_algo nft_fib_ipv4 nft_fib nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables pppoe rfcomm pppox algif_hash algif_skcipher ppp_generic slhc af_alg bnep overlay dm_crypt encrypted_keys trusted tee asn1_encoder vfat fat 8021q mrp garp snd_hda_codec_alc882 snd_hda_codec_realtek_lib snd_hda_codec_generic snd_hda_codec_atihdmi snd_hda_codec_hdmi intel_rapl_msr snd_hda_intel amd_atl intel_rapl_common snd_hda_codec amd64_edac snd_hda_core btusb kvm_amd snd_intel_dspcfg mt7921e btmtk snd_intel_sdw_acpi wireguard btbcm mt7921_common libcurve25519 snd_hwdep btintel ip6_udp_tunnel mt792x_lib btrtl kvm ccp snd_pcm udp_tunnel spd5118 asus_armoury mt76_connac_lib snd_timer bluetooth sp5100_tco bridge eeepc_wmi aesni_intel atlantic asus_ec_sensors mt76 snd asus_wmi ucsi_acpi gf128mul firmware_attributes_class i2c_piix4 stp soundcore
> Nov 29 18:47:08 kernel: sparse_keymap rapl intel_wmi_thunderbolt wmi_bmof llc typec_ucsi igc macsec mac80211 k10temp i2c_smbus roles ptp pps_core prom21_xhci libarc4 mousedev joydev typec cfg80211 gpio_amdpt gpio_generic rfkill mac_hid nct6775 nct6775_core dm_mod sg uinput crypto_user hwmon_vid i2c_dev ntsync kvmfr(OE) uas usb_storage thunderbolt nvme nvme_core nvme_keyring nvme_auth vmd amdgpu drm_panel_backlight_quirks drm_buddy gpu_sched amdxcp radeon drm_suballoc_helper drm_ttm_helper ttm i2c_algo_bit drm_display_helper cec video wmi drm_exec amd libphy mdio_bus vfio_pci vfio_pci_core irqbypass vfio_iommu_type1 vfio iommufd
> Nov 29 18:47:08 kernel: CPU: 25 UID: 0 PID: 3148200 Comm: btrfs-transacti Tainted: G W OE 7.4.0-rc4-1-cachyos-rc #1 PREEMPT(full) 22790e353feb3216cfedcee068c89bbe5f1ff493
> Nov 29 18:47:08 kernel: Tainted: [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
> Nov 29 18:47:08 kernel: Hardware name: ASUS System Product Name/ProArt X670E-CREATOR WIFI, BIOS 3112 06/05/2025
> Nov 29 18:47:08 kernel: Sched_ext: rusty_1.1.4_x86_64_unknown_linux_gnu (enabled+all), task: runnable_at=+0ms
> Nov 29 18:47:08 kernel: RIP: 0010:btrfs_put_transaction+0x13c/0x190
> Nov 29 18:47:08 kernel: Code: 89 df 5b 41 5c 41 5d 41 5e 41 5f e9 5e d1 d2 ff 48 83 c3 10 be 03 00 00 00 48 89 df 5b 41 5c 41 5d 41 5e 41 5f e9 74 b3 2c 00 <0f> 0b 48 83 bb 40 01 00 00 00 0f 84 09 ff ff ff 0f 0b 48 83 bb 60
> Nov 29 18:47:08 kernel: RSP: 0018:ffffd2ac0378fdd0 EFLAGS: 00010282
> Nov 29 18:47:08 kernel: RAX: ffff8882ff237828 RBX: ffff8882ff237800 RCX: ffff8882ff237828
> Nov 29 18:47:08 kernel: RDX: 0000000000000001 RSI: 0000000000000282 RDI: ffff8882ff237800
> Nov 29 18:47:08 kernel: RBP: ffff8882ff237838 R08: 0000000000000001 R09: ffffd2ac0378fdb8
> Nov 29 18:47:08 kernel: R10: 0000000000000101 R11: ffffffff8965b608 R12: ffff8882ff237800
> Nov 29 18:47:08 kernel: R13: ffff8882ff237870 R14: ffff8883e69bf000 R15: ffff88825b9183e0
> Nov 29 18:47:08 kernel: FS: 0000000000000000(0000) GS:ffff888ffba30000(0000) knlGS:0000000000000000
> Nov 29 18:47:08 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> Nov 29 18:47:08 kernel: CR2: 0000123ce1d7b004 CR3: 000000078c6b4000 CR4: 0000000000f50ef0
> Nov 29 18:47:08 kernel: PKRU: 55555554
> Nov 29 18:47:08 kernel: Call Trace:
> Nov 29 18:47:08 kernel: <TASK>
> Nov 29 18:47:08 kernel: btrfs_commit_transaction+0xa3a/0x1180
> Nov 29 18:47:08 kernel: ? btrfs_init_metadata_block_rsv+0x49/0x60
> Nov 29 18:47:08 kernel: transaction_kthread+0x11d/0x1b0
> Nov 29 18:47:08 kernel: ? __pfx_transaction_kthread+0x10/0x10
> Nov 29 18:47:08 kernel: kthread+0x100/0x130
> Nov 29 18:47:08 kernel: ? __pfx_kthread+0x10/0x10
> Nov 29 18:47:08 kernel: ret_from_fork+0x105/0x9f0
> Nov 29 18:47:08 kernel: ? srso_alias_return_thunk+0x5/0xfbef5
> Nov 29 18:47:08 kernel: ? __pfx_kthread+0x10/0x10
> Nov 29 18:47:08 kernel: ret_from_fork_asm+0x1a/0x30
> Nov 29 18:47:08 kernel: </TASK>
> Nov 29 18:47:08 kernel: ---[ end trace 0000000000000000 ]---
>
> It is also hanging on the mount instead of returning /sigh...
>
> OK - it returned after a couple of minutes with:
>
> mount: /mnt/titan: fsconfig() failed: No space left on device.
> dmesg(1) may have more information after failed mount system call.
>
> And the following lines came immediately after the ---[ end trace ... ]--- above:
>
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): space_info METADATA (sub-group id 0) has 537411584 free, is full
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): space_info total=260919263232, used=259378659328, pinned=0, reserved=33849344, may_use=969211904, readonly=131072 zone_unusable=0
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): global_block_rsv: size 0 reserved 0
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): trans_block_rsv: size 0 reserved 0
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): chunk_block_rsv: size 0 reserved 0
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): remap_block_rsv: size 0 reserved 0
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): delayed_block_rsv: size 0 reserved 0
> Nov 29 18:49:59 kernel: BTRFS info (device dm-3 state I): delayed_refs_rsv: size 2037383168 reserved 969211904
> Nov 29 18:49:59 kernel: BTRFS error (device dm-3 state I): open_ctree failed: -ENOSPC
> So I was initially talking to google and it suggested:
>
> sudo mount -o rw,rescue=nologreplay,skip_balance,compress=zstd,noatime -L "Titan A.E." /mnt/titan && sudo btrfs device add /dev/mapper/titan5 /mnt/titan
> (I changed to a label vs device) but it's otherwise the command it suggested):
> To which I see in the logs:
>
> [Sun Nov 29 19:00:43 2026] BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
> [Sun Nov 29 19:00:43 2026] BTRFS info (device dm-3): using sha256 checksum algorithm
> [Sun Nov 29 19:00:43 2026] BTRFS error (device dm-3): nologreplay must be used with ro mount option
> [Sun Nov 29 19:00:43 2026] BTRFS error (device dm-3): open_ctree failed: -EINVAL
> [Sun Nov 29 19:01:04 2026] BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
> [Sun Nov 29 19:01:04 2026] BTRFS info (device dm-3): using sha256 checksum algorithm
> [Sun Nov 29 19:01:04 2026] BTRFS error (device dm-3): nologreplay must be used with ro mount option
> [Sun Nov 29 19:01:04 2026] BTRFS error (device dm-3): open_ctree failed: -EINVAL
> [Sun Nov 29 19:02:39 2026] BTRFS info (device dm-3): first mount of filesystem a6b3e68c-c168-4ebd-8f23-a423ce2682b7
> [Sun Nov 29 19:02:39 2026] BTRFS info (device dm-3): using sha256 checksum algorithm
> [Sun Nov 29 19:02:41 2026] BTRFS info (device dm-3): enabling free space tree
> [Sun Nov 29 19:02:41 2026] BTRFS info (device dm-3): use zstd compression, level 3
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 4 wanted 84023 found 84031
> [Sun Nov 29 19:03:04 2026] BTRFS warning (device dm-3): missing free space info for 9521972903936
> <snip 98 lines of the same log spam for brevity>
> [Sun Nov 29 19:03:04 2026] BTRFS warning (device dm-3): missing free space info for 21425474764800
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 2 wanted 84031 found 84023
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 2 wanted 84031 found 84023
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 1 wanted 84031 found 84023
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 3 wanted 84031 found 84023
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): parent transid verify failed on logical 30801920 mirror 4 wanted 84031 found 84023
Now it's likely permanent metadata damage.
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3): failed to run delayed ref for logical 26148864 num_bytes 16384 type 176 action 1 ref_mod 1: -5
> [Sun Nov 29 19:03:04 2026] BTRFS error (device dm-3 state A): Transaction 84031 aborted (-EIO)
> [Sun Nov 29 19:03:04 2026] BTRFS: error (device dm-3 state A) in btrfs_run_delayed_refs:2248: errno=-5 IO failure
> [Sun Nov 29 19:03:04 2026] BTRFS info (device dm-3 state EA): forced readonly
>
> So at this point I'm chicken-and-egg re: I need to free space to free space!!!
>
> How in the heck is there not *always* enough reserved space for
> these kind of operations? That feels like a filesystem oversite -
> am I wrong?
Normally there is enough metadata allocated to allow data to grow, but
it's possible to reduce metadata allocations by balancing (which is why
metadata should never be balanced) or increase metadata usage by doing
a metadata-intensive operation while the filesystem is very full, like
a snapshot delete, or millions of mkdir operations (which blows out all
previous estimates for how much metadata you need).
SHA256 csums might throw off some of the estimates for metadata size.
That's just a guess. Normally a proper balance regimen has a much
larger effect.
> I guess - more to the point - is how to I fix this? I still seem
> to be able to mount read-only so I can *eventually* back everything
> up to another medium (I have 2 offline backups (ie a 22tb removable
> drive and a 4xraid 0 (not redundant) 18tb of useable storage) that
> between the 2 systems I have a second copy of everything I own -
> although I need to update those with my latest files /sigh...
>
> I will update my backups regardless. Is there anyway I can get out
> of this chicken-and-egg without wiping and redoing my entire array?
Only if btrfs check comes back clean; otherwise, it's wipe and restore.
> I can include logs if they would help - I feel like this error isn't
> new - from googling around - I've even encountered errors about a year
> ago that had me backing up / starting over fresh and doing raid5 with
> metadata 1c4 so I wouldn't have metadata failures - at least.
>
> Anyway - I'm at my wits end. Any help would be appreciated.
>
> Thank you (and sorry for the long post)...
>
>
> J
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 8:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 3:23 ENOSPC and unable to add a device to rectify J
2026-12-01 8:47 ` Zygo Blaxell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox