I want to use LXD in production and it’s time for me to get some new servers.
I’ll probably have just two SSDs that are mirrored, so I won’t have dedicated drives for LXD. My experience with storage backends are limited so I would prefer something simple to set up and maintain, while still offering great performance for databases. I’ll be using Ubuntu 20.04.
I see that ZFS and BTRFS are recommended, but I don’t get why it’s recommended over LVM. (is it just because of faster transfer between hosts?)
The way I see it, my options are, from simplest to hardest(?):
- mdraid + LVM.
- mdraid on one partition from each drive, while giving ZFS a larger partition on each drive.
- ZFS root.
Sadly Ubuntu doesn’t offer ZFS root out of the box.
I’ve been running option 2 on a couple of servers at home, but with spinning rust and a SSD as ZIL. The performance isn’t great, but I’m not sure if that is the drives fault or the setup.
If docker with overlay2 in a container is simpler with LVM then that is also a small plus for me. I can’t get it working when using ZFS backend.
What would you guys choose, both from a maintainability standpoint and a performance standpoint?
Hoping to get some pointers and tips, thanks!