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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sun, Aug 25, 2024 at 2:30 AM 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 [-- Attachment #2 --] <div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">On Sun, Aug 25, 2024 at 2:30 AM Ronald Klop <<a href="mailto:ronald-lists@klop.ws" target="_blank">ronald-lists@klop.ws</a>> wrote:<br></div></div></div><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> <p><strong>Van:</strong> Pamela Ballantyne <<a href="mailto:boyvalue@gmail.com" target="_blank">boyvalue@gmail.com</a>><br> <strong>Datum:</strong> zondag, 25 augustus 2024 05:03<br> <strong>Aan:</strong> <a href="mailto:freebsd-fs@freebsd.org" target="_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="padding-right:0px;padding-left:5px;margin-left:5px;border-left:2px solid rgb(0,0,0);margin-right:0px"> <div id="m_-7203663792938457658m_-2738478838574510221P"> <div> <div id="m_-7203663792938457658m_-2738478838574510221P.P.P"> <div>This is certainly possible but small details can result in a non-bootable 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 virtual server?<br> Did you dd the whole disk to a file? Or did you zfs send | zfs receive a snapshot? 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. I still need to get the new server, I have a meeting with the engineers at the hosting company tomorrow.</div><div>I will see what they have to offer.</div><div><br></div><div>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.</div><div>I've successfully done a ZFS send/recv and duplicated the original installation on the target server.</div><div><br></div><div>But something quite strange did happen. I created the original with a single two-disk mirror, but just made a single disk</div><div>pool on the target. Once the OS was successfully transferred, I configured another virtual disk, identical to the pool disk</div><div>and tried to attach it. ZFS rejected it with "can<span style="background-color:rgb(246,246,246);color:rgb(20,20,20);font-family:"Segoe UI","Helvetica Neue",Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans",sans-serif;font-size:13px">not attach ada0p3 to ada1p3: can only attach to mirrors and top-level disks"</span></div><div><span style="background-color:rgb(246,246,246);color:rgb(20,20,20);font-family:"Segoe UI","Helvetica Neue",Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans",sans-serif;font-size:13px"><br></span></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif" style="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="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif" style="background-color:rgb(255,255,255)"><br></font></div><div><font color="#141414" face="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 FreeBSD install files, which should have set it to 12? It certainly was for the creation of everything on the second system.</font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif"><br></font></div><div><font color="#141414" face="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 shift setting!</font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif"><br></font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif">Thank you *so* *much*</font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif">Pammy</font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif"><br></font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif" style="background-color:rgb(255,255,255)"><br></font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif" style="background-color:rgb(255,255,255)"><br></font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif" style="background-color:rgb(255,255,255)"><br></font></div><div><font color="#141414" face="Segoe UI, Helvetica Neue, Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, sans-serif" style="background-color:rgb(255,255,255)"><br></font></div></div></div> </div></div>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAESeg0wCeUwvqT9T84Ugi3VUSy4hOd66SELkzNUPbA5bYnDWXw>
