From nobody Mon Aug 26 04:09:34 2024 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 4WscdP6xpLz5V90P for ; Mon, 26 Aug 2024 04:09:45 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WscdN4rHdz51t2 for ; Mon, 26 Aug 2024 04:09:44 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=erPbASC9; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1724645375; bh=USTLCnE+EwaB2SRnRYvUD0p5Kbnq7GbyIoExK5voWag=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=erPbASC9N1UgdtXUv91Vud5IkqLT9pONQGCUTwMNDc9wPAympxPaHnsx0UsmiZn5u JExEwnztLETbgFQ2+gQLjGQPnftRrInED4yGsh/5Bpxt21X2kbC4R5vYaAxyvf8LY3 hZzPek2zyxCDvaa9FcS2o9ptuRjKN6ZHoYNp1Nmlgfvxof4iwtRCf97++bYOan6TgM 7w8VuuZgOXgOYWSV+nNexPDYQAc062YgLGyzgBYhDQGTlAyFpFTyYl4lBe28QK82oY kjJTzRmX911hG1yESyzn18vV/oNzwinl37QTMNRHNCzNpTFGifnfM4NYL03yuY7wjr Nx1NYCTlzsNBjFQh5Uh7Kent9oLp+abMwtdAT2gYByXxxrzlSKn12fCY6m8D8b3WB8 mvcx3rkZWDt4Rx1rpWpbYjXHxTh+FY0KRspre4kSQ0/3L7BtwtgWwQiF9wCAhsoeVX npmYDQ1MqN1T5fv5mgu6UN1inH6NYmKFwC1iwRlb0gbJcDN9hnnp3P3CtZHF2PJya2 RhfGb+8pjiAiI5mBhJwncN2A9LOqjtaBeRGle44B0+jFX//dRbKPDxqC7NkQeJH3eU KJUGdesGcRBjYHVuN389p4+Fkl8+zZy1H93l6rxLqzQjJJLCd+bsy0bizBt/NGhJfi +z+6vIGmjqYEUMWapflzFo+I= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 25 Aug 2024 21:09:35 -0700 Message-ID: <5cb0fb8c-7717-44a8-a0a1-af1a127abc4c@holgerdanske.com> Date: Sun, 25 Aug 2024 21:09:34 -0700 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: Fwd: Moving ZFS root popol to a virtual server was: ZFS: Suspended Pool due to allegedly uncorrectable I/O error To: freebsd-fs@freebsd.org References: <1716220186.14048.1724574603123@localhost> Content-Language: en-US From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.89 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a:november.he.net]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[holgerdanske.com:+] X-Rspamd-Queue-Id: 4WscdN4rHdz51t2 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