🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [List] Re: zpool remembering its device when devicenumber changes

#18
From: Frank Leonhardt
Date: Fri, 23 Oct 2026 18:44
87 lines
6081 bytes
This is a multi-part message in MIME format.
--------------ybRkrgWjwKILfrmI5Ek9x0T4
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 23/10/2026 15:13, void wrote:
> On Fri, Oct 23, 2026 at 08:03:40AM -0600, Warner Losh wrote:
>
>> No, the value after DISK- is derived from the unique serial number
>> of the drive. It's invariant boot to boot.
>
> thanks for confirming.

Actually it's even better than that. Every vdev (not just drive) has a 
ZFS label (actually, four - two at the start, two at the end). It holds 
the pool name, pool UUID and vdev UUID. When you boot the loader probes 
every drive, looks for headers and assembles the boot pool where the 
UUIDs match. The same goes for other zpools imported bu the kernel.

It does try the cached path for a vdev first (for speed) but checks the 
UUID it finds, and if it's not there it checks all GEOM providers until 
it assembles the VDEV.

Upshot, you can move your pool around on any disks and drive partitions 
and it'll put it back together again. I tried to push this to the limit 
in March 2025, swapping drives, cables and even connect ATA drives 
differently on USB and I couldn't break it.

It also means that if you binary copy a GEOM and ZFS finds two copies 
with the same UUID you're in deep doodoo if it's still there when you 
boot. See zpool reguid.

Regards, Frank.


--------------ybRkrgWjwKILfrmI5Ek9x0T4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 23/10/2026 15:13, void wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:attriS_xCJBbtzst@int21h">On Fri,
      Oct 23, 2026 at 08:03:40AM -0600, Warner Losh wrote:
      <br>
      <br>
      <blockquote type="cite">No, the value after DISK- is derived from
        the unique serial number
        <br>
        of the drive. It's invariant boot to boot.
        <br>
      </blockquote>
      <br>
      thanks for confirming.</blockquote>
    <p>Actually it's even better than that. Every vdev (not just drive)
      has a ZFS label (actually, four - two at the start, two at the
      end). It holds the pool name, pool UUID and vdev UUID. When you
      boot the loader probes every drive, looks for headers and
      assembles the boot pool where the UUIDs match. The same goes for
      other zpools imported bu the kernel.</p>
    <p>It does try the cached path for a vdev first (for speed) but
      checks the UUID it finds, and if it's not there it checks all GEOM
      providers until it assembles the VDEV.</p>
    <p>Upshot, you can move your pool around on any disks and drive
      partitions and it'll put it back together again. I tried to push
      this to the limit in March 2025, swapping drives, cables and even
      connect ATA drives differently on USB and I couldn't break it.</p>
    <p>It also means that if you binary copy a GEOM and ZFS finds two
      copies with the same UUID you're in deep doodoo if it's still
      there when you boot. See zpool reguid.</p>
    <p>Regards, Frank.</p>
    <p><br>
    </p>
  </body>
</html>

--------------ybRkrgWjwKILfrmI5Ek9x0T4--


--
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: <28353715-2af7-4703-ab7a-8d5bf8a0ffb3@fjl.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <> <attriS_xCJBbtzst@int21h>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Frank Leonhardt <freebsd-doc@fjl.co.uk>
Newsgroups: muc.lists.freebsd.fs
Subject: Re: [List] Re: zpool remembering its device when devicenumber changes
Date: Fri, 23 Oct 2026 19:44:41 +0100
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-fs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <28353715-2af7-4703-ab7a-8d5bf8a0ffb3@fjl.co.uk>
References: <> <attriS_xCJBbtzst@int21h>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------ybRkrgWjwKILfrmI5Ek9x0T4"
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="56399"; mail-complaints-to="news-admin@muc.de"
User-Agent: Mozilla Thunderbird
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1792781096; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-owner:list-unsubscribe:
	 list-subscribe:list-post; bh=RSey2DZQBMMQd8J3FIoSfpPsqwa12azrNrOmu7AkczY=;
	b=CBZriuxqQ5RUzAaOSD4lrXyhnIfGLmWsZJH1wWgjqToCl4LtLbs5kjAasX495cr4QnCoXv
	Ue2GhUP8zCl7b557Y8VxI6YSqVh0zOUhlyVVr2ZZL4+9joBVxDyOeTI6h71S8ATN70PbC4
	fyRekPrlZ26swLLCrBU0o+Jdw4/lFSIrUBgka0Xy78u/sNeO0Y2IQe/tF+Vm2ijmLehmEU
	XFgHp7JkF+l/n8Hhf9yPYusliJFB3S+vXhoKJnOB1jlI9joyhDhaktUjRKLUJLkTAavmg5
	+k3ksshCrWv4x1I1XNc+8lZiIRy5PPJD4Jfk8jFOtlYcpXvX+eKhG7zEjHyt3w==
X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=none;
	spf=pass (mx1.freebsd.org: domain of freebsd-doc@fjl.co.uk designates 185.174.224.37 as permitted sender) smtp.mailfrom=freebsd-doc@fjl.co.uk
Precedence: list
Content-Language: en-GB
In-Reply-To: <attriS_xCJBbtzst@int21h>
X-Spamd-Bar: /
X-Rspamd-Pre-Result: action=no action;
	module=multimap;
	Matched map: local_wl_from
X-Spamd-Result: default: False [-0.20 / 15.00];
	R_SPF_ALLOW(-0.20)[+ip4:185.174.224.37];
	local_wl_from(0.00)[freebsd-doc@fjl.co.uk];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org];
	R_DKIM_NA(0.00)[];
	ASN(0.00)[asn:12703, ipnet:185.174.224.0/24, country:GB]
X-Rspamd-Queue-Id: 4jBBlK0Fw9z4KDY
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes