
6.
Navigate to the
/opt/sdn/cassandra/bin
directory and enter the following command:
/opt/sdn/cassandra/bin#
./nodetool status
7.
Copy the Host ID of the Cassandra instance that has a state of
DN
in the output of the
command you entered in the previous step. For example, the last entry in the following output
is the Cassandra instance for the controller that was stopped:
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Addres
Load
Tokens Owns
(effective) Host ID
Rack
UN 192.0.2.142
1.23 GB
1
100.0%
4245b8ab-6c3c-4755-bb28-90850d3a4a24
rack1
UN 192.0.2.140
1.23 GB
1
100.0%
c172bbe2-799c-4adf-bd38-690dfa75ac79
rack1
DN 192.0.2.141
310.11 MB
1
100.0%
26999328-abec-4d80-a689-eb8b1f7f89d1
rack1
8.
Remove the Cassandra instance from the cluster by entering the
./nodetool removenode
HostID
command, where
HostID
is the identifier of the Cassandra instance to remove.
For example:
/opt/sdn/cassandra/bin#
./nodetool removenode
26999328-abec-4d80-a689-eb8b1f7f89d1
9.
Log out of the server.
/opt/sdn/cassandra/bin#
exit
10. From the Linux prompt of the server for the controller you stopped, delete the Cassandra
data:
/opt/sdn/cassandra/data#
rm -rf *
/opt/sdn/cassandra/commitlog#
rm *
/opt/sdn/cassandra/saved_caches#
rm *
11. Restart the controller and Cassandra database, then log out of the server:
/opt/sdn/cassandra/bin#
service sdnc start
/opt/sdn/cassandra/bin#
exit
166
Troubleshooting