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

Fajar A. Nugraha list at fajar.net
Mon Jan 13 09:16:01 UTC 2020


On Mon, Jan 13, 2020 at 3:57 PM Oliver Rath <oliver at greenunit.de> wrote:
>
> Hi Fajar,
>
> its "dir":
>
> lxc storage show default | grep driver
> driver: dir


If it's dir, you could probably work around that by using bind mounts.
something like

rm /path/to/pool/dir/containers-snapshots <= remove the symlink first
mkdir /path/to/pool/dir/containers-snapshots <= recreate the directory
mount --bind /path/to/new/disk/containers-snapshots
/path/to/pool/dir/containers-snapshots

then test it, see whether new directories/files appear on
/path/to/new/disk/containers-snapshots

Not sure whether this is a supported method or not though.

-- 
Fajar


More information about the lxc-users mailing list