From owner-freebsd-fs@FreeBSD.ORG Thu Jun 10 09:27:17 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB3C3106567C for ; Thu, 10 Jun 2010 09:27:17 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 55A378FC1B for ; Thu, 10 Jun 2010 09:27:17 +0000 (UTC) Received: from outgoing.leidinger.net (pD954FE15.dip.t-dialin.net [217.84.254.21]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 3FE2584400A; Thu, 10 Jun 2010 11:27:14 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 684E1510C; Thu, 10 Jun 2010 11:27:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1276162031; bh=kFfA/Kv+EvB0dZDuJIUymozwCEMUx49yqdzcGWPdi2I=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=NzjKK/B1LT7NGS/rjUc/gIQg5ce6hLwb/Gvf8JqXMNVZVhJuLQ8N+/JeQITNw56IJ JipT2RVHiA2al+m3jsZmVl57S9HY4HZWDiEJTrJrW7KoE+ipFKQtWjmlH/W2hBRbcn WGUwdOmJkmeYVF76rn7bKVk+edMY9AENfVq28XaOefnM7MAdPVq0nWIKyUiiia2lhl 5EHN2gT6DhFOX4vvr61JrcOL8Qj52Y9d4cltwb0hU+MTp5HNKvd7bY3WvBIBAcv6iO JIfGr27csMKq+kha4iPODfmdQpauJyh9XqM+iDZOUXWj1fY9yEfo099HCKnvMmy7pI Q/cYRn1ln15wQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o5A9RADE091502; Thu, 10 Jun 2010 11:27:10 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 10 Jun 2010 11:27:10 +0200 Message-ID: <20100610112710.20215zznvaqdai88@webmail.leidinger.net> Date: Thu, 10 Jun 2010 11:27:10 +0200 From: Alexander Leidinger To: jhell References: <20100609162627.11355zjzwnf7nj8k@webmail.leidinger.net> <4C0FAE2A.7050103@dataix.net> In-Reply-To: <4C0FAE2A.7050103@dataix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 3FE2584400A.A5FD7 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.023, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, TW_ZF 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1276766835.33222@eRKmZy5hXQLo6fdhk/1uog X-EBL-Spam-Status: No Cc: fs@freebsd.org Subject: Re: Do we want a periodic script for a zfs scrub? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 09:27:17 -0000 Quoting jhell (from Wed, 09 Jun 2010 11:07:22 -0400): > Please add a check to see if any resilerving is being done on the pool > that the scub is being executed on. (Just in case), I would hope that > the scrub would fail silently in this case. It does. No need to check for the resilvering. > Please also check whether a scrub is already running on one of the pools > and if so & another pool exists start a background loop to wait for the > first scrub to finish or die silently. I do not want a background job running forever in the periodic script. If a scrub is in progress, it should print the fact and do nothing (a second scrub after the running one finishes us superflous). I will have a look at this. Bye, Alexander. -- You look tired. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137