<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333"><div>Thanks Fajar, </div><div><br data-mce-bogus="1"></div><div>I'm more interested in if I'm right or wrong and why that's the case. <br></div><div><br data-mce-bogus="1"></div><div>Incremental snapshot support is in LXD 3.0 but I'm asking in relation to LXC, not LXD. And I'm really looking to clear up my (mis)understanding. <br data-mce-bogus="1"></div><div><br></div><div><br></div><div data-marker="__SIG_PRE__"><div>Thanks! <br></div><div>Lai<br></div></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Fajar A. Nugraha" <list@fajar.net><br><b>To: </b>"lxc-users" <lxc-users@lists.linuxcontainers.org><br><b>Sent: </b>Wednesday, March 7, 2018 1:17:07 PM<br><b>Subject: </b>Re: [lxc-users] LXC copy snapshots only to remote?<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 8, 2018 at 12:03 AM, Lai Wei-Hwa <span dir="ltr"><<a href="mailto:whlai@robco.com" target="_blank">whlai@robco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#333333"><div>Hi Everyone, <br></div><br><div>I'm probably not fully grasping how LXC containers/snapshotting works, but why isn't the following possible?<br></div><br><div><table style="width:70%;table-layout:fixed" cellpadding="3px" border="1px"><tbody><tr><td style="text-align:center"><strong>Host</strong></td><td style="text-align:center"><strong>Container</strong><br></td><td style="text-align:center"><strong>Monday</strong><br></td><td style="text-align:center"><strong>Tuesday</strong><br></td><td style="text-align:center"><strong>Wed</strong><br></td><td style="text-align:center"><strong>Thurs</strong><br></td></tr><tr><td style="text-align:center">H1<br></td><td style="text-align:center">C1 (fresh Ubuntu)<br></td><td style="text-align:center">SA (added apache)<br></td><td style="text-align:center">SB (removed apache and added nginx)<br></td><td style="text-align:center">SC (hardened nginx config)<br></td><td style="text-align:center">Host dies<br></td></tr><tr><td style="text-align:center">H2<br></td><td style="text-align:center">C2 (created from C1 Snapshot B)<br></td><td style="text-align:center"><br></td><td style="text-align:center"><br></td><td style="text-align:center">SC (with hardened nginx config)<br></td><td style="text-align:center"><br></td></tr></tbody></table></div><div><br><div>On Tuesday, I snapshot C1 (creating SB) and stop the container. I then jump on a new host (H2) and copy snapshot B: <br></div><blockquote><div><strong>H2$  </strong> lxc copy H1:C1/SB C2<br></div></blockquote><div>At this point, my C2 is equivalent to C1 + SA + SB. Thus, I believe that C1 + SA + SB = C2<br></div><br><div>On Wednesday, I take Snapshot C on H1. <br></div><br><div>I believe that on Wednesday, after taking SC, I should be able to copy SC <strong>alone</strong> to H2. And then on Thursday, when H1 dies, I should be able to go to H2 and launch SC (C2 + SC) and have the same container I had on H! when I first took Snapshot C.<br></div><br><div>If I'm wrong, why am I wrong? If I'm right, how do I copy SC by itself (and not the whole container) to H2 on Wednesday?<br></div><br><br></div></div></div></blockquote><br><br><div>I'm pretty sure lxc doesn't do incremental snapshots.</div><br><div>To get what you want, you need to manage the storage snapshots (and incremental send) yourself. For example, if using zfs, you can use sanoid + syncoid.</div><br><div>-- </div><div>Fajar</div><div> </div></div></div></div>
<br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br></div></div></body></html>