Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 69499 invoked from network); 20 Oct 2009 03:36:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 03:36:16 -0000 Received: (qmail 38033 invoked by uid 500); 20 Oct 2009 03:36:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 37907 invoked by uid 500); 20 Oct 2009 03:36:15 -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 37897 invoked by uid 99); 20 Oct 2009 03:36:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 03:36:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dusty.doris@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-yx0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 03:36:03 +0000 Received: by yxe6 with SMTP id 6so2928280yxe.13 for ; Mon, 19 Oct 2009 20:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=iiEeE2GSDy+ANPQ5spd9yK3aVytGLoTyYeFCUHbVBfg=; b=LpulgqN/iOTa6zOIMS821N4aZZpFJt21ViyWT/311RN5oMWRiXdEpxlWzVX2mNX4C/ O+KW+fUW0ARYtelq/nLdiSkPeGqxs0iex6iGLLaboreCjStqcsp5pnAtWE4KmmHHPQgh H9YO8BvsytNK1gDbPsKCkx6HcD2pvgMyLznCg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=dXBibFpOf8qvFJbGe85JlnYj9b5oIqEEH7RGla70y2pG43rvwog6uSHOvm7AxSEPoz b2QZr3l1BLF26Gedr6ii6oqXDY3cX/zZAcDjnXYYChhCG6PYga+g6cMQxYfclZqXXVLz FsnQ7qZxtI1O9VCmtU34kOK2S6Po5rHCOgvbI= MIME-Version: 1.0 Sender: dusty.doris@gmail.com Received: by 10.151.29.20 with SMTP id g20mr9583560ybj.189.1256009742509; Mon, 19 Oct 2009 20:35:42 -0700 (PDT) In-Reply-To: <8098243e0910191437k6c780990m19f4a3b8d1134e8d@mail.gmail.com> References: <8098243e0910191218p7176c2eflc090a1516a41f5e@mail.gmail.com> <8098243e0910191235g6329ae36p48d1e4a4cd217530@mail.gmail.com> <8098243e0910191253m1977fc75q4433305b6f09f0e9@mail.gmail.com> <6cfccb3d0910191432v41f9cd34g7ca89fac9f4a3ec0@mail.gmail.com> <8098243e0910191437k6c780990m19f4a3b8d1134e8d@mail.gmail.com> Date: Mon, 19 Oct 2009 23:35:42 -0400 X-Google-Sender-Auth: 5ac2c0d2bb5bb706 Message-ID: Subject: Re: couch behavior for san snapshots From: Dusty Doris To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Oct 19, 2009 at 5:37 PM, Alex P wrote: > thanks! i'll definitely look into that. If your are using ext3 I can also help you with that. You need to use LVM2 to create volumes and then you can do something like $ dmsetup suspend /dev/ebs/couchvol0 $ ebs_snapshot $ dmsetup resume /dev/ebs/couchvol0 If you'd like more info on that let me know and I'll add some more details. > > On Mon, Oct 19, 2009 at 4:32 PM, Glenn Rempe wrote: > >> Not sure if this will help at all, but I am also using EBS to store a la= rge >> cdb DB. >> It is recommended that the filesystem that you want to snapshot on EBS i= s >> frozen (or unmounted) if that is possible to help ensure a coherent EBS >> snapshot. >> >> For example, on my mysql and couchdb volumes I use the XFS filesystem wh= ich >> has an XFS freeze command which I use to temporarily lock the FS and flu= sh >> it to disk, and then request the snapshot. =A0You can do this in a scrip= t and >> it takes only a few seconds of disk downtime. =A0I believe writes are ca= ched >> during this period. =A0I have been using this with mysql but have not ye= t set >> it up for my couchdb volume. >> >> See : >> >> >> http://developer.amazonwebservices.com/connect/entry.jspa?categoryID=3D1= 00&externalID=3D1663 >> http://alestic.com/2009/09/ec2-consistent-snapshot >> >> HTH >> >> On Mon, Oct 19, 2009 at 1:55 PM, Chris Anderson wrot= e: >> >> > On Mon, Oct 19, 2009 at 12:53 PM, Alex P wrote: >> > > a simple copy seems to work just fine. db shows up with the right se= q >> > number >> > > etc. >> > >> > cool. totally wanna learn about the SAN roundtrip. :) >> > >> > > >> > > On Mon, Oct 19, 2009 at 2:37 PM, Paul Davis < >> paul.joseph.davis@gmail.com >> > >wrote: >> > > >> > >> On Mon, Oct 19, 2009 at 3:35 PM, Alex P wrote= : >> > >> > cdb catalogs databases purely on file name and presence in the >> > >> appropriate >> > >> > directory, right? so if i copy db1 to db1_copy, i should see >> db1_copy >> > >> show >> > >> > up in futon? >> > >> >> > >> Yepper. Make sure the permissions are correct after copying though. >> > >> >> > >> Paul Davis >> > >> >> > > >> > >> > >> > >> > -- >> > Chris Anderson >> > http://jchrisa.net >> > http://couch.io >> > >> >> >> >> -- >> Glenn Rempe >> >> email =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 : glenn@rempe.us >> voice =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 : (415) 894-5366 or (415)-89G-LENN >> twitter =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: @grempe >> contact info =A0 =A0 =A0 =A0: http://www.rempe.us/contact.html >> pgp =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: http://www.rempe.us/gnupg.t= xt >> >