Re: Restoring all cluster from snapshots

2015-06-09 Thread Anton Koshevoy
Ok, new sequence: …. - rm -rf /db/cassandra/cr/data0*/system/* - /etc/init.d/cassandra start - cqlsh -f schema(here is the schema for cr_production keyspace only) - /etc/init.d/cassandra restart I see the new keyspace, but it’s empty: cqlsh> describe keyspaces; system_traces  cr_production  syst

Re: Restoring all cluster from snapshots

2015-06-08 Thread Anton Koshevoy
June 8, 2015 at 9:48:30 PM, Robert Coli (rc...@eventbrite.com) wrote: On Mon, Jun 8, 2015 at 6:22 AM, Anton Koshevoy wrote: - sudo rm -rf /db/cassandra/cr/data0*/system/* This removes the schema. You can't load SSTables for column families which don't exist.   =Rob

Restoring all cluster from snapshots

2015-06-08 Thread Anton Koshevoy
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 '{prin