Adding direct-attach storage to select nodes?

I am planning to deploy a 4-node Microcloud cluster where each node will have:

  • SSD for OS
  • NVMe for “remote” storage

I plan to add direct-attach storage enclosures to 2 of the 4 nodes. What’s the safest way to configure this additional storage without risking issues during future Microcloud upgrades?

I’m considering:

  1. Configure a ZFS zpool over the enclosures disks outside of LXD
  2. Add these pools to LXD using names different from Microcloud’s default “local” storage
  3. Use LXD to scheduled snapshots of the first pool and a hook lxc copy to replicate.

Open to other suggestions.

Thanks!

Hello @pbmarler,

To create a storage pool you need to have at least one disk on each of the cluster members.
See https://documentation.ubuntu.com/lxd/en/latest/howto/storage_pools/#create-a-local-storage-pool.

Creating the zpool outside of LXD is fine, just note when you create the pool on each of the members use the source setting to reference the already existing zpool.