[Bug 280216] UFS deadly hangs while removing snapshot

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Jul 2024 22:24:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280216

Kirk McKusick <mckusick@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|fs@FreeBSD.org              |mckusick@FreeBSD.org
                 CC|                            |mckusick@FreeBSD.org
             Status|New                         |Open

--- Comment #1 from Kirk McKusick <mckusick@FreeBSD.org> ---
The problem that you are experiencing is because gjournal does not properly
understand how to handle snapshots when cleaning up unused blocks. Fixing it is
a considerable amount of work for a rarely used feature. I will make a change
to disallow the taking of snapshots when gjournal is enabled.

For your system you either need to stop taking snapshots or stop using
gjournal. It is my recommendation that you stop using gjournal. You should
enable soft updates as they will give you much better performance.

For fast recovery after a crash you also need to enable soft update journaling.
 Unfortunately you cannot use snapshots with soft update journaling on 12-based
systems. You will need to upgrade to at least 13 and if you are upgrading you
might as well go to 14 to get a system that can take snapshots when running
with soft update journaling.

Soft updates journaling comes with a higher write load when running, but
enables fsck to run in under a minute (and usually just a few seconds) after a
crash. Generally its recovery is even faster than gjournal provides.

Please make my suggested changes and let me know if it solves you hangs.

-- 
You are receiving this mail because:
You are the assignee for the bug.