From owner-freebsd-fs@FreeBSD.ORG Thu Jun 10 14:26:38 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 C21971065678 for ; Thu, 10 Jun 2010 14:26:38 +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 6EA6D8FC15 for ; Thu, 10 Jun 2010 14:26:38 +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 2D16D84400A for ; Thu, 10 Jun 2010 16:26:34 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id BB19E5133 for ; Thu, 10 Jun 2010 16:26:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1276179990; bh=O+U83IuEdEGiKRxgFIt2pSeDkq2rqmzcd4g40Ir5/4c=; h=Message-ID:Date:From:To:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=X73EJTlzwUpNe8XMdiLBspwNWUvojLybicbfiESDeWuz8malhosrHeQ+u0kCjQXMj ejIEyzTPv3zZPziHF+btnDM4xiYYhbBVtaHZsV09Z1dlTVJ5EioCHAH3QPyFgj5qhz Qru0lq0RwfgPO1lfHIGas/wPANM/b2czD30y9TNkF53rW7xvkpCE9A3xbp3H+TuDkQ YDrvZv72vwHyOSp4xC6f44Tv41YKqsLB4GfZIsZuLaF4mlu1xs7QxTIeftWb5+Gzk9 kgtwWRfcYoPqBLSC1WRh6nbGB3HWPYL0PVDirAsTxHS0RbXX3VHuE2PrKBxLiitkDJ hS++2dNVC6H5g== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o5AEQT3t024202 for fs@freebsd.org; Thu, 10 Jun 2010 16:26:29 +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 16:26:29 +0200 Message-ID: <20100610162629.38992mazf0sfdqg0@webmail.leidinger.net> Date: Thu, 10 Jun 2010 16:26:29 +0200 From: Alexander Leidinger To: fs@freebsd.org 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: 2D16D84400A.A5F60 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: 1276784796.45294@k6vt/wRgJTOjnYvTQ47Q/Q X-EBL-Spam-Status: No Cc: Subject: CFT: periodic scrubbing of ZFS pools 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 14:26:38 -0000 Hi, as there seems to be interest in a periodic script to scrub zpools, I modified my monthly-POC into a daily script with parameters for which pools to scrub, how many days between scrubs (even different per pool, if required), and several error checks (non-existing pool specified, scrub in progress). You can find it at http://www.Leidinger.net/FreeBSD/current-patches/600.scrub-zfs Please put it into /etc/periodic/daily and test it. Possible periodic.conf variables are: daily_scrub_zfs_enable="YES" daily_scrub_zfs_pools="name1 name2 name3" # all if unset or empty daily scrub_zfs_default_threshold="" # default: 30 daily_scrub_zfs__threshold="" If there is no specific threshold for a pool (= days between scrubs), the default threshold is used. Bye, Alexander. -- Hear about... the guru who refused Novocaine while having a tooth pulled because he wanted to transcend dental medication? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137