From owner-freebsd-fs@FreeBSD.ORG Wed Jul 21 08:29:21 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 312E91065673 for ; Wed, 21 Jul 2010 08:29:21 +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 CDCC38FC15 for ; Wed, 21 Jul 2010 08:29:20 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2C6A9.dip.t-dialin.net [217.226.198.169]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id D4AE184405D; Wed, 21 Jul 2010 10:29:12 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 780571833; Wed, 21 Jul 2010 10:29:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1279700949; bh=Syg5nBLh5qhmoLtKWKt7CxC0LTSWMNVsnhr5acxKVHA=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=XpZihj9nmg2sIGTWjvV3RgBxWCMLq5yuKYQIFmuFEy6Qux2OAFCbi38Tu9aiVt9v7 aArdjlnxy/Sc4nbf3h0GYN9JsvkCRfQ8FIyyxmiB08SYnJznk8HyjWhscfkf+hn4WI hNH+aZcF3/5rASvpJpEsTOz7DYxGZlgl6kx2OcOiUoRK+uoOK1Jf0LG0YogX1pkwaT MkfmbOEOFqKWetZswP8ET3l0CACHqF2FuT2LxoW4GQGtMuQtQMIOJuuXV2aqb5fHpr 4J4x5tAc4AvMKRbwYEfC5TAoAiYXXwBI9i2IV/W69v0ipWQRIzAnvNVoE6DPKDnGVY yg/OzAU9CNrdw== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o6L8T9B0033209; Wed, 21 Jul 2010 10:29:09 +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, 21 Jul 2010 10:29:09 +0200 Message-ID: <20100721102909.908226zl2nxympck@webmail.leidinger.net> Date: Wed, 21 Jul 2010 10:29:09 +0200 From: Alexander Leidinger To: Marco van Tol References: <20100609162627.11355zjzwnf7nj8k@webmail.leidinger.net> <4C10B136.3030404@kkip.pl> <20100720231450.GA63895@tolstoy.tols.org> In-Reply-To: <20100720231450.GA63895@tolstoy.tols.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: D4AE184405D.A6DB4 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: 1280305758.02574@mz9+Ihwzo0hFJWmR6H+4cA X-EBL-Spam-Status: No Cc: freebsd-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: Wed, 21 Jul 2010 08:29:21 -0000 Quoting Marco van Tol (from Tue, 20 Jul 2010 23:14:50 +0000): > On Thu, Jun 10, 2010 at 11:32:38AM +0200, Bartosz Stec wrote: > > [... periodic zfs scrubs and snapshots ...] > >> Ross-at-neces-dot-com already did what you're searching for. I'm using >> his periodic scripts for some months now, check here: >> > http://www.neces.com/blog/technology/integrating-freebsd-zfs-and-periodic-snapshots-and-scrubs. >> They're doing all necessary stuff, like checking for scrub in progress too. >> Hope you'll find them helpful. > > I was just looking into these and noticed you probably have to enable > "listsnapshots" on your zpool which is off by default. Couldn't find a > reference to it on the page mentioned above, but I may have overlooked > it. While listsnapshots is off, snapshots don't appear in the used > "zfs list -H -o name" commands. The script in -current does not use any code from the link above. The script in -current does not do snapshots, only scrubs. The script in -current does only do "zpool list", not "zfs list". So all in all, the script in -current does not need any change (I would have preferred the "-t snapshot" way of listing snapshots, if it would have been necessary). Bye, Alexander. -- Democracy is also a form of worship. It is the worship of Jackals by Jackasses. -- H. L. Mencken http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137