Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Nov 2022 00:00:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 267630] if growfs is hung at system shutdown, disk sync hangs and system never halts/reboots
Message-ID:  <bug-267630-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267630

            Bug ID: 267630
           Summary: if growfs is hung at system shutdown, disk sync hangs
                    and system never halts/reboots
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: cgull@glup.org

In bug 276628, I report an issue with growfs that can cause it to
uninterruptibly deadlock.  After growfs deadlocks, when the system is
rebooted/shutdown, it hangs during disk sync, and never halts/reboots.  I t=
hink
this is because growfs is in disk wait, and cannot be killed, and the UFS
ufssuspend state blocks UFS from completing any pending writes.

The reproduction is easy:

mdconfig -s 20m
gpart create -s gpt md0
gpart add -t freebsd-ufs -s 10m -i 1 md0
newfs md0p1
mount /dev/md0p1 /mnt
gpart resize -i 1 md0
growfs -y md0p1 > /mnt/growfs.log

then, via some other session, halt/reboot/shutdown.

Reproduced in 13.1p2 and a -CURRENT snapshot dated Nov 3 07:57 with identif=
ier
'main-n259005-5cc5c9254da'.

See bug 276628 for more about the userland side of this problem.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267630-227>