Re: Moving ZFS root popol to a virtual server was: ZFS: Suspended Pool due to allegedly uncorrectable I/O error

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Sun, 25 Aug 2024 08:30:03 UTC
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
> 
> Many thanks to David Christensen, Ronald Klop, and Peter Much for answering my plea for help.
>  
> Further reviewing the available evidence,  it seems that the most likely cause of the problem is someone at the data center
> removing the disk drives from our server.  This was probably accidental, not malicious. I have reported this to the hosting company, but
> I'm not expecting much.
>  
> It is ancient hardware, circa 2011. Although it still performs decently. It is probably time for an upgrade, particularly
> since the hosting company is dropping support for bare metal servers.
>  
> I am not sure how to move the existing root pool to a virtual server. I've tried a few simulations with VirtualBox, creating
> a source server and a target. The pools get moved, but the target server never boots (even when I remember to set bootfs).
> Worse, the target disks are reported as being corrupted each time I do it.  
>  
> Once again, any experience/advice here would be very much appreciated.
>  
> Thank you again,
> Pammy
>  
>  


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?

Regards,
Ronald.