Currently commitlog directory is pointing to Directory1. I want to change it different directory D2. How should the migration be ?
This is how we did it. We have a load-balanced client that talks to Cassandra 1.1.2, and each client lives on each Cassandra node.
systemctl stop <your service name>
iostat 2
- Disk activity should be near zeronodetool gossipinfo
nodetool disablegossip
nodetool flush
nodetool drain
systemctl stop cassandra
vi /etc/cassandra/default.conf/cassandra.yaml
systemctl start cassandra
tail -F /var/log/cassandra/system.log
nodetool ring
systemctl start <your service here>
Note that there was no need for us to do manual copying of the commitlog files themselves. Flushing and draining took care of that. The files then slowly reappeared in the new commitlog_dir
location.