From owner-freebsd-stable@FreeBSD.ORG Fri Nov 9 22:28:32 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07EC416A41B; Fri, 9 Nov 2007 22:28:32 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (unknown [IPv6:2001:41d0:1:2ad2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9136A13C4AA; Fri, 9 Nov 2007 22:28:31 +0000 (UTC) (envelope-from hlh@restart.be) Received: from restart.be (avoriaz.tunnel.bel [IPv6:2001:41d0:1:2ad2::fffe:0]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "avoriaz.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTP id 868BA1BAC24; Fri, 9 Nov 2007 23:28:30 +0100 (CET) Received: from morzine.restart.bel (morzine6.restart.bel [IPv6:2001:41d0:1:2ad2::1:2]) (authenticated bits=0) by restart.be (8.14.1/8.14.1) with ESMTP id lA9MSRJ5001169; Fri, 9 Nov 2007 23:28:27 +0100 (CET) (envelope-from hlh@restart.be) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=restart.be; s=avoriaz; t=1194647310; bh=ioEEWw0L/kF/CDKgxQgCruQmi9admyDvsTmwB6W 1Lao=; h=DomainKey-Signature:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Scanned-By; b=QwFtLcJB2vS 9YBt0oiv1uqxjk2yg6wl/P3jYDJcKlSpVcCx/ehIn/vs7kIHYiu72X7DOWtJlnmasgD aFFE2a2Q== DomainKey-Signature: a=rsa-sha1; s=avoriaz; d=restart.be; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:content-type: content-transfer-encoding:x-scanned-by; b=xDS2K9R1pNqpTDh9+FT9JtgLjYZ42DGppakJ4hBnXfkM+qxLzL9gzdzrf+pNBPIlT U79LzN0U9MOiCEDiwvnjg== Message-ID: <4734DF0B.7040300@restart.be> Date: Fri, 09 Nov 2007 23:28:27 +0100 From: Henri Hennebert Organization: RestartSoft User-Agent: Thunderbird 2.0.0.6 (X11/20071101) MIME-Version: 1.0 To: Richard Arends References: <47348CAC.5020208@restart.be> <20071109182355.GB13845@shell.unixguru.nl> <4734C4AF.9020609@restart.be> <20071109204830.GC13845@shell.unixguru.nl> In-Reply-To: <20071109204830.GC13845@shell.unixguru.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.63 on IPv6:2001:41d0:1:2ad2::1:1 Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: ZFS deadlock ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 22:28:32 -0000 Richard Arends wrote: > On Fri, Nov 09, 2007 at 09:35:59PM +0100, Henri Hennebert wrote: > >>> This won't start the scrubs at the same time, but after each other. And >>> the second will only start if the first one not fails (exitcode == 0) >>> >> Not at all, the scrub is asynchronious, I'm sure of it > > Running 2 commands seperated by && will not run at the same time. Scrub > could be asynchronious, i don't know, but that has nothing to do with the > way you are running it. > > See: echo "sleep 1" && time sleep 2 && echo "sleep 2" && time sleep 2 > and: ls -l /notfound && echo yes Per the man page, zpool scrub *begin* a scrub witch go on in background, so two scrubs are running simustaneously on 2 different pools. Henri