Re: From UFS to ZFS as root on RBPI4

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Fri, 19 Aug 2022 09:13:23 UTC
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
>  
> 
> 
>