From owner-freebsd-fs@FreeBSD.ORG Sun Jun 13 10:57:22 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 135C51065688; Sun, 13 Jun 2010 10:57:22 +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 C18138FC19; Sun, 13 Jun 2010 10:57:21 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2C8F8.dip.t-dialin.net [217.226.200.248]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id A720584405C; Sun, 13 Jun 2010 12:57:18 +0200 (CEST) Received: from unknown (unknown [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id CBAFD53C7; Sun, 13 Jun 2010 12:57:14 +0200 (CEST) Date: Sun, 13 Jun 2010 12:57:16 +0200 From: Alexander Leidinger To: Pawel Jakub Dawidek Message-ID: <20100613125716.000078df@unknown> In-Reply-To: <20100613094652.GC1320@garage.freebsd.pl> References: <20100610162629.38992mazf0sfdqg0@webmail.leidinger.net> <20100613094652.GC1320@garage.freebsd.pl> X-Mailer: Claws Mail 3.7.2cvs15 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: A720584405C.A7001 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1277031439.38518@dvqJJXicoKqQg75APDwRQA X-EBL-Spam-Status: No Cc: fs@freebsd.org Subject: Re: 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: Sun, 13 Jun 2010 10:57:22 -0000 On Sun, 13 Jun 2010 11:46:52 +0200 Pawel Jakub Dawidek wrote: > I proposed something like this: > > egrep '^[0-9\.\:\-]{19} zpool scrub '${pool}'$' > > Currently there is no way to tell if 'zpool scrub -s' stopped a scrub > or if there was no scrub running. In newer versions of ZFS, it has a > property which tells when the last scrub finished. Once we update ZFS > we could take advantage of it. > > All in all, with better grep I'd like to see it committed. I have a look at getting enough time to write the corresponding man-page stuff on Tuesday, change the script as you suggested for this (and another change for the case when there was no scrub run ever before), and then commit it. Thanks for the suggestion, Alexander.