From owner-freebsd-fs@FreeBSD.ORG Wed Jun 9 14:26:40 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 C46F8106567A for ; Wed, 9 Jun 2010 14:26:40 +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 70F308FC1A for ; Wed, 9 Jun 2010 14:26:40 +0000 (UTC) Received: from outgoing.leidinger.net (pD954FA9A.dip.t-dialin.net [217.84.250.154]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 976DB84400A for ; Wed, 9 Jun 2010 16:26:36 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 8BC035143 for ; Wed, 9 Jun 2010 16:26:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1276093590; bh=3xXXXXyAjxubPmzOSt0BIzdRKaxNyf0qQLuGo44Mels=; h=Message-ID:Date:From:To:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=MLVA6KFMWKK+AF1hISUKUP70DzPjl6y24Syk0SwcxHtVhtETSOzJ1tmqiUf69Iln/ JNIGkGiOSv2l5mUPtO8wP7E5MFTelW8ct5HYOxnAfO/h61rCwWhr7w1+I6GC1mjdqj gAzg9E8JNvLJSoOUsHlvnV5JUYAwj2wqnTeTNn/LW24ZCZyMBHzgt4jTjFulZaJ8oh LfKI7L6nckBFea/MyvvWudaTp4j6tbNgyVZBoi5YkIHGgTEqN+bSdPfI5MGTj9pyS1 gestUg5R+A+flF/SFT/NFbsLREmL0Dbh0kNeQkjbNe4eTPhD2J/FaS2Ed0bCmRvbzL /8PwmzwPLrcxQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o59EQSD0013312 for fs@freebsd.org; Wed, 9 Jun 2010 16:26:28 +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; Wed, 09 Jun 2010 16:26:27 +0200 Message-ID: <20100609162627.11355zjzwnf7nj8k@webmail.leidinger.net> Date: Wed, 09 Jun 2010 16:26:27 +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: 976DB84400A.A77FA 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: 1276698397.30206@6t8LK8M5dwh/ciFgKfrgmQ X-EBL-Spam-Status: No Cc: Subject: 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: Wed, 09 Jun 2010 14:26:40 -0000 Hi, I noticed that we do not have an automatism to scrub a ZFS pool periodically. Is there interest in something like this, or shall I keep it local? Here's the main part of the monthly periodic script I quickly created: ---snip--- case "$monthly_scrub_zfs_enable" in [Yy][Ee][Ss]) echo echo 'Scrubbing of zfs pools:' if [ -z "${monthly_scrub_zfs_pools}" ]; then monthly_scrub_zfs_pools="$(zpool list -H -o name)" fi for pool in ${monthly_scrub_zfs_pools}; do # successful only if there is at least one pool to scrub rc=0 echo " starting scrubbing of pool '${pool}'" zpool scrub ${pool} echo " consult 'zpool status ${pool}' for the result" echo " or wait for the daily_status_zfs mail, if enabled" done ;; ---snip--- Bye, Alexander. -- Fuch's Warning: If you actually look like your passport photo, you aren't well enough to travel. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137