Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 4461 invoked from network); 19 Oct 2009 19:24:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Oct 2009 19:24:00 -0000 Received: (qmail 29219 invoked by uid 500); 19 Oct 2009 19:23:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 29157 invoked by uid 500); 19 Oct 2009 19:23:59 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 29147 invoked by uid 99); 19 Oct 2009 19:23:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 19:23:59 +0000 X-ASF-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.223.184 as permitted sender) Received: from [209.85.223.184] (HELO mail-iw0-f184.google.com) (209.85.223.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 19:23:57 +0000 Received: by iwn14 with SMTP id 14so2468178iwn.13 for ; Mon, 19 Oct 2009 12:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=Ey5At70X4Dw3UEOY+XI4zGu9JT5ns9vNxqbv3OFAYlc=; b=jUvjBqitnnS73+Q0LU4deCkx7TMsIqZNXuW7jmbr+OyYkKZthdS+sD849dmUWbe7UH 2tZeSYx7WiG/MD2ptqCHRrwACwBVajfhF2cvStXNRDS4NgEqEKSI5MDwq1KF0/zrrs4P zNMXvwz/U4lLZ/hgnRKIWaArZQjuS36FrZ7Ds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=gu/A6I+kt4TuysLyygpjdL6xYBuV710wz4bh+AvIfvi2YFk5ZlV3ReTZJUoP62WlWa Awi+mPfImV15MSnysYRKZhTIDTSfnI5WmB7weZyrpqjmwmiu8pK/4BQMukRClrzKVC2M Og1JvS/uzJySKOI8AFgkgsJ0+ugQPJLBy6iOU= MIME-Version: 1.0 Received: by 10.231.5.143 with SMTP id 15mr10448715ibv.40.1255980216223; Mon, 19 Oct 2009 12:23:36 -0700 (PDT) In-Reply-To: <8098243e0910191218p7176c2eflc090a1516a41f5e@mail.gmail.com> References: <8098243e0910191218p7176c2eflc090a1516a41f5e@mail.gmail.com> From: Paul Davis Date: Mon, 19 Oct 2009 15:23:16 -0400 Message-ID: Subject: Re: couch behavior for san snapshots To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Mon, Oct 19, 2009 at 3:18 PM, Alex P wrote: > hello, > > we ran into an issue this weekend where taking a SAN (amazon ebs) snapshot > of a couchdb mount somehow brought over only part of the data. specifically, > there were two small dbs (call them db1 and db2) on the couch instance, each > with several hundred documents. taking the snapshot and bringing it up again > showed both databases, but one had 0 documents and an update sequence of 0. > the instance the snapshot was taken from still has both databases showing > with several hundred databases. we repeated this process several times, with > the same effect, on the same db. > > any thoughts would be much appreciated, as we are about to go live, and not > being able to do a backup of our db is ... disturbing. > > thanks, > alex. > Alex, That's most odd. What happens if you try and cp the database file to a new name? Something like: $ cp /usr/local/var/lib/couchdb/db1.couch /usr/local/var/lib/couchdb/db3.couch Another thing to try would be: $ curl -X POST http://127.0.0.1:5984/db1/_ensure_full_commit And then try to snapshot or copy again. I highly doubt that POST would affect anything, but it might be worth a shot. Paul Davis