I have to describe our situation first:
We run an Ubuntu system with LXD 3.0.3 that is hosting a number of different containers. The OS itself is installed on an SSD, but we also have a mechanical harddisk in the system. We have one storage pool on the SSDs for containers were performance is crucial and a different storage pool on the mechanical disk for containers where performance isn’t relevant. Both storage pools are backed by a BTRFS filesystem, native, not loop-mounted.
Every night we start a backup process that, in a loop, executes the following actions for all contaiuners on the SSD:
- Create a snapshot of the running container
- publish the snapshot
- export the image to a directory on the HDD
- delete the image from LXD
- delete the snapshot
This works fine so far, but we ran into a limitation: due to the relatively small size of the SSD and some larger containers on it we ran out of space during step 2.
So the question for us is: Is it possible to publish a container’s snapshot (or a container itself) to the storage pool on the HDD instead of the one on the SSD?
I looked over the documentation, but could not find anything that would help us.