Re: Change IP address (on 3.11.14)
On 2022-12-06 14:21, Gábor Auth wrote: No! Just start it and the other nodes in the cluster will acknowledge the new IP, they recognize the node by id, stored in the data folder of the node. Thanks Gábor and Erick! It worked flawlessly. -- Lapo Luchini l...@lapo.it
Re: Change IP address (on 3.11.14)
Hi, On Tue, Dec 6, 2022 at 12:41 PM Lapo Luchini wrote: > I'm trying to change IP address of an existing live node (possibly > without deleting data and streaming terabytes all over again) following > these steps: https://stackoverflow.com/a/57455035/166524 > 1. echo 'auto_bootstrap: false' >> cassandra.yaml > 2. add "-Dcassandra.replace_address=oldAddress" in cassandra-env.sh > 3. restart node > As I know, you need to change the IP address like this only, when the node data vanished and need to tell the cluster the replaced IP of the vanished node. Or should I delete all the DB on disk and bootstrap from scratch? > No! Just start it and the other nodes in the cluster will acknowledge the new IP, they recognize the node by id, stored in the data folder of the node. -- Bye, Auth Gábor (https://iotguru.cloud)
Re: Change IP address (on 3.11.14)
If (a) the node is part of the cluster, and (b) is running and operational, then (c) the cluster will recognise that the node has a new IP when you restart the node and there's nothing to do on the C* side. A new IP will be handled by C* automatically. Think of situations where a node experiences a hardware failure and you move the data disk to a new server which has a new IP. When you start C* on that node, it will be recognised as an existing node and that's normal. Cheers!
Change IP address (on 3.11.14)
Hi all, I'm trying to change IP address of an existing live node (possibly without deleting data and streaming terabytes all over again) following these steps: https://stackoverflow.com/a/57455035/166524 1. echo 'auto_bootstrap: false' >> cassandra.yaml 2. add "-Dcassandra.replace_address=oldAddress" in cassandra-env.sh 3. restart node But I get this error: Cannot replace address with a node that is already bootstrapped So I guess that answer is outdated for 3.11. (or was always wrong, given it is from 2019?) Is there a way to do it? Or should I delete all the DB on disk and bootstrap from scratch? thanks, -- Lapo Luchini l...@lapo.it