Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2018 07:53:26 -0500
From:      David Wimsey <david@wimsey.us>
To:        Paul Vixie <paul@redbarn.org>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: syncing bhyve instances
Message-ID:  <67983B85-6983-40A9-B7D3-4CD2AAA9517B@wimsey.us>
In-Reply-To: <5A66137D.5090608@redbarn.org>
References:  <d51c09bc-fbe3-4d79-2228-c8b9742db768@zyxst.net> <5A66137D.5090608@redbarn.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

> On Jan 22, 2018, at 11:38 AM, Paul Vixie <paul@redbarn.org> wrote:
> 
> 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.
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"

Just for reference, I’ve had good experiences with zrep for keeping ZFS file systems synced.  You can cron it pretty much as often as you want and it’ll handle snapshotting, sending, and cleaning up of snapshots on both ends in a sane and safe manner.  It only helps with the ZFS sync part of this issue, but its pretty good at that.

http://www.bolthole.com/solaris/zrep/ <http://www.bolthole.com/solaris/zrep/>;

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEG4HTcn99UQiu6Q3qerZMujxxKYoFAlpnMEYACgkQerZMujxx
KYq4BhAApnb6KjuTCzM8G8d5wGe/dJtg4hassBuMy3dOsQgDboY0IHfKOKWHblvr
ByUn803gRia+posPV7G8Rfy9liGDKo13ckAI8HjKyshtvpqpQoOayiQoPkzN2FOt
mhfPem4EvAGGcE1N112UFqOJdNomdzn8Evj3m4iXkOSEC4uBzezLP3NW1GkekZKS
044plKPu2zfcRB496425angD+fZo9/4y5Fnwi4DctsBz/VaStqCx3kHQnXmY6fF5
PMlWJaDxehtP0oNRVdQCBnbg/cZsF9pxCqmPpoIB68qlmdYz8skuKyJ0ncdTMTMG
QeJKwjok+MBgz/XFiv2Q17aZqFHmNjMn58nSpR25dnHS/OgZAJ51/JhM/67chRQs
y9XEAYbLfilG4q4/HzysZ5JVNAR3us4mq13koVneCclWUGmado65zXjXqijsg4Ej
/LqEqVSGjOE4ZJYCQY76FGa9VntbC1MkmfKaKjvWcpx1YTSkdjnWOkNWfvgu3uyQ
a6BcG+cpysep6bIJRq4A9EEmUDFnjz6Nhn8AUJXabIBMLMqam3BYCMVcNLITONjt
QjfxtijoCk3bSjMq7qHlsbYIq/FS3Movuoh0vdXby1cjr77AtEHWGyeD+pTS1IvJ
AMrztSSwVvzGfY9x5v32d4ZhibIqkljoYiZaGFMm7XeVuMOv8vU=
=WomT
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?67983B85-6983-40A9-B7D3-4CD2AAA9517B>