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 7873B10970 for ; Tue, 12 Nov 2013 05:45:42 +0000 (UTC) Received: (qmail 28183 invoked by uid 500); 12 Nov 2013 05:45:39 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 27908 invoked by uid 500); 12 Nov 2013 05:45:38 -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 27893 invoked by uid 99); 12 Nov 2013 05:45:37 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 05:45:37 +0000 Received: from localhost (HELO mail-we0-f175.google.com) (127.0.0.1) (smtp-auth username phunt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 05:45:37 +0000 Received: by mail-we0-f175.google.com with SMTP id t60so155915wes.34 for ; Mon, 11 Nov 2013 21:45:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Ip0vaw5hRf45HbybN0W7WocxJDh026L/xD1oRydRQYY=; b=eU3qODpohhjm6jUCh7eayFcSm4oPsKBRCKkT7XseSCnJDNLL/3OTRU2XsuwkChPfzh +2OslMDwKcFG19E6JfMarGMbMJdiMoaLu2GVbUpD7LZmzeqm9t/n9kKn1cN1lkuaNQK3 TMiXPNvT7CL2UqzFpKOOIPLJyNVCMnXHmX+A0PzbzV2E0ChJaolV9MhcMGsEIPvqgzLt ymg2ZqoWBmSkVOchsIoZjeufRhbAgA0br580OXr/b04FxTIMCbgkjt6gSZSondUZTU9r onhw3JriN/BFSDhmjniKUrjirgWt6qqlSbYcX0bHa36V7lELwjeKa9N/+/pBy2Qe/tka gwkA== X-Received: by 10.180.99.99 with SMTP id ep3mr14873661wib.11.1384235135946; Mon, 11 Nov 2013 21:45:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.152.193 with HTTP; Mon, 11 Nov 2013 21:45:15 -0800 (PST) In-Reply-To: <1383924658938-7579282.post@n2.nabble.com> References: <1383924658938-7579282.post@n2.nabble.com> From: Patrick Hunt Date: Mon, 11 Nov 2013 21:45:15 -0800 Message-ID: Subject: Re: Manually replicating ZK To: UserZooKeeper Cc: zookeeper-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 That should work. Make sure you update the myid file appropriately. Easier though you might just add the two new servers with consistent configuration across all three. First start the original server, then start 1 of the new servers, wait for it to form a quorum with server 1, then start server 3. No need to copy the datadirs. Patrick On Fri, Nov 8, 2013 at 7:30 AM, michael.boom wrote: > Hi! > > I have a ZK instance running on a machine and would like to increase this to > instances o 3 different machines. > > Would it be possible to simply copy the dataDir of the currently running > instance on the 2 new machines, update the configuration for all three > instances (adding the hosts&ports of all ) and then restarting all 3 ZK > instances? > > Would this work? > > > > -- > View this message in context: http://zookeeper-user.578899.n2.nabble.com/Manually-replicating-ZK-tp7579282.html > Sent from the zookeeper-user mailing list archive at Nabble.com.