Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2024 20:25:13 -0600
From:      Pamela Ballantyne <boyvalue@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   Fwd: Moving ZFS root popol to a virtual server was: ZFS: Suspended Pool due to allegedly uncorrectable I/O error
Message-ID:  <CAESeg0wCeUwvqT9T84Ugi3VUSy4hOd66SELkzNUPbA5bYnDWXw@mail.gmail.com>
In-Reply-To: <CAESeg0x43pSTrfSjwRD_AGqMmX72PRONrqQY16yoU_vMqZqKQQ@mail.gmail.com>
References:  <CAESeg0wm9iZN=8tpo_rtC1hgRMzyr4dhJrQyxgSuiS183_9y8A@mail.gmail.com> <CAESeg0xZZb71zB%2BAB_Y05C%2BoDG=3ak3-TiWgi0Mg2Jf-FKcwdQ@mail.gmail.com> <1716220186.14048.1724574603123@localhost> <CAESeg0x43pSTrfSjwRD_AGqMmX72PRONrqQY16yoU_vMqZqKQQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000061c0ce06208cd699
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Aug 25, 2024 at 2:30=E2=80=AFAM Ronald Klop <ronald-lists@klop.ws> =
wrote:

>
> *Van:* Pamela Ballantyne <boyvalue@gmail.com>
> *Datum:* zondag, 25 augustus 2024 05:03
> *Aan:* freebsd-fs@freebsd.org
> *Onderwerp:* Moving ZFS root popol to a virtual server was: ZFS:
> Suspended Pool due to allegedly uncorrectable I/O error
>
> This is certainly possible but small details can result in a non-bootable
> pool on the target.
>
>
> Can you provide some information on how you moved the root pool to the
> virtual server?
> Did you dd the whole disk to a file? Or did you zfs send | zfs receive a
> snapshot? Or ... ?
> What boot-loader was used on the old server and what on the new one? Is
> the partitioning the same on both?
> I remember the old server had mirrored disks, how did you setup the
> virtual server?
>
>
Thank you, Ronald.  I still need to get the new server, I have a meeting
with the engineers at the hosting company tomorrow.
I will see what they have to offer.

To prepare for a migration, I've tried setting up a 13.4 server on
VirtualBox and then creating a second one as a target.
I've successfully done a ZFS send/recv and duplicated the original
installation on the target server.

But something quite strange did happen. I created the original with a
single two-disk mirror, but just made a single disk
pool on the target. Once the OS was successfully transferred, I configured
another virtual disk, identical to the pool disk
and tried to attach it. ZFS rejected it with "cannot attach ada0p3 to
ada1p3: can only attach to mirrors and top-level disks"

I looked around and found a suggestion to change vfs.zfs.min_auto_ashift
from 12 to 9, which I did (without understanding why), allowing me to add
the mirror successfully.

But this is strange because the original installation was created directly
from the FreeBSD install files, which should have set it to 12? It
certainly was for the creation of everything on the second system.

Hopefully, I will be able to duplicate this experience with the new host,
munis the shift setting!

Thank you *so* *much*
Pammy

--00000000000061c0ce06208cd699
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div dir=3D"ltr" class=3D"gmail_signature" data-smart=
mail=3D"gmail_signature"><div dir=3D"ltr">On Sun, Aug 25, 2024 at 2:30=E2=
=80=AFAM Ronald Klop &lt;<a href=3D"mailto:ronald-lists@klop.ws" target=3D"=
_blank">ronald-lists@klop.ws</a>&gt; wrote:<br></div></div></div><div class=
=3D"gmail_quote"><div dir=3D"ltr"><div class=3D"gmail_quote"><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex"><br>
<p><strong>Van:</strong> Pamela Ballantyne &lt;<a href=3D"mailto:boyvalue@g=
mail.com" target=3D"_blank">boyvalue@gmail.com</a>&gt;<br>
<strong>Datum:</strong> zondag, 25 augustus 2024 05:03<br>
<strong>Aan:</strong> <a href=3D"mailto:freebsd-fs@freebsd.org" target=3D"_=
blank">freebsd-fs@freebsd.org</a><br>
<strong>Onderwerp:</strong> Moving ZFS root popol to a virtual server was: =
ZFS: Suspended Pool due to allegedly uncorrectable I/O error</p>

<blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor=
der-left:2px solid rgb(0,0,0);margin-right:0px">
<div id=3D"m_-7203663792938457658m_-2738478838574510221P">
<div>
<div id=3D"m_-7203663792938457658m_-2738478838574510221P.P.P">
<div>This is certainly possible but small details can result in a non-boota=
ble pool on the target.<br></div></div></div></div></blockquote>
<br>
Can you provide some information on how you moved the root pool to the virt=
ual server?<br>
Did you dd the whole disk to a file? Or did you zfs send | zfs receive a sn=
apshot? Or ... ?<br>
What boot-loader was used on the old server and what on the new one? Is the=
 partitioning the same on both?<br>
