From nobody Tue Dec 26 18:19:21 2023 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T032X1zkJz55H9N for ; Tue, 26 Dec 2023 18:19:32 +0000 (UTC) (envelope-from SRS0=2BNT=IF=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T032W6BdZz3Fdn for ; Tue, 26 Dec 2023 18:19:31 +0000 (UTC) (envelope-from SRS0=2BNT=IF=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 30831D788C; Tue, 26 Dec 2023 19:19:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1703614763; bh=6kt+U0dLuxF9Oc3LocdpACT3CgoYkYF5xq+evn3orNE=; h=Date:Subject:To:References:From:In-Reply-To; b=zppxDdi4noWl8bTFqW4lTNiy53+tTrC7Ub9meZkarQyuFCTgLlt3jW7AQIfhGtmqQ owQ0tKCYLeIJpil+AV0gjN7rjOVSzoSlgYvKwrvdMOnODQE+IszfmTMhTySX4u5i8e 3FFH9jhunFOSu/knhFqLH75BM7uvvALnvr+8pDtg= Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 2E77ED7887; Tue, 26 Dec 2023 19:19:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1703614762; bh=6kt+U0dLuxF9Oc3LocdpACT3CgoYkYF5xq+evn3orNE=; h=Date:Subject:To:References:From:In-Reply-To; b=W4s2d9/Clm35KKaPVwadnb8JbQy3lTxWlS6uBBqcOK/UXy1yCwXZSCi+VhKi6GZcs 7LJTWqOMqfp/ig4+n42dwBAG5Z0+a82VBxedGOmDddrj71C4cPrgxMZTEJhvvFOjiC /ZSOi286AMZrWbZpQAZ2u7B4AFOUsfQW3wc5Ahew= Message-ID: Date: Tue, 26 Dec 2023 19:19:21 +0100 List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Howto migrate a FreeBSD cloud instance to another one without native FreeBSD support? To: Michael Grimm , freebsd-fs@freebsd.org References: <4A6398FE-5DC1-45A1-85A9-7C5054CF5BF7@ellael.org> Content-Language: cs-Cestina, en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: <4A6398FE-5DC1-45A1-85A9-7C5054CF5BF7@ellael.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4T032W6BdZz3Fdn On 26/12/2023 15:22, Michael Grimm wrote: > Hi, > > I do run FreeBSD 14.0-STABLE instances in OVH's public cloud for some years already. Now, I do need to migrate my FBSD instances to new instances (old ones are no longer supported). > > In the past one could create new instances running FBSD from the start, but OVH has removed that option. I do have used Ubuntu rescue systems in the past for my FBSD instances, thus I am familiar in using Ubuntu's OpenZFS functionality. > > Sadly, OVH doesn't offer Linux systems installed on ZFS pools. Thus I do have to stick to Linux systems without. > > > Here are my questions regarding using Linux (Ubuntu) rescue systems: > > # What would be the closest equivalent to FBSD's gpart tool? > gdisk, …? > # Would it be possible at all to go for legacy booting of FBSD? > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > > # Or, would it be better/easier to consider UEFI booting instead? > rsync /boot/loader.efi to rescue system > > # Are there other promising strategies for migrating feasible? I know nothing about OVH and almost nothing about what kind of FreeBSD setup you want to migrate (partitions, UFS vs ZFS etc.) but one thing I can imagine in you situation is creating everything from Linux rescue (partitions, formatting to UFS or ZFS, boot sector, rsync old FreeBSD instance to newly created...) And the second is: you can prepare small minimalistic FreeBSD image in Bhyve / VirtualBox etc. make a copy of it with dd and then write it by dd to your new instance's disk with the help of Linux rescue system. Then you can reboot to a minimalistic FreeBSD system, enlarge partition(s), use growfs or zpool / zfs enlargement and then finally move data from the old instance to this new instance by rsync, or zfs send, or whatever tool you prefer. Kind regards Miroslav Lachman