[Bug 289651] scrub of read-only zpool hangs process
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289651] scrub of read-only zpool hangs process"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289651] scrub of read-only zpool hangs process"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289651] scrub of read-only zpool hangs process"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289651] scrub of read-only zpool hangs process"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289651] scrub of read-only zpool hangs process"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289651] scrub of read-only zpool hangs process"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Sep 2025 16:26:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289651
Bug ID: 289651
Summary: scrub of read-only zpool hangs process
Product: Base System
Version: 14.3-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: ronald.w.taylor@gmail.com
A scrub was accidentally initiated on a zpool imported read-only consisting of
files (not actual block devices). Rather than refusing/aborting some way, it
instead created an unkillable process hung in D+ state. The pool can no longer
be exported (not even with -f) and the process cannot be killed.
riviera:/root# ps auxwwwww | grep zmediabackup
root 42316 0.0 0.0 20672 8580 0 D+ 12:14 0:00.00 zpool scrub
zmediabackup
riviera:/root# procstat -kk 42316
PID TID COMM TDNAME KSTACK
42316 100724 zpool - mi_switch+0xbd
_cv_wait+0xfb txg_wait_synced_impl+0xb9 txg_wait_synced+0xb
dsl_sync_task_common+0x1fa dsl_sync_task+0x17 dsl_scan+0x18a
zfs_ioc_pool_scrub+0xa0 zfsdev_ioctl_common+0x58f zfsdev_ioctl+0x11d
devfs_ioctl+0xcb vn_ioctl+0xc8 devfs_ioctl_f+0x1e kern_ioctl+0x255
sys_ioctl+0x101 amd64_syscall+0x117 fast_syscall_common+0xf8
riviera:/root# zpool list -o name,size,alloc,frag,cap,health,readonly
zmediabackup
NAME SIZE ALLOC FRAG CAP HEALTH RDONLY
zmediabackup 1016G 0 0% 0% ONLINE on
riviera:/root# zpool status zmediabackup
pool: zmediabackup
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
zmediabackup ONLINE 0 0 0
/workspc/zmediabackup/zmediabackup-1 ONLINE 0 0 0
/workspc/zmediabackup/zmediabackup-2 ONLINE 0 0 0
/workspc/zmediabackup/zmediabackup-3 ONLINE 0 0 0
/workspc/zmediabackup/zmediabackup-4 ONLINE 0 0 0
errors: No known data errors
Expected result should be that any attempt to scrub or resilver a read-only
pool should fail or return an appropriate error message rather than create a
hung process.
--
You are receiving this mail because:
You are the assignee for the bug.