Thread View: muc.lists.freebsd.fs
6 messages
6 total messages
Started by void
Fri, 23 Oct 2026 13:34
zpool remembering its device when devicenumber changes
Author: void
Date: Fri, 23 Oct 2026 13:34
Date: Fri, 23 Oct 2026 13:34
22 lines
7269 bytes
7269 bytes
Hi,
Sometimes, on reboot, the system [1] will decide its
usb3-connected disk (which is a stripe zpool) is
on /dev/da0 and not /dev/da5
In zpool status -v the pool is seen comprised of something like:
diskid/DISK-00000000AAA12345
so, does the /dev/da{N} matter?
[1] % freebsd-version -kru
15.1-STABLE
15.1-STABLE
15.1-STABLE
--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: zpool remembering its device when devicenumber changes
Author: Ronald Klop
Date: Fri, 23 Oct 2026 14:02
Date: Fri, 23 Oct 2026 14:02
89 lines
6429 bytes
6429 bytes
------=_Part_3684_347040784.1792764179763
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Van: void <void@f-m.fm>
Datum: vrijdag, 23 oktober 2026 15:34
Aan: freebsd-fs@freebsd.org
Onderwerp: zpool remembering its device when devicenumber changes
>
> Hi,
>
> Sometimes, on reboot, the system [1] will decide its
> usb3-connected disk (which is a stripe zpool) is
> on /dev/da0 and not /dev/da5
>
> In zpool status -v the pool is seen comprised of something like:
>
> diskid/DISK-00000000AAA12345
>
> so, does the /dev/da{N} matter?
>
> [1] % freebsd-version -kru
> 15.1-STABLE
> 15.1-STABLE
> 15.1-STABLE
> --
>
>
>
>
The change of da5 to da0 should not matter to ZFS.
Do you experience a problem or is your question just informational curiosity?
Regards,
Ronald.
------=_Part_3684_347040784.1792764179763
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<br />
<p><strong>Van:</strong> void &lt;void@f-m.fm&gt;<br />
<strong>Datum:</strong> vrijdag, 23 oktober 2026 15:34<br />
<strong>Aan:</strong> freebsd-fs@freebsd.org<br />
<strong>Onderwerp:</strong> zpool remembering its device when devicenumber =
changes</p>
<blockquote style=3D"padding-right: 0px; padding-left: 5px; margin-left: 5p=
x; border-left: #000000 2px solid; margin-right: 0px">
<div class=3D"MessageRFC822Viewer" id=3D"P">
<div class=3D"TextPlainViewer" id=3D"P.P">Hi,<br />
<br />
Sometimes, on reboot, the system [1] will decide its<br />
usb3-connected disk (which is a stripe zpool) is<br />
on /dev/da0 and not /dev/da5<br />
<br />
In zpool status -v the pool is seen comprised of something like:<br />
<br />
diskid/DI=
SK-00000000AAA12345<br />
<br />
so, does the /dev/da{N} matter?<br />
<br />
[1] % freebsd-version -kru<br />
15.1-STABLE<br />
15.1-STABLE<br />
15.1-STABLE<br />
-- <br />
=C2=A0</div>
<hr /></div>
</blockquote>
<br />
<br />
The change of da5 to da0 should not matter to ZFS.<br />
Do you experience a problem or is your question just informational curiosit=
y?<br />
<br />
Regards,<br />
Ronald.<br />
=C2=A0
------=_Part_3684_347040784.1792764179763--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: zpool remembering its device when devicenumber changes
Author: Warner Losh
Date: Fri, 23 Oct 2026 14:03
Date: Fri, 23 Oct 2026 14:03
71 lines
7769 bytes
7769 bytes
--0000000000003d7aab065e8273d1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Fri, Oct 23, 2026 at 7:34=E2=80=AFAM void <void@f-m.fm> wrote:
> Hi,
>
> Sometimes, on reboot, the system [1] will decide its
> usb3-connected disk (which is a stripe zpool) is
> on /dev/da0 and not /dev/da5
>
> In zpool status -v the pool is seen comprised of something like:
>
> diskid/DISK-00000000AAA12345
>
> so, does the /dev/da{N} matter?
>
No, the value after DISK- is derived from the unique serial number
of the drive. It's invariant boot to boot.
Warner
> [1] % freebsd-version -kru
> 15.1-STABLE
> 15.1-STABLE
> 15.1-STABLE
> --
>
>
--0000000000003d7aab065e8273d1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g=
mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Oct 23,=
2026 at 7:34=E2=80=AFAM void <<a href=3D"mailto:void@f-m.fm">void@f-m.f=
m</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
>Hi,<br>
<br>
Sometimes, on reboot, the system [1] will decide its<br>
usb3-connected disk (which is a stripe zpool) is<br>
on /dev/da0 and not /dev/da5<br>
<br>
In zpool status -v the pool is seen comprised of something like:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0diskid/DISK-00000000AAA12345<br>
<br>
so, does the /dev/da{N} matter?<br></blockquote><div><br></div><div>No, the=
value after DISK- is derived from the unique serial number</div><div>of th=
e drive. It's invariant boot to boot.</div><div><br></div><div>Warner</=
div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
[1] % freebsd-version -kru<br>
15.1-STABLE<br>
15.1-STABLE<br>
15.1-STABLE<br>
-- <br>
<br>
</blockquote></div></div>
--0000000000003d7aab065e8273d1--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: zpool remembering its device when devicenumber changes
Author: void
Date: Fri, 23 Oct 2026 14:12
Date: Fri, 23 Oct 2026 14:12
12 lines
7420 bytes
7420 bytes
On Fri, Oct 23, 2026 at 04:02:59PM +0200, Ronald Klop wrote: >The change of da5 to da0 should not matter to ZFS. >Do you experience a problem or is your question just informational curiosity? The latter. maybe i'm just paranoid ;) i kind of am wrt data loss -- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: zpool remembering its device when devicenumber changes
Author: void
Date: Fri, 23 Oct 2026 14:13
Date: Fri, 23 Oct 2026 14:13
13 lines
7416 bytes
7416 bytes
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. -- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: [List] Re: zpool remembering its device when devicenumber changes
Author: Frank Leonhardt
Date: Fri, 23 Oct 2026 18:44
Date: Fri, 23 Oct 2026 18:44
87 lines
6081 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads