I am dreaming of a one filesystem server with zfs or btrfs that runs the host and the containers on that same filesystem.
Installing Ubuntu on ZFS is not trivial and zsys development has halted in favour of active directory stuff which is unfortunate, at least for me.
Btrfs can be set up in the installer easily when setting up my base image.
And now why I consider this again now: Running Docker inside of a LXD container - YouTube from @stgraber. Would be cool to be able to run docker containers with good storage performance for production use in Linux Containers. So everything is pointing to btrfs.
So now the big question comes into play as I run monolithic LEMP stack containers with for now custom ZFS volumes for MariaDB with recordsize=16k for that zpool subdir…
Can I get good database performance from btrfs?
What would be the best settings for this?
Of course I’ll have to do tests again but some pointers in the right direction would be useful.
For example I learned here that turning off COW on the subvolume of the mysql data would probably be more performant. But can I still snapshot the whole container doing that?
Thanks in advance!