Re: ZFS with 32-bit, non-x86 kernel

From: Bernd Walter <ticso_at_cicely7.cicely.de>
Date: Sat, 5 Oct 2019 11:30:58 +0200
On Fri, Oct 04, 2019 at 09:53:07PM +0200, Marek Zarychta wrote:
> On 04.10.2019 21:37, Ian Lepore wrote:
> > On Fri, 2019-10-04 at 13:27 -0600, Warner Losh wrote:
> >> On Fri, Oct 4, 2019, 1:07 PM Dennis Clarke <dclarke_at_blastwave.org> wrote:
> >>
> >>> On 10/4/19 10:05 AM, Andriy Gapon wrote:
> >>>>
> >>>> Does anyone use ZFS with a 32-bit kernel, that is also not i386 ?
> >>>> If you do, could you please let me know?  Along with uname -rmp output.
> >>>> Thank you!
> >>>>
> >>>
> >>> I don't know if that has even been attempted by anyone. The ZIL and ZFS
> >>> log comonents require substantial amounts of memory and I am not aware
> >>> of anyone with arm devices that have 8GB+ of memory. I have had FreeBSD
> >>> current on RISC-V running fairly well with ZFS however that was a purely
> >>> rv64imafdc architecture.
> >>>
> >>
> >> In the FreeBSD 10 time frame I know people were running ZFS on arm7 boards.
> >> Iirc, there was a long list of tweaks needed to size of the ZIL. A quick
> >> google didn't find it.
> >>
> >> Otoh, I looked at ZFS for NanoBSD when it first came out. I gave up because
> >> the 256MB boards at the time made any kind of storage traffic ran things
> >> out of memory.
> >>
> >> Warner
> >>
> >>
> >> I will watch this thread with curiosity.
> > 
> > There have been several threads about using zfs on armv7 over the
> > years.  Some of them are from 2013 and indicate little sucess.  Others,
> > from 2015, indicate it works...
> > 
> > https://lists.freebsd.org/pipermail/freebsd-arm/2015-March/010607.html
> > https://lists.freebsd.org/pipermail/freebsd-arm/2015-March/010649.html
> > 
> > There have also been some bug reports as recently as 2017 indicating
> > that people are still doing this on small armv7 systems.
> > 
> > -- Ian
> 
> Following this thread, where Bernd Walter wrote small howto:
> 
> https://lists.freebsd.org/pipermail/freebsd-arm/2019-February/019455.html
> 
> I had converted root filesystem to ZFS on SD card used with
> RaspberryPi2, then used it with no issues running 13-CURRENT for 6
> months until that old SD card got worn.

Yes, a system with 1G RAM works fine.
I use it mostly on 64 bit systems, like Pi3, Pine64, Pinebook, ...
All of them are 1G-2G RAM.
But I also have a lot of 2GB Wandboards, which are 32bit, have two uSD
slots and work great.
I also have some 1GB Allwinner A20 boards with 1GB RAM and two uSD slots
on which I might do it as well to give those boards a purpose.
SD cards are notorious for problems after power failure.
ZFS works great with flash based media and can handle such media errors
just fine.
I'm running two wandboards in such a zroot mirror setup to programm
microcontrollers with avrdude, openocd, run TTL-UART, ...
A lot of missuse and since they are running headless I often just
powercycle them if something with USB hangs again.
I also found out that reversing an A-Plug can produce a short circuit
on the host 5V rail and zroot survided those spontanous reboots just
fine.
Would be a shame if I couldn't use the wandboards anymore.

-- 
B.Walter <bernd_at_bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Received on Sat Oct 05 2019 - 07:31:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC