Date: Mon, 08 Jul 2013 09:53:28 +1200 From: Berend de Boer <berend@pobox.com> To: Markus Gebert <markus.gebert@hostpoint.ch> Cc: freebsd-fs <freebsd-fs@freebsd.org> Subject: Re: EBS snapshot backups from a FreeBSD zfs file system: zpool freeze? Message-ID: <87zjty11gn.wl%berend@pobox.com> In-Reply-To: <14A2336A-969C-4A13-9EFA-C0C42A12039F@hostpoint.ch> References: <87li5o5tz2.wl%berend@pobox.com> <CA%2BtpaK1jQuKneQsxkVfxJGzXdPdLZfqBM1QWQ0e19nK5t71t1Q@mail.gmail.com> <87ehbg5raq.wl%berend@pobox.com> <20130703055047.GA54853@icarus.home.lan> <6488DECC-2455-4E92-B432-C39490D18484@dragondata.com> <CADBaqmihCB5JP01hLwXTWHoZiJJ5-jkT-Ro=oDwOcKZT_zvEKA@mail.gmail.com> <A5A66641-5EF9-454E-A767-009480EE404E@dragondata.com> <14A2336A-969C-4A13-9EFA-C0C42A12039F@hostpoint.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
--pgp-sign-Multipart_Mon_Jul__8_09:53:28_2013-1 Content-Type: text/plain; charset=US-ASCII >>>>> "Markus" == Markus Gebert <markus.gebert@hostpoint.ch> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87zjty11gn.wl%berend>