The default path for LXD is /var/lib/lxd, so containers are in
/var/lib/lxd/containers and snapshots are placed in /var/lib/lxd/snapshots.
The /var/ partition is getting full, so I'm planning to use another partition for containers and snapshots which has much more space.
My current options are:
- Create a symlink to the new directory (in the other drive)
- Bind (mount) the new directory into the current one
- Change some lxd setting (if exists) which points to a directory in the other drive
Not sure which method is easier and if there are any other ways to achieve this easily.
I'm worried about having problems with apparmor, the container's permissions or causing issues in lxd/lxc.
Which would be the correct (or best) way to move them?
(April 2017) UPDATE ******************
LXD 2.9+ supports multiple storage pools.