Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68A7D10A2D for ; Wed, 8 Jan 2014 10:04:47 +0000 (UTC) Received: (qmail 13090 invoked by uid 500); 8 Jan 2014 10:00:15 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 13045 invoked by uid 500); 8 Jan 2014 10:00:03 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 13027 invoked by uid 99); 8 Jan 2014 10:00:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 10:00:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sylvain@datastax.com designates 209.85.160.46 as permitted sender) Received: from [209.85.160.46] (HELO mail-pb0-f46.google.com) (209.85.160.46) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jan 2014 09:59:55 +0000 Received: by mail-pb0-f46.google.com with SMTP id md12so1372088pbc.19 for ; Wed, 08 Jan 2014 01:59:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OYw5d9VgQipFRt36C/0MmK410xDvaI7qUbMcUqJqp6U=; b=FcFZVri+jEzkrNksh5RIKuSdBom08H18dWSoLMvVSyMwroCSyY5D5H96BKMC12vfYw qAFVBjzidiLHzdUngALaGPlJmwdz4WVY5n+OYFBmNunmJTotx79+LPgvrjqnTPAms3QS +Di4oXObA5wBWyMxsFjapL16LV66Wd4JNesaez1b3/TxcmOk3AXSITLu1Md6SW/NKeGG yzkYvX6dri4OSys2DFPoaE57agnmhad8G3qYL3Qfd87EvFj7Qg0cp1CvnIEzycsQyGua ur+qzU8VBFUKQfJ9Xht42SIrW9WMMV4MAuEc/OJiEIn2Blch/0n+2VKjdw34+ZVTTjX6 EOFw== X-Gm-Message-State: ALoCoQmsTwKpLfuE9t9n/+EXkP+aKDI3j3is5ZJbph4vXfkC8cCBOKM9gyHlHiI/XBPm+wIoOg+c MIME-Version: 1.0 X-Received: by 10.66.145.166 with SMTP id sv6mr11725365pab.31.1389175166358; Wed, 08 Jan 2014 01:59:26 -0800 (PST) Received: by 10.68.48.226 with HTTP; Wed, 8 Jan 2014 01:59:26 -0800 (PST) In-Reply-To: References: Date: Wed, 8 Jan 2014 10:59:26 +0100 Message-ID: Subject: Re: Keyspaces on different volumes From: Sylvain Lebresne To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=047d7b6783f652714c04ef728c73 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6783f652714c04ef728c73 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I don't think Cassandra will complain if the cassandra/data/ directory exists when you create , so you can just create your symlinks first and move on. Don't have to do the start C*, create keyspace, stop C*, move directory dance. Other than that, I would probably just directly mount my volumes into the cassandra/data/ directories directly instead of using symlinks, but if you're probably fine with symlinks if you really prefer. -- Sylvain On Tue, Jan 7, 2014 at 4:05 PM, Robert Wille wrote: > The obvious (but painful) way to do that would be to create the keyspace, > and then repeat the following for each node: shut down the node, move > cassandra/data/ to the other volume, create a symlink in its > place, restart the node. > > Is there a better way? > > Robert > > From: Tupshin Harper > Reply-To: > Date: Tuesday, January 7, 2014 at 6:07 AM > To: > Subject: Re: Keyspaces on different volumes > > That is a fine option and can make perfect sense if you have keyspaces > with very different runtime characteristics. > > -Tupshin > On Jan 7, 2014 7:30 AM, "Robert Wille" wrote: > >> I=92d like to have my keyspaces on different volumes, so that some can b= e >> on SSD and others on spinning disk. Is such a thing possible or advisabl= e? >> > --047d7b6783f652714c04ef728c73 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
I don't think Cassandra will complain if the cassandra= /data/<keyspace> directory exists when you create <keyspace>, s= o you can just create your symlinks first and move on. Don't have to do= the start C*, create keyspace, stop C*, move directory dance.

Other than that, I would probably just directly mount my vol= umes into the cassandra/data/<keyspace> directories directly instead = of using symlinks, but if you're probably fine with symlinks if you rea= lly prefer.

--
Sylvain=A0




On Tue, Jan 7, 2014 at 4:05 PM, Robert Wille <rwille= @fold3.com> wrote:
The obvious (but painful) way to= do that would be to create the keyspace, and then repeat the following for= each node: shut down the node, move cassandra/data/<keyspace> to the= other volume, create a symlink in its place, restart the node.

Is there a better way?


--047d7b6783f652714c04ef728c73--