helvar
helvar

Reputation: 133

Riak does not allow to remove a node

I added the node to the cluster. Appear on the node there is a problem. Node remains in the status of 'joining'. No data on the cluster.

#riak-admin member-status
================================= Membership ==================================
Status     Ring    Pending    Node
-------------------------------------------------------------------------------
down        0.0%      --      '[email protected]'
joining     0.0%      --      '[email protected]'
valid      50.0%      --      '[email protected]'
valid      50.0%      --      '[email protected]'

I'm trying to remove a node from the cluster

#riak-admin cluster force-remove '[email protected]'
Failed: '[email protected]' is not a member of the cluster.

I'm trying to join the node to the cluster

#riak-admin cluster join '[email protected]'
Failed: This node is already a member of a cluster

How do I remove a node from the cluster, or to compel it to work normally? Version 1.4.9

Upvotes: 0

Views: 889

Answers (2)

Shahzad Hussain
Shahzad Hussain

Reputation: 57

You can remove node having node name [email protected]

by just down the node 172.17.0.144 and by commnd force remove riak-admin force-remove [email protected] from other running node you can remove the node successfully.

Upvotes: 0

Zuzana
Zuzana

Reputation: 132

I have not used your command for removing the node from cluster but one recommended in the documentation : riak documentation The command is this riak-admin cluster leave, riak-admin cluster plan, riak-admin cluster commit and it worked perfectly. If you don't need to use force-remove to remove node I recommend this one. The same works for joining with riak-admin cluster join instead of leave

Upvotes: 1

Related Questions