Date: Sun, 25 Aug 2024 21:09:34 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: freebsd-fs@freebsd.org Subject: Re: Fwd: Moving ZFS root popol to a virtual server was: ZFS: Suspended Pool due to allegedly uncorrectable I/O error Message-ID: <5cb0fb8c-7717-44a8-a0a1-af1a127abc4c@holgerdanske.com> In-Reply-To: <CAESeg0wCeUwvqT9T84Ugi3VUSy4hOd66SELkzNUPbA5bYnDWXw@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> <CAESeg0wCeUwvqT9T84Ugi3VUSy4hOd66SELkzNUPbA5bYnDWXw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/25/24 19:25, Pamela Ballantyne wrote: > On Sun, Aug 25, 2024 at 2:30 AM Ronald Klop wrote: >> [Replicating pools] 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 The freebsd-fs mailing list page does not indicate the scope of this mailing list: https://lists.freebsd.org/subscription/freebsd-fs I am wondering if this thread should be moved to freebsd-questions, as this thread is about advanced use of file systems rather than file system development and issues (?). Prose descriptions of actions performed on a computer are useful for understanding "who" and "why", but console sessions provide facts that are useful for understanding "what", "where", "when", and "how". A good post may contain both. Please run the following commands on your colocated server and post the complete console session (prompt, commands entered, output displayed): # freebsd-version -kru ; uname -a # geom disk list # gpart show -l -p # zpool list # zpool iostat -v # zpool status # zpool get all | sort David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5cb0fb8c-7717-44a8-a0a1-af1a127abc4c>