Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 7F923181A8 for ; Thu, 9 Jul 2015 16:20:18 +0000 (UTC) Received: (qmail 29709 invoked by uid 500); 9 Jul 2015 16:20:17 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 29670 invoked by uid 500); 9 Jul 2015 16:20:17 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 29657 invoked by uid 99); 9 Jul 2015 16:20:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 16:20:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of crackshotmule@gmail.com designates 209.85.218.44 as permitted sender) Received: from [209.85.218.44] (HELO mail-oi0-f44.google.com) (209.85.218.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 16:18:02 +0000 Received: by oihr66 with SMTP id r66so136970035oih.2 for ; Thu, 09 Jul 2015 09:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2jNCUnDIfBc79P4z7/K8BLXMJ2VbY6wM27OoxPaFBlk=; b=uRuXkewFAoBpJNmUENRkFndEo70DsZ+7+2EHJtK20gcHGZNnt+LNb1ZgPQn3DIhLcG Cf57OLsE5nANQrqZo2+dhYnvyGPI25JrlCbI4K0yI25Y5+Kxs3IVdtnqraFh1finTIuw GlureE1JvR5gUNiLHnXHtJF7aQeEEfiVCiDvmotmgi936a3PFuDEIRcOyDFW6X/27mwP 1evRDv7csvI2Yoc1Rjncg7zMgzxiP5fqkB202QSfvHJfdNNlvM3ysxNzGq84USjpurWG zHQ0YlMd/jUeCjSQ6CFslV3YjYfOrev1I1p8+WLA4M48ZbqLTOE5EWadDT9XghtJQIP2 vYtw== MIME-Version: 1.0 X-Received: by 10.60.45.207 with SMTP id p15mr15083494oem.34.1436458789936; Thu, 09 Jul 2015 09:19:49 -0700 (PDT) Received: by 10.202.69.67 with HTTP; Thu, 9 Jul 2015 09:19:49 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Jul 2015 09:19:49 -0700 Message-ID: Subject: Re: procedure to restore from snapshot From: Dillian Murphey To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a11c20908e8a63a051a739f02 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c20908e8a63a051a739f02 Content-Type: text/plain; charset=UTF-8 Thank you, Ivan. I appreciate it. Cheers On Tue, Jul 7, 2015 at 1:05 AM, Ivan Kelly wrote: > The snapshot with the highest number at the end is the latest. > > -Ivan > > On Mon, Jul 6, 2015 at 11:59 PM Dillian Murphey > wrote: > > > Thanks for the comment, Ivan. > > > > Which files are the "current" log files and which snapshot is the latest? > > > > -rw-r--r-- 1 root root 296 Feb 2 19:09 snapshot.0 > > -rw-r--r-- 1 root root 67108880 Jul 6 17:37 log.1 > > -rw-r--r-- 1 root root 320 Jul 6 17:42 snapshot.200000000 > > -rw-r--r-- 1 root root 320 Jul 6 17:42 snapshot.400000000 > > -rw-r--r-- 1 root root 67108880 Jul 6 17:42 log.400000001 > > -rw-r--r-- 1 root root 1 Jul 6 17:42 acceptedEpoch > > -rw-r--r-- 1 root root 332 Jul 6 17:42 snapshot.400000001 > > -rw-r--r-- 1 root root 1 Jul 6 17:42 currentEpoch > > -rw-r--r-- 1 root root 67108880 Jul 6 21:56 log.500000001 > > > > > > > > On Mon, Jul 6, 2015 at 12:02 PM, Ivan Kelly wrote: > > > > > First, backup all your data. Then it should be a matter of copying the > > > snapshot you want to restore to all the nodes, and putting just that in > > the > > > datadir. Also move all other snapshots and logs out of the way. That > > should > > > be it. (I haven't tried this though). > > > > > > -Ivan > > > > > > On Mon, Jul 6, 2015 at 8:24 PM Dillian Murphey < > crackshotmule@gmail.com> > > > wrote: > > > > > > > This has probably been asked a hundred times but all my google > > searching > > > > shows nothing. Is there a reason for that? > > > > > > > > What is the procedure to restore a zookeeper node from it's > snapshots? > > > > > > > > > > --001a11c20908e8a63a051a739f02--