From owner-freebsd-fs@FreeBSD.ORG Thu Jul 4 00:13:36 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 73ABD512 for ; Thu, 4 Jul 2013 00:13:36 +0000 (UTC) (envelope-from prvs=1897fed9ea=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 185821004 for ; Thu, 4 Jul 2013 00:13:35 +0000 (UTC) Received: from r2d2 ([82.69.141.170]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50004713854.msg for ; Thu, 04 Jul 2013 01:13:32 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Thu, 04 Jul 2013 01:13:32 +0100 (not processed: message from valid local sender) X-MDDKIM-Result: neutral (mail1.multiplay.co.uk) X-MDRemoteIP: 82.69.141.170 X-Return-Path: prvs=1897fed9ea=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-fs@FreeBSD.org Message-ID: From: "Steven Hartland" To: "Berend de Boer" , References: <87li5o5tz2.wl%berend@pobox.com> Subject: Re: EBS snapshot backups from a FreeBSD zfs file system: zpool freeze? Date: Thu, 4 Jul 2013 01:13:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 00:13:36 -0000 ----- Original Message ----- From: "Berend de Boer" > Hi All, > > I'm experimenting with building a FreeBSD NFS server on Amazon AWS > EC2. I've created a zpool with 5 disks in a raidz2 configuration. > > How can I make a consistent backup of this using EBS? > > On Linux' file systems I can freeze a file system, start the backup of > all disks, and unfreeze. This freeze usually only takes 100ms or so. > > ZFS on FreeBSD does not appear to have such an option. I.e. what I'm > looking for is basically a hardware based snapshot. ZFS should simply > be suspended at a recoverable point for a few hundred ms. > > A similar question from 2010 is here: > http://thr3ads.net/zfs-discuss/2010/11/580781-how-to-quiesce-and-unquiesc-zfs-and-zpool-for-array-hardware-snapshots > > Absent a "zfs freeze" it seems using FreeBSD/zfs on AWS with EBS is > going to be impossible. Unfortunately that means back to Linux sigh. Not been following the thread really so excuse if this has already been mentioned ;-) There is a zpool freeze which stops spa_sync() from doing anything, so that the only way to record changes is on the ZIL. The comment in the zpool_main is: "'freeze' is a vile debugging abomination" so it's evil but might be what you want if you're up to writing some code. For more info have a look at ztest. Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.