Hacker News
How to Increase OpenBSDs Resilience to Power Outages
lotrjohn
|next
[-]
Also the PC Engines APU2 the author speaks about is EOL and no longer in production.
I do like how the article is clearly dated at the top. I believe all internet articles should be dated - it provides a huge amount of context imo.
adrian_b
|root
|parent
[-]
Thus there is no doubt that the UFS variant used by OpenBSD remains very sensitive to power failures, so this will remain a persistent problem, until they add a more resilient file system.
The right technical solution would have been to merge a good Linux file system, e.g. XFS, but that is impossible because of license conflicts.
The alternative is to take ZFS from FreeBSD, which might be OK, but I do not know this for sure, because on FreeBSD I use only "UFS with soft updates" which works fine for me and it is still immune to power failures.
avadodin
|root
|parent
[-]
Truth is, I've never had a catastrophic data loss on traditional filesystems like ext2 and ufs and the devs probably haven't had one either so they don't feel like the situation is the same as with lacking a compiler.
I read the article about why they removed soft updates and the gist of it was that the maintainer moved on and no one else was willing to understand the complex system anymore.
I'd imagine ZFS is at least on the same level of complexity.
So, two pretty tall hurdles to clear.
If someone gave them a filesystem with the right license, ideas from 20+ years ago and a promise to maintain it on OpenBSD forever, I'm sure they'd take it.
doublepg23
|root
|parent
|next
[-]
Why isn't it? The CDDL is basically the MPL, which in-turn is basically the LGPL.
The jihad against the GPL by FreeBSD and conveniently ignoring the CDDL being weak-copyleft was always ironic to me.
> and the devs probably haven't had one either
solene@ left and stated the filesystem as a supporting reason:
> I have grievances against OpenBSD file system. Every time OpenBSD crash, and it happens very often for me when using it as a desktop, it ends with file corrupted or lost files. This is just not something I can accept.
https://dataswamp.org/~solene/2024-11-15-why-i-stopped-using...
BSDobelix
|root
|parent
|next
|previous
[-]
They have the right to take NetBSD's UFS (with WAPBL), FreeBSD's (UFS with softupdate) or DragonFly's Hammer2.
Or give users the freedom to use ZFS (optionally) like NetBSD.
vermaden
|next
|previous
[-]
- Install FreeBSD in defaults with Auto (ZFS) option.
- Do not thing more.
- You are resilient for power outages.
Regards,
vermaden
ButlerianJihad
|previous
[-]
I was just crowing the other day with my parents about the filesystem resilience of the simple Amiga Workbench system. I reminded Dad how you can't just pull the plug on Windows since 3.0. You can't pull the plug on DOS if you're in an app, for that matter. But Amiga, you could just hit the power button whenever you pleased, and the filesystem was none the worse for wear, because it was designed well.
Back in the heyday of Raspberry Pi 3, I was tinkering with a kit, but I moped into a Linux User Group meeting, complaining how often I'd ruined an sdcard filesystem after being forced by circumstance to pull the plug. And a nerd, an AWS Engineer by profession, ignored or misread the situation of the humble SBC, and he told me 'just install ZFS' and also 'stop pulling the plug'.
He did not understand the Raspberry Pi, and I let him know exactly how I felt about his idiotic, misplaced advice. Yes, sure, ZFS for the big systems with gobs of memory and UPS backups. Personally I kinda liked btrfs.
Also the author of today's article cannot spell "gigabytes" and for a storage specialist, that's a real bad look, kids. Learn how to abbreviate, and you communicate better. Spell your units wrong, and you appear uneducated and inexperienced.
But any filesystem in 2026 that simply can't survive a power-cut does not deserve to be in an OS that is High Availability and Redundant and promising >4 nines of uptime. I mean seriously. If this guy's hacks involve mounting rofs everywhere, then ufs (or whatever OpenBSD still uses) has failed again, in 2026, after 56 years' worth of trying to get it right.
adrian_b
|root
|parent
|next
[-]
Even in the early 2000's, there was one UNIX file system, the FreeBSD UFS with "soft updates", which was completely immune to computer crashes caused by power failures or by anything else, at a time when the journaled file systems of Linux, and also NTFS of Microsoft, were still buggy enough that power failures could result in bricked computers, despite their claims that journaling should protect against this.
But since then, most bugs have been fixed and now at least for XFS I know with certainty that it can pass through numerous power failures without any problems and with no filesystem corruption.
segmondy
|root
|parent
|next
|previous
[-]
bananamogul
|root
|parent
|next
|previous
[-]
I’m not sure comparing the file system on a single user workstation where disk is probably quiescent most of the time to the file system used on a busy server is really apples to apples. The Wikipedia article on the Amiga FFS makes it sound like it was an early journaled file system, but not technically superior to anything developed since. It plays back the journal if not shut down cleanly. All modern filesystems do that.
OpenBSD uses FFS btw (not the same FFS as the Amiga).
ButlerianJihad
|root
|parent
[-]
Having just read through Wikipedia, though: OpenBSD uses UFS, which layer is referred to as ffs in the userspace. It's potato, potato. The soft-updates should have readily mitigated corruption issues, though they didn't entirely go away. LFS is another component to UFS/ffs, as a formally log-structured filesystem.