All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about 32 bit limitations
@ 2024-07-18 11:02 David Schiller
  2024-07-18 13:50 ` Roman Mamedov
  0 siblings, 1 reply; 3+ messages in thread
From: David Schiller @ 2024-07-18 11:02 UTC (permalink / raw)
  To: linux-btrfs

Hi!

I'm running a four disk "raid1" array on old Atom-based NAS hardware (no
64 bit compatibility). It's a mixed set of disks (2x 4T, 2x 6T) and
"btrfs filesystem usage" reports around 18 TiB under device size. I'm
aware of the logical address limit and was regularly seeing the 5/8
warning in the kernel log (the FS was created before this warning was
introduced). The system is non-critical and only sees I/O once a day
when an rsync job is running.

Everything ran fine until the FS was remounted read-only during a scrub.
The scrub finished without errors and a reboot got it back to read-write
immediately. At this point I thought to delete a subvolume and resize
the FS on the two larger disks to come in at under 16 TiB device size
total. Unfortunately the delete and subsequent background clean task
kept OOM'ing on this ancient machine and I had to temporarily move the
disks to a different (64 bit) machine with more memory. There the
deletion worked fine and I did a check, two resizes and a balance (in
hindsight the last one was probably a mistake). Now device size is 15.99
TiB, but when I move the disks back, I can't mount the FS anymore.

[  604.404057] BTRFS error (device sdb1): reached 32bit limit for logical addresses                     
[  604.404110] BTRFS error (device sdb1): due to page cache limit on 32bit systems, metadata beyond 16T can't be accessed
[  604.404145] BTRFS error (device sdb1): please consider upgrading to 64bit kernel/hardware
[  604.404175] BTRFS error (device sdb1): failed to read chunk tree: -75
[  604.441574] BTRFS error (device sdb1): open_ctree failed

I guess since it talks about "logical" addresses and not physical ones,
the resize was pointless to begin with. Is there anything I can do to
make this FS mountable on 32 bit again?

I don't want to decommission this box, so the alternative would be to
recreate the file system from scratch and restore from backup. This is a
very low priority system, that's why I ignored the warning initially.
This is by no means the fault of BTRFS.

Best regards
Dave




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-18 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18 11:02 Question about 32 bit limitations David Schiller
2024-07-18 13:50 ` Roman Mamedov
2024-07-18 14:08   ` David Schiller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.