From owner-freebsd-fs@FreeBSD.ORG Wed Jul 3 09:15:55 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9D088978 for ; Wed, 3 Jul 2013 09:15:55 +0000 (UTC) (envelope-from berend@pobox.com) Received: from smtp.pobox.com (b-pb-sasl-quonix.pobox.com [208.72.237.35]) by mx1.freebsd.org (Postfix) with ESMTP id 6109517F4 for ; Wed, 3 Jul 2013 09:15:55 +0000 (UTC) Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 652F62BBBB; Wed, 3 Jul 2013 09:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date :message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=sasl; bh=qxdmMsMlfpOWjnc9v4/F8GjCju8=; b=Ke8XcB/s9ch50weu/qT6WO+Z4I43 WNQ13tkPv7sC6DJ5fnczqJRseM6v75PgkF8bgmanNMrsL2TRCuQhFR6BmcvTnW/R YMZAiC2+Mrzo/Mr6tjefGVYoa29VNt8JnhzU97iTu8GPWLOBmZIZj8Is2sH6ppyG OQ6qHCKBK+4QgeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:message-id :from:to:cc:subject:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=llVeJi Lfp6mcmnRoI6WXeesFaGl/oHy2AZCNAofbx9+MXwO1IwqVMsUqxUsKRN5WMnDxrP QanFHUBzwZWuA5BwtSHFBZ63X1AL2rylWvv6niKFF1UV3E6nTXjiYgM09A6po5nM x9mdLdICoUVZ5biktQMtnI8uxHq/s89JMpOHI= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 59EB42BBBA; Wed, 3 Jul 2013 09:15:53 +0000 (UTC) Received: from bmach.nederware.nl (unknown [27.252.247.84]) by b-sasl-quonix.pobox.com (Postfix) with ESMTPA id 73A152BBB4; Wed, 3 Jul 2013 09:15:52 +0000 (UTC) Received: from quadrio.nederware.nl (quadrio.nederware.nl [192.168.33.13]) by bmach.nederware.nl (Postfix) with ESMTP id 947055C6A; Wed, 3 Jul 2013 21:15:45 +1200 (NZST) Received: from quadrio.nederware.nl (quadrio.nederware.nl [127.0.0.1]) by quadrio.nederware.nl (Postfix) with ESMTP id 317FA4A11BF3; Wed, 3 Jul 2013 21:15:50 +1200 (NZST) Date: Wed, 03 Jul 2013 21:15:50 +1200 Message-ID: <87zju43sxl.wl%berend@pobox.com> From: Berend de Boer To: Markus Gebert Subject: Re: EBS snapshot backups from a FreeBSD zfs file system: zpool freeze? In-Reply-To: <14A2336A-969C-4A13-9EFA-C0C42A12039F@hostpoint.ch> References: <87li5o5tz2.wl%berend@pobox.com> <87ehbg5raq.wl%berend@pobox.com> <20130703055047.GA54853@icarus.home.lan> <6488DECC-2455-4E92-B432-C39490D18484@dragondata.com> <14A2336A-969C-4A13-9EFA-C0C42A12039F@hostpoint.ch> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.3 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: Xplain Technology Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Wed_Jul__3_21:15:49_2013-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: 28A8F8B6-E3C1-11E2-8E6E-E84251E3A03C-48001098!b-pb-sasl-quonix.pobox.com Cc: freebsd-fs 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: Wed, 03 Jul 2013 09:15:55 -0000 --pgp-sign-Multipart_Wed_Jul__3_21:15:49_2013-1 Content-Type: text/plain; charset=US-ASCII >>>>> "Markus" == Markus Gebert writes: Markus> 1. snapshot the zfs at the same point in time you'd issue Markus> that ioctl on Linux Markus> 2. take the EBS snapshot at any time Markus> 3. clone the EBS snapshot to the new/other VM Markus> 4. zfs import the pool there Markus> 5. zfs rollback the filesystem to Markus> the snapshot taken in step 1 (or clone it and use that) That seems like a very good first step! It's unfortunately not automatic, but for recovery purposes it should do. Do you think (yes, I will definitely test this), that ZFS can mount a file system consisting of a couple of disk (raidz2 setup), and access it even though every disk might be a backup taken at a slighty different time? Obviously I'm going to throw away the mounted state and rollback to my snapshot, but it has to be able to mount a set of disks which might be in a terrible state first. Markus> Also, taking the zfs snapshot should take much less time, Markus> because you don't have to wait for the EBS snapshot to Markus> complete before you can resume IO on the filesystem. So Markus> you don't even depend on EBS snapshots being quick when Markus> using the zfs approach, a big advantage in my opinion. You don't have to wait for an EBS snapshot to complete. That can take hours. EBS simply takes the moment in time you give the command, and starts the backup from there. Normal I/O to the disk continues (so uses some kind of COW system I suppose) -- All the best, Berend de Boer ------------------------------------------------------ Awesome Drupal hosting: https://www.xplainhosting.com/ --pgp-sign-Multipart_Wed_Jul__3_21:15:49_2013-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-Description: OpenPGP Digital Signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABCAAGBQJR0+vFAAoJEKOfeD48G3g5LNoQAJ6TW0/Ui83dhd+vfklNotqA sh4ukK+2dAFmW4C33R0bZSfEHfZN+SMz/UQROAKAjwK/KveeoLDD9nXryrD9Pm/K TN9k4zXoauiKan6XQZShqtxhTKEjG6BnB+mLwLcWkQN1160AP3Da3ykKimrSfOi0 PskaMcgLj0DXCX2e8a/up77zC9ljIWNqhbJmxaggRxKUyPCeMVWQjouB72VXv27D essxiMDLpMHdZpsWnNEFAKYKjqpFWfqsWINO9jifwQqnD1mEa/SZDHClXyanBbBK OfA46Ocq8hyl+ALF6RnfAsY/Ff91roYVcklPs7zySGYf9hZbgxTyUTUDDaGUSaDA DhWT92aMopqLXnNtEfHxPJpAYvDQEspUWwGzVXhd8rFQ2FxQnVCnuplCV7zPBOIM 0RFeg1Q6gewurQvqTCxQa6vhvAP+Aely8jTepYSP9lcpZN5etX7zIxStBjKM7HqB /HCsfuNnDXHK/9q/T14/qL8aqTPTHoV0iiBVIpTF3SDPwxYaiIPEp4nr2Lra+JKp nuYLLff7F/SUoydEjxWP1mjRDFbRbbrXXM+wahWQzzLr8sl9DYV2fq/7D0GEFdAT WNflpL4K8niCJ0uzVTbrYanDcgeX0vPtYt0Y0FLFRteyZ91unhdX21WxzjSu0kt3 y96xgA+EuRNq+I13VIrJ =cXQg -----END PGP SIGNATURE----- --pgp-sign-Multipart_Wed_Jul__3_21:15:49_2013-1--