[lxc-users] LXD move, how to reduce downtime without live migration
Tamas Papp
tamas.papp at rtfm.co.hu
Thu Apr 27 14:14:33 UTC 2017
On 04/27/2017 04:09 PM, Spike wrote:
> Tamas,
>
> are you actually doing this? any gotchas?
Yes, I do, but with LXC.
> I'm trying to set up exactly the same, have a live node and a backup
> node, both running zfs. I have the same containers, with the same mac,
> at destination, however I'm unclear that just by copying over the
> rootfs dataset from zfs it will be enough to make it work.
>
> Has anybody done this before? I think somebody (maybe Fajar) in the
> past also mentioned keeping /var/lib/lxd on zfs and replicating that
> too which makes a lot of sense.
>
> It'd be good if we could collect a sort of best practice document from
> people with actual experience that do this regularly and list out all
> the steps and requirements.
With LXD there is also a database which has to be somehow updated.
It's probably can be done with 'lxd import'.
I have never tested the full pipeline (replicate, stop on source,
import on dest., start on dest.), if there is anything I missed.
Cheers,
tamas
More information about the lxc-users
mailing list