Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 86482 invoked from network); 30 Mar 2011 07:30:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2011 07:30:32 -0000 Received: (qmail 62971 invoked by uid 500); 30 Mar 2011 07:30:29 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 62944 invoked by uid 500); 30 Mar 2011 07:30:29 -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 62936 invoked by uid 99); 30 Mar 2011 07:30:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 07:30:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of karl@hiramoto.org designates 208.97.132.145 as permitted sender) Received: from [208.97.132.145] (HELO homiemail-a74.g.dreamhost.com) (208.97.132.145) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 07:30:22 +0000 Received: from homiemail-a74.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a74.g.dreamhost.com (Postfix) with ESMTP id 87AB167C06B for ; Wed, 30 Mar 2011 00:29:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=hiramoto.org; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=hiramoto.org; b=A8M1Niy9Z0SsMS2bAfPPrzAdbcEVmu2lyQdSHTt3nhO8do1hQ3blQ0EIRzeT3 7FKy7B4BU6YtTW6r7/V6wSK/bATi83ynh+qMfEsJ8Npl49ZvCLoOjZmhhxrcleMY r5QCcIw1RcTFNdBQSuwqzkwAzzLG7CWnZFJL/AYI09AWRk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=hiramoto.org; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=hiramoto.org; bh=qaoT TB0J3dUizGSN62WU6etWBNQ=; b=bWVOVdUk85/6wMPtnMKNxJqdB0GZUIk29sXK Qa0++4aLf6CWargcRX8juwaOSo1rIT98jJKxy7LVvioEICgbHyfFLxym6s2v6fZ8 G9bRo3zRg0Iu6+X6hzwCoKjBnt1BlAEEHjnKNX53oSnjN1GanAEAL5vsk6z4knft OG2xmwA= Received: from [192.168.69.3] (186.red-80-29-38.adsl.static.ccgg.telefonica.net [80.29.38.186]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: karl@hiramoto.org) by homiemail-a74.g.dreamhost.com (Postfix) with ESMTPSA id B84F967C069 for ; Wed, 30 Mar 2011 00:29:58 -0700 (PDT) Message-ID: <4D92DBEF.2050105@hiramoto.org> Date: Wed, 30 Mar 2011 09:29:51 +0200 From: Karl Hiramoto User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110315 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: How to determine if repair need to be run References: <1301420212192-6220171.post@n2.nabble.com> <1301421070734-6220228.post@n2.nabble.com> <1301424132945-6220423.post@n2.nabble.com> <1301428784487-6220683.post@n2.nabble.com> <1301434571427-6221041.post@n2.nabble.com> <1301436482271-6221157.post@n2.nabble.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 03/30/11 00:31, Peter Schuller wrote: > > set -e # important > touch /path/to/flagfile.tmp > nodetool -h localhost repair > mv /path/to/flagfile.tmp /path/to/flagfile > Note this script doesn't work if your repair takes hours, and in the middle of the repair cassandra was restarted, nodetool will exit and the flagfile will be updated. Another case, if repair hangs, and day later cassandra is restarted. if nodetool returns an error this might work: nodetool -h localhost repair && touch /path/to/flagfile.tmp -- Karl