cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Koshevoy <nowa...@gmail.com>
Subject Restoring all cluster from snapshots
Date Mon, 08 Jun 2015 13:22:12 GMT
Hello all.

I need to transfer and start the copy of production cluster in a test environment. My steps:

- nodetool snapshot -t `hostname`-#{cluster_name}-#{timestamp} -p #{jmx_port}
- nodetool ring -p #{jmx_port} | grep `/sbin/ifconfig eth0 | grep 'inet addr' | awk -F: '{print
$2}' | awk '{print $1}'` | awk '{ print $NF }' | tr '\\n' ',' | sudo tee /etc/cassandra/#{cluster_name}.conf/tokens.txt
- rsync snapshots to the backup machine
- copy files to the 2 test servers in the same folders as on production.
- sudo rm -rf /db/cassandra/cr/data0*/system/*
- paste list of initial_token from step 2 to the cassandra.yaml file on each server
- start both test servers.

And instead of gigabytes of my keyspaces I see only:

Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address       Load       Tokens  Owns (effective)  Host ID            
                  Rack
UN  10.40.231.3   151.06 KB  256     100.0%            c505db2f-d14a-4044-949f-cb952ec022f6
 RACK01
UN  10.40.231.31  134.59 KB  256     100.0%            12879849-ade0-4dcb-84c0-abb3db996ba7
 RACK01

And any mentions about my keyspaces here:

[cqlsh 5.0.1 | Cassandra 2.1.3 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh>
cqlsh> describe keyspaces

system_traces  system
cqlsh>

What Do I miss in this process?
Mime
View raw message