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

Jäkel, Guido G.Jaekel at dnb.de
Tue Jan 14 07:28:51 UTC 2020


Dear Oliver,

I just want to mention, that with this workaround it isn't a real snapshot anymore but may be called a "slow bullet" instead: It will take some real time to copy the whole image and in contrast to a snapshot, it will be not completely consistent if the Container is running at this time.

With greetings

Guido
-----Ursprüngliche Nachricht-----
Von: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] Im Auftrag von Fajar A. Nugraha
Gesendet: Montag, 13. Januar 2020 10:16
An: LXC users mailing-list <lxc-users at lists.linuxcontainers.org>
Betreff: Re: [lxc-users] Howto save snapshots only to another drive? Bug?

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
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list