On Tue, May 31, 2016 at 3:37 AM, <[email protected]> wrote: > Hi > > How can I best put snapshots of LXD on a separate (slower) btrfs volume? > Probably I cannot simply symlink /var/lib/lxd/snapshots/ to the other > btrfs volume, can I? > I guess that could bring problems since /var/lib/lxd is on the fast btrfs > volume so the snapshots will probably be generated as subvolumes of that > volume. > >
I'm pretty sure that for btrfs and zfs, lxd snapshot utilize fs snapshot. So it's not "new volume that uses full space of container", but "a snapshot of the current container fs, which refer mostly the same blocks, and uses little extra space" > Of course the most elegant solution would be to have this done by the fs > itself as suggested here: > https://btrfs.wiki.kernel.org/index.php/Project_ideas#Hybrid_Storage > But that may take a while... > > So for the time being I am looking into ways to store my snapshots away > from the fast disks on slower and cheaper disks. > > That would be really useful if the snapshots were full copy, but no so much if they were filesystem snapshots (which they are) If you really want to do it anyway, AFAIK an alternative would be to do it manually: - send the fs to new, slower storage - send the incremental snapshots - delete OLD snapshot from the original storage Works with zfs (zfs send), probably works with btrfs as well (haven't tested it) -- Fajar
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
