Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D79374D74 for ; Thu, 23 Jun 2011 15:55:10 +0000 (UTC) Received: (qmail 7882 invoked by uid 500); 23 Jun 2011 15:55:07 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 7839 invoked by uid 500); 23 Jun 2011 15:55:07 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 7808 invoked by uid 99); 23 Jun 2011 15:55:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 15:55:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 15:54:59 +0000 Received: by vxi40 with SMTP id 40so1993405vxi.31 for ; Thu, 23 Jun 2011 08:54:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.27.199 with SMTP id v7mr1452491vdg.206.1308844476117; Thu, 23 Jun 2011 08:54:36 -0700 (PDT) Sender: scode@scode.org Received: by 10.52.159.163 with HTTP; Thu, 23 Jun 2011 08:54:36 -0700 (PDT) X-Originating-IP: [213.114.157.154] In-Reply-To: References: <5306E6F7-3429-41A9-AEB4-0DBE45F07638@gmail.com> Date: Thu, 23 Jun 2011 17:54:36 +0200 X-Google-Sender-Auth: 7z4HbkNA1uKb39Z-zyc-QxapJFo Message-ID: Subject: Re: Backup/Restore: Coordinating Cassandra Nodetool Snapshots with Amazon EBS Snapshots? From: Peter Schuller To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Actually, I'm afraid that's not true (unless I'm missing something). Even= if > you have only 1 drive, you still need to stop writes to the disk for the > short time it takes the low level "drivers" to snapshot it (i.e., marking > all blocks as clean so you can do CopyOnWrite later). I.e., you need to g= ive > a chance to LVM, or the EBS low level 'modules' in the hypervisor ( whate= ver > you use underneath...), to have exclusive control of the drive for a mome= nt. > Now, that being said, some systems (like LVM)=C2=A0 will do a freeze them= selves, > so technically speaking you don't need to explicitly do a freeze > yourself...but that's not to say that a freeze is not required for > snapshotting. This doesn't make sense unless you can provide some specific reason why this would be required. If a file system is crash-consistent, relying on write barriers to work, and given that the setup (kernel, mounts opts, device driver etc) is such that write barriers are not broken, it is directly implied that a consistent snapshot of the under lying device is equivalent to a sudden halt (power off, sudden reboot, etc). If taking an atomic snapshot of the device on which a file system is located on, assuming the file system is designed to be crash consistent, it *has* to result in a consistent snapshot. Anything else would directly violate the claim that the file system is crash consistent, making the premise false. --=20 / Peter Schuller