From nobody Fri Aug 19 09:13:23 2022 X-Original-To: freebsd-arm@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 4M8GJQ23TFz4YWD7 for ; Fri, 19 Aug 2022 09:13:26 +0000 (UTC) (envelope-from SRS0=ET07=YX=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M8GJP2Rvjz3mdZ for ; Fri, 19 Aug 2022 09:13:25 +0000 (UTC) (envelope-from SRS0=ET07=YX=klop.ws=ronald-lists@realworks.nl) Date: Fri, 19 Aug 2022 11:13:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1660900403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MUrrNeOPEf3T3H5yijrl+Kfij6rA+Xm3Y0n8lb6PXWc=; b=IOL6M1PjH1hBP3lwR/i24Tnxiwe+69CoQO2tMwJRGCJYlFFOkFQgwmDAqO5gpQj6xS52Tz PKq7XGwah9R/OTxO2rGOtB0obSXoWztGoFKdXdru19g2YD8mgzH2UlzmGieIOV1dYxFyi+ Uw55+jfw0LdWNQBfoZkpuxlJEUjnprlokbi9WET6KIz1noZtoos0S+I23/RLZnpaYCN0Ww RryOtQcbTtwDXAF3NbyeAMeKZ8f8PT7NphJRpQwu4ZEWAVOSL5lla9oaTqbL5C+L/vpV+u Vi9ZXcyfXgjUAYCfTHVIVbvC2gDCtjzeo52hS7vg0s4LMW8JXS5v7uB9+P4LrQ== From: Ronald Klop To: freebsd-arm@freebsd.org Message-ID: <1098537471.88.1660900403342@localhost> In-Reply-To: <97A157AE-CAAE-4F57-8F2D-990DFB723404@kronometrix.org> References: <97A157AE-CAAE-4F57-8F2D-990DFB723404@kronometrix.org> Subject: Re: From UFS to ZFS as root on RBPI4 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_87_644865787.1660900403338" X-Mailer: Realworks (620.112) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4M8GJP2Rvjz3mdZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=IOL6M1Pj; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=ET07=YX=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=ET07=YX=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=ET07=YX=klop.ws=ronald-lists@realworks.nl]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_HAS_DN(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=ET07=YX=klop.ws=ronald-lists@realworks.nl] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_87_644865787.1660900403338 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, My RPI4 8GB runs on ZFS on a USB-disk. [root@rpi4 ~]# gpart show => 40 1953458096 da0 GPT (931G) 40 102400 1 efi (50M) 102440 8388608 2 freebsd-swap (4.0G) 8491048 1944967088 3 freebsd-zfs (927G) [root@rpi4 ~]# zpool status pool: zrpi4 state: ONLINE ... scan: scrub repaired 0B in 14:19:49 with 0 errors on Fri Jul 29 19:25:33 2022 config: NAME STATE READ WRITE CKSUM zrpi4 ONLINE 0 0 0 da0p3 ONLINE 0 0 0 I can't remember doing something special. But I didn't make notes either. But there is no official procedure to "move from UFS to ZFS". A procedure could be: 1. boot the UFS version 2. connect a second disk to the RPI4. 3. partition and zpool create. There are some tutorials available for this: https://wiki.freebsd.org/RootOnZFS 4. make sure the boot-blocks are properly configured 5. copy relevant data from the UFS to the ZFS volumes 6. shutdown, disconnect the UFS disk, and boot 7. hope for the best 8. discuss your results here and go back to step 1 or ... 9. beer! (or another beverage of your liking) Regards Ronald. Van: Stefan Parvu Datum: vrijdag, 19 augustus 2022 10:29 Aan: freebsd-arm Onderwerp: From UFS to ZFS as root on RBPI4 > > Hi, > > Do we have anywhere documented any procedure how one would move > from UFS to ZFS for root using RBPI 4GB / 8GB RAM ? > > I want to convert some installations to use by default ZFS on RBPI. Would > this even work for systems with 4/8GB RAM? Is it difficult? > > Thanks, > Stefan > > > > ------=_Part_87_644865787.1660900403338 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

My RPI4 8GB runs on ZFS on a USB-disk.
[root@rpi4 ~]# gpart show
=>        40  1953458096  da0  GPT  (931G)
          40      102400    1  efi  (50M)
      102440     8388608    2  freebsd-swap  (4.0G)
     8491048  1944967088    3  freebsd-zfs  (927G)

[root@rpi4 ~]# zpool status
  pool: zrpi4
 state: ONLINE
...
  scan: scrub repaired 0B in 14:19:49 with 0 errors on Fri Jul 29 19:25:33 2022
config:

    NAME        STATE     READ WRITE CKSUM
    zrpi4       ONLINE       0     0     0
      da0p3     ONLINE       0     0     0



I can't remember doing something special. But I didn't make notes either.
But there is no official procedure to "move from UFS to ZFS". A procedure could be:

1. boot the UFS version
2. connect a second disk to the RPI4.
3. partition and zpool create. There are some tutorials available for this: https://wiki.freebsd.org/RootOnZFS
4. make sure the boot-blocks are properly configured
5. copy relevant data from the UFS to the ZFS volumes
6. shutdown, disconnect the UFS disk, and boot
7. hope for the best
8. discuss your results here and go back to step 1 or ...
9. beer! (or another beverage of your liking)

Regards
Ronald.

 

Van: Stefan Parvu <sparvu@kronometrix.org>
Datum: vrijdag, 19 augustus 2022 10:29
Aan: freebsd-arm <freebsd-arm@freebsd.org>
Onderwerp: From UFS to ZFS as root on RBPI4

Hi,

Do we have anywhere documented any procedure how one would move
from UFS to ZFS for root using RBPI 4GB / 8GB RAM ?

I want to convert some installations to use by default ZFS on RBPI. Would
this even work for systems with 4/8GB RAM? Is it difficult?

Thanks,
Stefan
 

------=_Part_87_644865787.1660900403338--