Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2018 08:38:21 -0800
From:      Paul Vixie <paul@redbarn.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: syncing bhyve instances
Message-ID:  <5A66137D.5090608@redbarn.org>
In-Reply-To: <d51c09bc-fbe3-4d79-2228-c8b9742db768@zyxst.net>
References:  <d51c09bc-fbe3-4d79-2228-c8b9742db768@zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
i've used zfs for this, but i have to shut the guest down to do it. i'm 
using zvols for my guest system disks, so it's

shut the guest down (maybe just to single-user mode)
make a zfs checkpoint
start the guest back up
zfs send the checkpoint

this also assumes that the sync-destination is a cold spare, sitting in 
its shutdown state until needed.

for live sync you'll have to run software inside the guest that knows 
how to properly freeze state. for example if there's a live database of 
any kind you'll want it to be in its quiet state before you sync from 
it. in those situations, i do use rsync.

bhyve could conceivably offer a feature to export the guest RAM, and 
with a little page-stealing, this could be made into an incremental sync 
feed. but i predict it would be enormous in size for any non-trivial guest.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5A66137D.5090608>