From owner-freebsd-virtualization@FreeBSD.ORG Mon Dec 8 23:31:01 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5B3E0E00; Mon, 8 Dec 2014 23:31:01 +0000 (UTC) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE1B1115; Mon, 8 Dec 2014 23:31:00 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id l4so4693103lbv.12 for ; Mon, 08 Dec 2014 15:30:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=61nDyCxztZJ2scYFeONQjxtowDbtH/TzmSKAKNuNOJc=; b=laJeXNSUmFukEVCcRUoz7GZqSfKX7lLMMEqFGGn1TqFbC7oLwZvq5DvFVZvNRG4Rn1 H6qVCipPf62qBCuum8FJggyxamU0a5nNZGnNc/atTxonweCH7RhZdixlEdDbsUAW9H9B x06E4F0DbS4ZZeIlwJNMFmHRsprRVox5U27GmQMk/8qXRpNfG3R5owntjU1+uzbPUa0S 5zbw85LRImdh+vrwnewpONoEBZRCy0bVza3dAvltMQ+HJ86JdAAfk0lQPgt0n3cWaHB7 8YaxdsaSJ7SkgQFDEFal2KD6OpsJWgBlzAbh7zwgtQsYMh/t6mimQvLBPs+hXZyVVGD7 Eagg== MIME-Version: 1.0 X-Received: by 10.112.201.226 with SMTP id kd2mr18799233lbc.98.1418081459003; Mon, 08 Dec 2014 15:30:59 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.130.168 with HTTP; Mon, 8 Dec 2014 15:30:58 -0800 (PST) In-Reply-To: <33053EB5-91C5-4036-8CC2-34103E33A0FA@mu.org> References: <20141208163358.GA52969@potato.growveg.org> <33053EB5-91C5-4036-8CC2-34103E33A0FA@mu.org> Date: Mon, 8 Dec 2014 15:30:58 -0800 X-Google-Sender-Auth: e59PMgYm6LmsimwZRm9W9n1Ba0k Message-ID: Subject: Re: backups of bhyve images From: Craig Rodrigues To: John Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-virtualization@freebsd.org" , fs@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 08 Dec 2014 23:31:01 -0000 On Dec 8, 2014, at 8:33 AM, John wrote: > > I have each image on its own (external to the image) ZFS filesystem. > Internally the image is using ufs if freebsd, ext3fs if linux. Would > using some ZFS method of duplication be better? In this case, would the > image become inconsistent? I recommend that you do the following: (1) Learn about ZFS zvol: http://zfsonlinux.org/example-zvol.html (2) Instead of creating a big disk image to hold your bhyve VM, use a ZFS zvol (3) When you want to backup the VM, do a "zfs snapshot" take take a snapshot of the ZFS zvol. (4) You can backup the zvol to another host by using "zfs send", and onthe receiving host, you do "zfs receive" The content of your VM can be any file system that you want (UFS, ext4, zfs), but you can backup the ZFS zvol using zfs commands. I've been doing it, and it works really nicely. -- Craig