[lxc-users] Howto save snapshots only to another drive? Bug?

Fajar A. Nugraha list at fajar.net
Mon Jan 13 02:32:44 UTC 2020


On Mon, Jan 13, 2020 at 5:01 AM Oliver Rath <oliver at greenunit.de> wrote:
>
> Hi list,
>
> Im using lxd 3.18 on ubuntu 18.04. Now i realized, that my (fast) space
> of lxc-vms exhausted, so i decided to put mv my snaps to another drive
> with changing the directory "containers-snapshots" into a softlink
> redirecting the snapshots to another drive.
>
> Unfortunatly on creating a new snapshots got the message
>
> cannot create directory
> "/var/snap/lxd/common/lxd/storage-pools/default/containers-snapshots",
> file exists.
>
> I assume, that the lxc doesnt recognize, that containers-snapshots is a
> (correct) link to the corresponding files. What can I do?


What is the backing storage of your default lxd storage pool on? If
unsure, run "lxc storage show default | grep driver".

lxc snapshots uses snapshot feature of the underlying storage (if
available), so you can't simply trick it with symlinks.

-- 
Fajar


More information about the lxc-users mailing list