🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.fs
Article #47

[Bug 300768] zpool hang can be created with duplicate pool name inside zvol

#47
From: bugzilla-noreply
Date: Sun, 15 Nov 2026 02:02
56 lines
4447 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300768

--- Comment #3 from Curtis Villamizar <curtis@ipv6.occnc.com> ---
Followup: After getting into the hung state a reboot followed by an
attempt to import will cause another hang.  Both the "reboot" command
and "shutdown -r now" require a power cycle in the hung state.

After a reboot any subsequent attempt to import one of the duplicate
named pools will cause a hang.  In this case the following will clear
the condition so the server reboots normally.

[raq4 318] # zfs list -t vol
vmvol1/vm1   31.3G   142G   564K  -
vmvol1/vm2   41.8G   153G   550K  -
[raq4 319] # gpart delete -i 1 zvol/vmvol1/vm2
zvol/vmvol1/vm2p1 deleted
[raq4 320] # gpart delete -i 1 zvol/vmvol1/vm1
zvol/vmvol1/vm1p1 deleted
[raq4 321] # zpool import
no pools available to import

After that "shutdown -r now" behaves as expected with no need to power
cycle.

This server is an old rackmount used to test configurations so no harm
in getting it to hang for testing purposes.  It is running an older
STABLE_15 version but I can put on a more recent build.

[raq4 324] # uname -a
FreeBSD raq4.belfast.occnc.com 15.1-STABLE FreeBSD 15.1-STABLE
occnc15_amd64_20260730 amd64

This sequence of commands produces a less severe condition than what
I've had on two production servers now.  Those both ran VMs for months
before taking a few VMs down and getting in such a bad state that just
using "zpool import" to query would cause a hang.  One server was
idled some time ago and is having disks zeroed out for a fresh start.
The other is up in the hung state where zpool, gpart, and zfs don't
work and a process doing a zpool query is in a zombie state.  This
server has VMs running on it and doing useful work (to the extent I do
any useful work).  When the first is up and ready (soon I hope), I can
move the VMs there and idle the second server.  That second server
will then have disks zeroed out (with dd) and a fresh install.

I found and fixed the configuation error that allowed up to three
specific VMs to be built on a pool with the same name.  The purpose of
reporting this bug is so others won't trip over the same bug.

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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300768-3630-vUjDTsFHQq@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-300768-3630@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.fs
Subject: [Bug 300768] zpool hang can be created with duplicate pool name
 inside zvol
Date: Sun, 15 Nov 2026 02:02:10 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300768-3630-vUjDTsFHQq@https.bugs.freebsd.org/bugzilla/>
References: <bug-300768-3630@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="27545"; mail-complaints-to="news-admin@muc.de"
X-Original-To: fs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1794708130;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=y+6mVPn1meWQTGfgQoO/UsGAG758C9SlyilBlOFd4Ao=;
	b=RLf6ynO+Vi5fQ+cRM4GMvhmsbhB1enjy7heph8yJXA8DtUc6telNFvUAEdD2w54LRnYfFg
	uMt4TIF2OURTuMpeHklhmEW5nqGErb8bJrYEzEMtj5TGaGVDQ9y8jp5eTc9wUhwpcxJJ24
	lVwXSlUs7u3yZKGewvXFoNxCelfGtcf+D02rBbqoEZrCqxvCjX/N/xG7sjdwEQ/dfudP4O
	Oe2SY0zhEa+SkFrsSqryWC/MIPtmTSQJSQ6dQl3CGD2zTPnopau3uUyuYl+ISu8Lk1tVo/
	xljfKAzCUM45erlxJoIYqBI4mgJpOG9czoV2W30koTLUxiBYLTw6Sb4tEZNHKw==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-300768-3630@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes