From owner-freebsd-virtualization@freebsd.org Tue Jan 23 12:53:31 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBF4FED2686 for ; Tue, 23 Jan 2018 12:53:31 +0000 (UTC) (envelope-from david@wimsey.us) Received: from mail-yw0-x22c.google.com (mail-yw0-x22c.google.com [IPv6:2607:f8b0:4002:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A0C77A39F for ; Tue, 23 Jan 2018 12:53:31 +0000 (UTC) (envelope-from david@wimsey.us) Received: by mail-yw0-x22c.google.com with SMTP id u21so129039ywc.2 for ; Tue, 23 Jan 2018 04:53:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wimsey-us.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=TbkepLgbhBc7nbcgnPMKGYqYQgWqKQaHAKHff8HVFfc=; b=rP1vtsd/IrIdqQ69yxkjLtTLqx4b9cmjhO1ZYF+Db3o/TGsXww3zqV4TmIl6hfOlf4 2YuEqSSSp1fwAg1sVnTNx+cm1JSzCVCJ3hL6iV9HnJ+mYvUUP8jNKhlv7akAxPm9pTq3 h+N/+ZQ2GZ9utcyOTj6cxowxIbkUONppdMcECSWhckBAYNzbUVn1zsgF4LiGLqewwJMn xZ2ux9ZB9A+4qj8YmJ+7CcvoFB/WJ8IrzvW/hJJ0dlwy/f0fnmeDp9aYTLfBRuMOME9D AgyhYSeoDzGd23lsHSi3jmetZm5kgyXFy5gEbOuhHzAlc285enVcbxh+wWkROzfJ/Pjc 2bhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=TbkepLgbhBc7nbcgnPMKGYqYQgWqKQaHAKHff8HVFfc=; b=RlcTSsob0OtpcuAX4cZzYLk6NCd5UcMAFWnoOiO9Wt3DnSPkDUEn7I/gIm1Eg+hrug /t61as52Hsf/h8SBGvSDSD16oi+SgugHTgS35ZLYCgnMlLrevDzOPmhtE0fT+lSBsQFs sRlqAAHa0kv25DJXoeIHQNrsco3sHTxhqCQr4HMz7MFRb6eCuFc9g5MCCmlqbVDdQ3qJ yp7rASJMKl7WKKDNMP8kZ2kyJ9FbdaNmSF+Nb5mbBV7M8Q/OLQWAupknk+8+oq+/0F90 xsTxMVf64SKVApq+f5qqEmK1GQr/TZfVbGA/WzOxEUaS6oOUgY6seKzx222rkwRJXNso i5UA== X-Gm-Message-State: AKwxytejZ0Bm2Z4tIfjQSJHSholc+DcjVIaBHPGagFdMkGdZv0G36/9M F1o//Q00iFa8AhuB9MNvd9vIX4xRkbQ= X-Google-Smtp-Source: AH8x227K4E/+2QOfoCJuy/CNcipgjByhYB7apHbX95RJ3VZp7E33jdZIFgKVelmOB6MO+cHidtDAig== X-Received: by 10.129.216.13 with SMTP id d13mr2213818ywj.167.1516712010534; Tue, 23 Jan 2018 04:53:30 -0800 (PST) Received: from [192.168.43.17] (mobile-166-170-53-254.mycingular.net. [166.170.53.254]) by smtp.gmail.com with ESMTPSA id j12sm3680792ywb.91.2018.01.23.04.53.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 04:53:29 -0800 (PST) From: David Wimsey Message-Id: <67983B85-6983-40A9-B7D3-4CD2AAA9517B@wimsey.us> Content-Type: multipart/signed; boundary="Apple-Mail=_2AAC1511-7C79-4743-8C8D-136887FA3D2B"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: syncing bhyve instances Date: Tue, 23 Jan 2018 07:53:26 -0500 In-Reply-To: <5A66137D.5090608@redbarn.org> Cc: freebsd-virtualization@freebsd.org To: Paul Vixie References: <5A66137D.5090608@redbarn.org> X-Mailer: Apple Mail (2.3273) X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2018 12:53:32 -0000 --Apple-Mail=_2AAC1511-7C79-4743-8C8D-136887FA3D2B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 22, 2018, at 11:38 AM, Paul Vixie wrote: >=20 > 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 >=20 > shut the guest down (maybe just to single-user mode) > make a zfs checkpoint > start the guest back up > zfs send the checkpoint >=20 > this also assumes that the sync-destination is a cold spare, sitting = in its shutdown state until needed. >=20 > 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. >=20 > 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=E2=80=99ve had good experiences with zrep for = keeping ZFS file systems synced. You can cron it pretty much as often = as you want and it=E2=80=99ll 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/ = --Apple-Mail=_2AAC1511-7C79-4743-8C8D-136887FA3D2B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----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----- --Apple-Mail=_2AAC1511-7C79-4743-8C8D-136887FA3D2B--