<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 31, 2016 at 3:37 AM,  <span dir="ltr"><<a href="mailto:david.andel@bli.uzh.ch" target="_blank">david.andel@bli.uzh.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hi<br><br>How can I best put snapshots of LXD on a separate (slower) btrfs volume?<br>Probably I cannot simply symlink /var/lib/lxd/snapshots/ to the other btrfs volume, can I?<br>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.<br><br></font></blockquote><div><br></div><div><br></div><div>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"</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Of course the most elegant solution would be to have this done by the fs itself as suggested here: <a href="https://btrfs.wiki.kernel.org/index.php/Project_ideas#Hybrid_Storage" target="_blank">https://btrfs.wiki.kernel.org/index.php/Project_ideas#Hybrid_Storage</a><br><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span><font size="2">But that may take a while...<br><br>So for the time being I am looking into ways to store my snapshots away from the fast disks on slower and cheaper disks.<br><br></font></span></font></div></font></span></font></blockquote><div><br></div><div><br></div><div>That would be really useful if the snapshots were full copy, but no so much if they were filesystem snapshots (which they are)</div><div><br></div><div>If you really want to do it anyway, AFAIK an alternative would be to do it manually:</div><div>- send the fs to new, slower storage</div><div>- send the incremental snapshots</div><div>- delete OLD snapshot from the original storage</div><div><br></div><div>Works with zfs (zfs send), probably works with btrfs as well (haven't tested it)</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>