From owner-freebsd-questions@freebsd.org Mon Jan 22 16:12:27 2018 Return-Path: Delivered-To: freebsd-questions@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 6AA5DEC8718; Mon, 22 Jan 2018 16:12:27 +0000 (UTC) (envelope-from SRS0=8YYm=ER=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F43982DA8; Mon, 22 Jan 2018 16:12:26 +0000 (UTC) (envelope-from SRS0=8YYm=ER=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id DCA2028416; Mon, 22 Jan 2018 17:12:17 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 22CDB2840C; Mon, 22 Jan 2018 17:12:14 +0100 (CET) Subject: Re: syncing bhyve instances To: tech-lists , freebsd-virtualization@freebsd.org Cc: freebsd-questions@freebsd.org References: From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: Date: Mon, 22 Jan 2018 17:12:13 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 16:12:27 -0000 tech-lists wrote on 2018/01/22 16:45: > Hello lists, > > If I have two bhyve hosts, production [p] and reserve [r], and on both > there are identical guest[s] [1] and [2], what is the best way to sync > the guests? What's the best tool? > > 1. would syncing the guests from the host work? (in other words, running > some kind of tool like say rsync on the host work?). What about the > internal state of the guest? Could rsync account for changes in its > internal state? > > 2. or would it be better to run a tool like rsync inside each guest? > > 3. is there a better tool for this than rsync? It is too vague question. But if you just want poor mans replication I would go with ZFS (send + receive) from host p to r in few minutes intervals. Of course it will not help you with internal states of running VMs. It will just sync filesystems in better way than rsync. (if you have ZFS) Miroslav Lachman