2

It seems ZFS is much more robust than ext4, specially for handling power failures or bad-blocks/media-corruption.

There's old literature from 2013, 2014... here and there about ZFS as a boot filesystem...

My old SoHo server is starting to give me bad-blocks and I plan to replace it with new hardware. I'll be virtualizing things on it, both in VirtualBox and in docker. VirtualBox images are aimed to be "progressively converted" to docker images and then remove VirtualBox and go only with dockers.

But time elapses. We are on 2020 now.

My concern is about storage. The filesystem for the whole SoHo server.

I've seen ZFS has tons of configurations for redundancy. In the case for a SOHO server, I'd bet for "at least" two phisical drives, but also IDK if that's the way to go.

This is not a NAS-only server. It'll be serving firewalling/routing, it's also serving a web-server for development, an IMAP server, MySQL, and other things. All them are virtualized on the main OS. So it's not "a NAS", it's a full SoHo server.

Questions

  1. Is it a good idea to have ZFS as the boot filesystem for a SOHO server?
  2. Why ubuntu and other distros are still offering ext4 instead zfs as the default?
  3. In case it is a good idea, what's the proper way to set it up?
  4. Any "configuration recipe"?

3 Answers3

1

1) ZFS is always a good idea, for everything. I have used it for everything except /boot/efi, and in some cases /boot for years. All of my servers are in ZFS rootfs.

2) Because of inertia and people's preference for "familiar" over "good". I've been using ZFS in everything since before ZFSonLinux had POSIX support (original version with POSIX FS support came from KQ Infotech, before it ZoL had a working port). It has been a period of a massive reduction of my need to restore anything from backups.

3/4) This is still accurate: https://github.com/openzfs/zfs/wiki/Ubuntu-18.04-Root-on-ZFS

0

Generally, I'd recommend ZFS only for lab server or if you have experience handling ZFS features. Long story short: due to fact that ext2,3,4 filesystem used more often, it will me much more convenient.

  • bug tracking will be enforced more rapidly;
  • there are a lot more people who know how to work with it if advise needed;
  • You can easily transform ext4 to ext2, say if you want it on SSD in future. Which is not a problem if you copy data, but still;
  • There is a large amount of recovery tools for ext4;

Again, for purposes of server that should "just work", and doesn't have underlying storage system, I would not recommend Zettabyte FileSystem :)

  • Do you have big data volume? I guess not;
  • Do you use LVM? Unlikely;
  • What does dynamic block size gives you? Mostly nothing on one disk.

Bottom line: If you want to play with zfs, just add one more disk to server and dump there "not so important" data. When competence grows, you could decide yourself if you want to keep zfs. For / I recommend ext4 in any case.

Here's performance comparison.

geoai777
  • 156
0

Why ubuntu and other distros are still offering ext4 instead zfs as the default

ZFS has some licensing uncertainty re: kernel (GPL) so most distributions do not ship it as a default option. It can be complex to set up and use as well so is not a good default choice for a distro although as others have said it is probably the most feature rich and resilient filesystem available.

In case it is a good idea, what's the proper way to set it up?

Any "configuration recipe"?

https://zfsonlinux.org/

Peleion
  • 849