I remember the old server had mirrored disks, how did you setup the virtual=
 server?<br><br></blockquote><div><br></div><div>Thank you, Ronald.=C2=A0 I=
 still need to get the new server, I have a meeting with the engineers at t=
he hosting company tomorrow.</div><div>I will see what they have to offer.<=
/div><div><br></div><div>To prepare for a migration, I&#39;ve tried setting=
 up a 13.4 server on VirtualBox and then creating a second one as a target.=
</div><div>I&#39;ve successfully done a ZFS send/recv and duplicated the or=
iginal installation on the target server.</div><div><br></div><div>But some=
thing quite strange did happen. I created the original with a single two-di=
sk mirror, but just made a single disk</div><div>pool on the target. Once t=
he OS was successfully=C2=A0transferred, I configured another virtual disk,=
 identical to the pool disk</div><div>and tried to attach it. ZFS rejected =
it with &quot;can<span style=3D"background-color:rgb(246,246,246);color:rgb=
(20,20,20);font-family:&quot;Segoe UI&quot;,&quot;Helvetica Neue&quot;,Helv=
etica,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Fira Sans&quot;,&quot;Droid Sans=
&quot;,sans-serif;font-size:13px">not attach ada0p3 to ada1p3: can only att=
ach to mirrors and top-level disks&quot;</span></div><div><span style=3D"ba=
ckground-color:rgb(246,246,246);color:rgb(20,20,20);font-family:&quot;Segoe=
 UI&quot;,&quot;Helvetica Neue&quot;,Helvetica,Roboto,Oxygen,Ubuntu,Cantare=
ll,&quot;Fira Sans&quot;,&quot;Droid Sans&quot;,sans-serif;font-size:13px">=
<br></span></div><div><font color=3D"#141414" face=3D"Segoe UI, Helvetica N=
eue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, s=
ans-serif" style=3D"background-color:rgb(255,255,255)">I looked around and =
found a suggestion to change vfs.zfs.min_auto_ashift from 12 to 9, which I =
did (without understanding why), allowing me to add the mirror successfully=
.</font></div><div><font color=3D"#141414" face=3D"Segoe UI, Helvetica Neue=
, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans=
-serif" style=3D"background-color:rgb(255,255,255)"><br></font></div><div><=
font color=3D"#141414" face=3D"Segoe UI, Helvetica Neue, Helvetica, Roboto,=
 Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif">But this is =
strange because the original installation was created directly from the Fre=
eBSD install files, which should have set it to 12? It certainly was for th=
e creation of everything on the second system.</font></div><div><font color=
=3D"#141414" face=3D"Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, U=
buntu, Cantarell, Fira Sans, Droid Sans, sans-serif"><br></font></div><div>=
<font color=3D"#141414" face=3D"Segoe UI, Helvetica Neue, Helvetica, Roboto=
, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif">Hopefully, =
I will be able to duplicate this experience with the new host, munis the sh=
ift setting!</font></div><div><font color=3D"#141414" face=3D"Segoe UI, Hel=
vetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid=
 Sans, sans-serif"><br></font></div><div><font color=3D"#141414" face=3D"Se=
goe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira =
Sans, Droid Sans, sans-serif">Thank you *so* *much*</font></div><div><font =
color=3D"#141414" face=3D"Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxyg=
en, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif">Pammy</font></div=
><div><font color=3D"#141414" face=3D"Segoe UI, Helvetica Neue, Helvetica, =
Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif"><br><=
/font></div><div><font color=3D"#141414" face=3D"Segoe UI, Helvetica Neue, =
Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-s=
erif" style=3D"background-color:rgb(255,255,255)"><br></font></div><div><fo=
nt color=3D"#141414" face=3D"Segoe UI, Helvetica Neue, Helvetica, Roboto, O=
xygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif" style=3D"backg=
round-color:rgb(255,255,255)"><br></font></div><div><font color=3D"#141414"=
 face=3D"Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Canta=
rell, Fira Sans, Droid Sans, sans-serif" style=3D"background-color:rgb(255,=
255,255)"><br></font></div><div><font color=3D"#141414" face=3D"Segoe UI, H=
elvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Dro=
id Sans, sans-serif" style=3D"background-color:rgb(255,255,255)"><br></font=
></div></div></div>
</div></div>

--00000000000061c0ce06208cd699--



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