You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Casey Deccio <ca...@deccio.net> on 2011/03/22 19:53:16 UTC
change node IP address
What is the process of changing the IP address for a node in a cluster?
Casey
Re: change node IP address
Posted by ruslan usifov <ru...@gmail.com>.
2011/3/23 aaron morton <aa...@thelastpickle.com>
> Which version are you using ?
>
> It looks like using 0.7X (and prob 0.6) versions you can just shutdown the
> node and bring it back up with the new IP and It Just Works
> https://issues.apache.org/jira/browse/CASSANDRA-872
>
>
>
So to replace one machine on another, there is enough simply copy cassandra
data directory to the machine, set on that machine token from previous, and
thats all?
Re: change node IP address
Posted by Jonathan Ellis <jb...@gmail.com>.
We support changing IPs to _new_ IPs but I'd be surprised if it can
handle changing it to the IP of another node. I'd try using a 3rd
"temporary" IP if I wanted to swap two.
On Wed, Mar 23, 2011 at 6:18 PM, aaron morton <aa...@thelastpickle.com> wrote:
> Can any of the dev's jump in here ? Whats best practice ?
> Aaron
> On 24 Mar 2011, at 08:32, Casey Deccio wrote:
>
> Hi Aaron,
>
> I'm using 7.3 (upgrading to 7.4). Basically I needed to swap the IPs of two
> of my nodes. Unfortunately, after I did so, neither was accessible in the
> original ring anymore. I saw the warning message in the logs about the
> token being reassigned. Maybe I didn't give it enough time, but
> accessibility faltered, so I reverted the IPs of the nodes, decommissioned
> them each, swapped their IPs again, then brought them back into the ring one
> at a time. That seemed to work. I admit that I'm still quite a novice when
> it comes to cassandra's workings, and since my system was unresponsive for a
> time, my goal was bringing it back up, and I didn't dive into extensive
> analysis.
>
> Casey
>
> On Wed, Mar 23, 2011 at 2:16 AM, aaron morton <aa...@thelastpickle.com>
> wrote:
>>
>> Which version are you using ?
>> It looks like using 0.7X (and prob 0.6) versions you can just shutdown the
>> node and bring it back up with the new IP and It Just
>> Works https://issues.apache.org/jira/browse/CASSANDRA-872
>> I've not done it before, anyone else ?
>> Aaron
>> On 23 Mar 2011, at 07:53, Casey Deccio wrote:
>>
>> What is the process of changing the IP address for a node in a cluster?
>>
>> Casey
>>
>
>
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com
Re: change node IP address
Posted by aaron morton <aa...@thelastpickle.com>.
Can any of the dev's jump in here ? Whats best practice ?
Aaron
On 24 Mar 2011, at 08:32, Casey Deccio wrote:
> Hi Aaron,
>
> I'm using 7.3 (upgrading to 7.4). Basically I needed to swap the IPs of two of my nodes. Unfortunately, after I did so, neither was accessible in the original ring anymore. I saw the warning message in the logs about the token being reassigned. Maybe I didn't give it enough time, but accessibility faltered, so I reverted the IPs of the nodes, decommissioned them each, swapped their IPs again, then brought them back into the ring one at a time. That seemed to work. I admit that I'm still quite a novice when it comes to cassandra's workings, and since my system was unresponsive for a time, my goal was bringing it back up, and I didn't dive into extensive analysis.
>
> Casey
>
> On Wed, Mar 23, 2011 at 2:16 AM, aaron morton <aa...@thelastpickle.com> wrote:
> Which version are you using ?
>
> It looks like using 0.7X (and prob 0.6) versions you can just shutdown the node and bring it back up with the new IP and It Just Works https://issues.apache.org/jira/browse/CASSANDRA-872
>
> I've not done it before, anyone else ?
>
> Aaron
>
> On 23 Mar 2011, at 07:53, Casey Deccio wrote:
>
>> What is the process of changing the IP address for a node in a cluster?
>>
>> Casey
>
>
Re: change node IP address
Posted by Casey Deccio <ca...@deccio.net>.
Hi Aaron,
I'm using 7.3 (upgrading to 7.4). Basically I needed to swap the IPs of two
of my nodes. Unfortunately, after I did so, neither was accessible in the
original ring anymore. I saw the warning message in the logs about the
token being reassigned. Maybe I didn't give it enough time, but
accessibility faltered, so I reverted the IPs of the nodes, decommissioned
them each, swapped their IPs again, then brought them back into the ring one
at a time. That seemed to work. I admit that I'm still quite a novice when
it comes to cassandra's workings, and since my system was unresponsive for a
time, my goal was bringing it back up, and I didn't dive into extensive
analysis.
Casey
On Wed, Mar 23, 2011 at 2:16 AM, aaron morton <aa...@thelastpickle.com>wrote:
> Which version are you using ?
>
> It looks like using 0.7X (and prob 0.6) versions you can just shutdown the
> node and bring it back up with the new IP and It Just Works
> https://issues.apache.org/jira/browse/CASSANDRA-872
>
> I've not done it before, anyone else ?
>
> Aaron
>
> On 23 Mar 2011, at 07:53, Casey Deccio wrote:
>
> What is the process of changing the IP address for a node in a cluster?
>
> Casey
>
>
>
Re: change node IP address
Posted by aaron morton <aa...@thelastpickle.com>.
Which version are you using ?
It looks like using 0.7X (and prob 0.6) versions you can just shutdown the node and bring it back up with the new IP and It Just Works https://issues.apache.org/jira/browse/CASSANDRA-872
I've not done it before, anyone else ?
Aaron
On 23 Mar 2011, at 07:53, Casey Deccio wrote:
> What is the process of changing the IP address for a node in a cluster?
>
> Casey