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.
On Fri, Nov 8, 2013 at 7:30 AM, michael.boom <[EMAIL PROTECTED]> wrote:
> 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
> 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.