From owner-freebsd-fs@FreeBSD.ORG Sun Jul 7 21:53:41 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 2174F18A for ; Sun, 7 Jul 2013 21:53:41 +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 D12DD1829 for ; Sun, 7 Jul 2013 21:53:40 +0000 (UTC) Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 2229A2F29A; Sun, 7 Jul 2013 21:53:33 +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=3la/j6bSMw3ck74triXRMzkePLk=; b=Z6XRZUSVucse6pj0yVZ4noLquWbg SxUgr13QSWYJ+VpQxACOzy1jZEp4S51qM8q42MO9lY7J/PvPCAjJjmEFE5RThfsG 04gYBEwkMMDhWUSb7WP2fAurubUvQl51iLyCG9DUwj3/jqcWShWXVqdXVaFfdCL5 LsSJ1g/+JXhTi3U= 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=vQL2OJ 1NnszonaANyyUyG3InLCIr6FSsC5X8tAgFARCwNaDxkKbc/7wVPJjSRpCiJbzt69 FRepb91z/jDZCSBLiX8ukuq4a12OanRAHh77GND/IWjHm2lyvoSswaA5v0MilS/P E+qN0YmdnegCQAnSjmyKThBamovrG9hglG7uc= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 16FE52F298; Sun, 7 Jul 2013 21:53:33 +0000 (UTC) Received: from bmach.nederware.nl (unknown [27.252.169.66]) by b-sasl-quonix.pobox.com (Postfix) with ESMTPA id 2CAEF2F295; Sun, 7 Jul 2013 21:53:32 +0000 (UTC) Received: from quadrio.nederware.nl (quadrio.nederware.nl [192.168.33.13]) by bmach.nederware.nl (Postfix) with ESMTP id D1CE65C55; Mon, 8 Jul 2013 09:53:24 +1200 (NZST) Received: from quadrio.nederware.nl (quadrio.nederware.nl [127.0.0.1]) by quadrio.nederware.nl (Postfix) with ESMTP id 0A37349FB979; Mon, 8 Jul 2013 09:53:29 +1200 (NZST) Date: Mon, 08 Jul 2013 09:53:28 +1200 Message-ID: <87zjty11gn.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_Mon_Jul__8_09:53:28_2013-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: AA680946-E74F-11E2-A3B9-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: Sun, 07 Jul 2013 21:53:41 -0000 --pgp-sign-Multipart_Mon_Jul__8_09:53:28_2013-1 Content-Type: text/plain; charset=US-ASCII >>>>> "Markus" == Markus Gebert writes: Markus> But taking a zfs snapshot is an atomic operation. Why not Markus> use that? For example: Markus> 1. snapshot the zfs at the same point in time you'd issue Markus> that ioctl on Linux 2. take the EBS snapshot at any time Markus> 3. clone the EBS snapshot to the new/other VM 4. zfs Markus> import the pool there 5. zfs rollback the filesystem to Markus> the snapshot taken in step 1 (or clone it and use that) OK, various tests later: this does not really work. If you create the snapshot, and make a backup, the snapshot does not show up on the backup (whatever the reason, perhaps the disks so inconsistent zfs has to rollback). But the biggest issue is that if writing is going on and you make the EBS snapshot, you can't really mount it. Maybe zfs mounts after hours, but I just gave if it didn't mount it after 1.5 hours. Another interesting thing I've seen was a completely empty drive after mount! So clearly EBS snapshots on a mounted multi-drive pool don't work. -- All the best, Berend de Boer ------------------------------------------------------ Awesome Drupal hosting: https://www.xplainhosting.com/ --pgp-sign-Multipart_Mon_Jul__8_09:53:28_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) iQIcBAABCAAGBQJR2eNYAAoJEKOfeD48G3g5AtwQALGQNz1a6uVaxxBcirEXBfBX ncsPfm/5A8J886KlXSm3sFpUcNXfLZwfN3OZBX723bF1UnehBBPq0C2gMqXgKKW4 9O2dH+4wcv1MnLqbxqM0vDvOIfq3YXlwoGkwSdUSOeLtbSdcQfDWYB9tqLDED02d mwZ01JE+b/MsjbPnSXpV52zxoZrt13rZLRn3wxeESybHnWMUqxnuoNzC+Ww0p+fB 0GlLHheBjTn2JBMkgTQWmdE1JpZy6ghrXAYV2yHix7qxgFi7xll5a+OZcCKqkDlv DHXxKbu12pOVY8XmeJbHFkm8nefQ8IMyOAwnhf0oPqLO8DCDMifx9aG4Oq4v1Ofk fjSG4WqqRNqkh1lBEj2/pm0B7qOp/Vbb96M6D3y4LmEnzw7ff7UTzGKTY81ypHTP 0Dg3qliara1Tn5AyXemUPu2nlPk7/W5phY7aGQc1LK326C7TtPuK7GsgqzSl1AzQ 6esrgxT3kJQY3kfkUm4nxB30XfOB4geWdqXg3qHJcej/EBN9Z+MTXqWBqsi57e1y H5q1hL+pFO4mSVhQ5s5ut+7+viHkVsGLZyp6L6Hf7JKmvjPdMBji9AIwmwGDvuwv O+FAa8pPpzNfvAzYp/h0nvHd4APyjm2HIY5A+MGGWQ9B24jaMEl+RBNiUuSbCJwE mSMWj7b2WJpwuBIV6I+Q =AqdM -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Jul__8_09:53:28_2013-1--