Date: Wed, 10 Dec 2014 11:29:22 -0800 From: John-Mark Gurney <jmg@funkthat.com> To: Pete Wright <pete@nomadlogic.org> Cc: freebsd-virtualization@freebsd.org Subject: Re: backups of bhyve images Message-ID: <20141210192922.GU25139@funkthat.com> In-Reply-To: <548637D8.1060608@nomadlogic.org> References: <20141208163358.GA52969@potato.growveg.org> <33053EB5-91C5-4036-8CC2-34103E33A0FA@mu.org> <CAG=rPVcZc_xs44mXsE%2BPrBsu9CC863HerkvqDQPTxNUEO-V4gQ@mail.gmail.com> <548637D8.1060608@nomadlogic.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Pete Wright wrote this message on Mon, Dec 08, 2014 at 15:44 -0800: > > > On 12/08/14 15:30, Craig Rodrigues wrote: > > (3) When you want to backup the VM, do a "zfs snapshot" take take a > > snapshot of the ZFS zvol. > > will this ensure that your zvol is consistent, or rather will the > filesystem overlaid on the zvol device be ensured it is consistent when > the hypervisor issues a snapshot command? That's the beauty of FreeBSD... UFS provides this w/ soft updates, and ZFS does this through COW... In both cases, as far as I understand it, it is safe to snapshot the FS... > it's been a while since i've done this - but IIRC on NetApp WAFL systems > (which are similar to zfs in terms of being a COW filesystem) you need > to ensure the guest filesystem is in a consistent state before issuing a > snapshot from it's parent. > > my data may be out of date since it's been several years since i've done > this though... With either UFS and ZFS, create a snapshot, and then do the copy of the image from the snapshot... This will get you a consistant copy of the image as if you had "powered off" the vm at that moment.. You'll still have to fsck a UFS file system, but that is to be expected... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141210192922.GU25139>