From owner-freebsd-questions@FreeBSD.ORG Sat Jul 11 16:11:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E64F1065690 for ; Sat, 11 Jul 2009 16:11:52 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id E09B88FC14 for ; Sat, 11 Jul 2009 16:11:50 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by ey-out-2122.google.com with SMTP id 9so337998eyd.3 for ; Sat, 11 Jul 2009 09:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition; bh=ZtaKWZazzaAaJr4yLYQapWZZekmWAB9UvLrMSWwRrX0=; b=a7iXfQ83Q3zZHyP0TnF5G9chmLXiHRfsJLYBgz+dcshfyJuQUD4I3mbiSmPtQ9JIqF Nmg+Wlo4tk/sCGfBmE+VOrpSVtfLEWZwNLmXJN7+5B7I6ri9Nf/vSi3rXkR4wPJezdht PYCD4mHGZdYxRZJKrCr6U6u2DuxTL5SLY6mYg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition; b=EQ3QeS5wGaE3A0nySfU7R+7QCCnNVCiTlt1c4gfSc0g7QgSIhTLA14BQh4vyv3sH8V 9APZ30s+nU1i9Hxa0PS8451wl3WVJrVYlmyzz3HJaeLcO7XT8AHb4vjnpCUaEH6DnGYR zq4yNgopbDojVL028d5uU63MObR4f9VNMbqKI= Received: by 10.210.110.5 with SMTP id i5mr2407891ebc.58.1247328709955; Sat, 11 Jul 2009 09:11:49 -0700 (PDT) Received: from viper.internal.network (geeshaulage.lcdsl.co.uk [62.249.247.223]) by mx.google.com with ESMTPS id 28sm5402951ewy.96.2009.07.11.09.11.48 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 11 Jul 2009 09:11:49 -0700 (PDT) Received: by viper.internal.network (Postfix, from userid 11001) id 570714AC27; Sat, 11 Jul 2009 17:11:32 +0100 (BST) Date: Sat, 11 Jul 2009 17:11:32 +0100 From: xorquewasp@googlemail.com To: freebsd-questions@freebsd.org Message-ID: <20090711161132.GA74849@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: ZFS scrub is finished? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2009 16:11:52 -0000 Hello. I'd like to write a little shell script to run 'zpool scrub' on my disks weekly. I have two zpools. The manual page says that only one 'scrub' can be active at a time. Is there any reliable way to run 'zpool scrub X' and then run 'zpool scrub Y' when the first has finished? Please CC me as I'm not subscribed. xw