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 C9938F16C for ; Wed, 29 May 2013 15:30:09 +0000 (UTC) Received: (qmail 31554 invoked by uid 500); 29 May 2013 15:30:09 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 31292 invoked by uid 500); 29 May 2013 15:30:08 -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 31267 invoked by uid 99); 29 May 2013 15:30:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 15:30:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of g.kishore@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 15:30:03 +0000 Received: by mail-wi0-f173.google.com with SMTP id hi5so3660400wib.6 for ; Wed, 29 May 2013 08:29:42 -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=CJAHAIoBYvA9REatjZdbHtadrLXn+9/17aHKFMt5TEY=; b=m4z0Bl0IljlBuvICS0qvhi/EJ5uljyRXPaWDSyu6rTYi2fDdtNZkJHpFqU0hWyH0S8 9iMkvwsVQ417NeH1JUbpFWk3ZQagq43YeNecqAHE4XWk0Q6KSpOVYgT+GOvKAc1+Gcdj MEw6RsWNkEILW42xaPxJ58MXUIhdLtwmuUE8eTuj03rYV6nc4owYm+GosCEeYxQ9IWyl pNJM7EUBSCxR3PnhvOluZHo7Ma8szpOyVF7MZdkaTB4PegasAPVpZkl+q0kjiIOuCkkP oHDfCX5nu8eKj8QksBkANfMVnuNiXIMsdpJZnXrqAAq24+tsTrKklnpoBm7Hy4WE/r/i IGig== MIME-Version: 1.0 X-Received: by 10.194.110.133 with SMTP id ia5mr1892956wjb.35.1369841382086; Wed, 29 May 2013 08:29:42 -0700 (PDT) Received: by 10.194.5.104 with HTTP; Wed, 29 May 2013 08:29:42 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 May 2013 08:29:42 -0700 Message-ID: Subject: Re: safely upgrade single instance to ensemble From: kishore g To: "user@zookeeper.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Are you ok with shutting down zookeeper and clients ? If yes, then 1. shutdown existing zookeeper 2. copy zookeeper data and translog directory new locations 3. change the zoo.config on each server to include all 3 servers. see (http://zookeeper.apache.org/doc/r3.2.2/zookeeperStarted.html#sc_RunningReplicatedZooKeeper) Start the servers, change your clients to use all zk1:port1,zk2:port2,zk3:port3 in the connect string. thanks, Kishore G On Wed, May 29, 2013 at 2:54 AM, Kuba Lekstan wrote: > Nothing bad should happen as long as you start your current ZK instance > before other. > > BTW: Before doing the change in production environment do some tests. > > > 2013/5/29 Nathaniel Domingo > >> not existing cluster. zookeeper operating in standalone mode. i need to >> convert it into a cluster for redundancy. >> >> >> On Wed, May 29, 2013 at 4:34 PM, Kuba Lekstan wrote: >> >> > Hello, >> > >> > If you want to just add one ZK node to existing cluster the easier and >> > safest way would be to do a rolling restart. >> > >> > Kuba. >> > >> > >> > 2013/5/29 Nathaniel Domingo >> > >> > > Hi, >> > > >> > > What do you think is the safest way of upgrading a single instance >> > > zookeeper to an ensemble? The goal is not to loose any data. >> > > >> > > Regards, >> > > Nathaniel >> > > >> > >>