incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Manuel Formoso <jform...@gmail.com>
Subject Re: How can I switch from multiple disks to a single disk?
Date Wed, 18 Sep 2013 00:57:58 GMT
Thanks! But, shouldn't I be able to just stop Cassandra, copy the files,
change the config and restart? Why should I drain?

My RF+consistency level can handle one replica down (I forgot to mention
that in my OP, apologies)

Would it work in theory?

On Tuesday, September 17, 2013, Robert Coli wrote:

> On Tue, Sep 17, 2013 at 4:01 PM, Juan Manuel Formoso <jformoso@gmail.com<javascript:_e({},
'cvml', 'jformoso@gmail.com');>
> > wrote:
>
>> Anyone who knows for sure if this would work?
>
>
> Sankalp Kohli (whose last name is phonetically awesome!) has pointed you
> in the correct direction.
>
> To be a bit more explicit :
>
> 1) determine if sstable names are unique across drives (they should be)
> 2) pre-copy all sstables from all source drives to target single drive
> 3) drain and stop cassandra
> 4) re-copy all sstables from all source drives to target single drive,
> with --delete or equivalent option to rsync such that you delete any files
> missing from source drives due to compaction in the interim
> 5) start cassandra with new conf file with single drive
> 6) if it doesn't work for some unforseen reason, you still have all your
> sstables in the old dirs, so just revert the conf file and fail back
>
> =Rob
>
>

-- 
*Juan Manuel Formoso
*Senior Geek
http://twitter.com/juanformoso
http://seniorgeek.com.ar
LLAP

Mime
View raw message