From owner-freebsd-fs@FreeBSD.ORG Wed Jul 17 10:38:41 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 862C4EF7; Wed, 17 Jul 2013 10:38:41 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 842F6857; Wed, 17 Jul 2013 10:38:40 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA01409; Wed, 17 Jul 2013 13:38:38 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1UzP81-00002p-NS; Wed, 17 Jul 2013 13:38:37 +0300 Message-ID: <51E67409.3010901@FreeBSD.org> Date: Wed, 17 Jul 2013 13:38:01 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130708 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-stable@FreeBSD.org, freebsd-fs@FreeBSD.org Subject: Re: Shutdown problem with an USB memory stick as ZFS cache device References: <51E6555D.2080803@cloverinformatica.it> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 10:38:41 -0000 on 17/07/2013 12:50 Ronald Klop said the following: > Does sysctl hw.usb.no_shutdown_wait=1 help? I believe that the root cause of the issue is that ZFS does not perform full clean up on shutdown and thus does not release its devices. But perhaps I am mistaken. In any case, I think that doing the same kind of clean up as done on zfs module unload would be advantageous. -- Andriy Gapon