From owner-freebsd-stable@FreeBSD.ORG Wed Jul 17 15:30:02 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7DAC37B9; Wed, 17 Jul 2013 15:30:02 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) by mx1.freebsd.org (Postfix) with ESMTP id EC7FC8D1; Wed, 17 Jul 2013 15:30:01 +0000 (UTC) Received: from park.js.berklix.net (pD9FBEF06.dip0.t-ipconnect.de [217.251.239.6]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id r6HFTwND089577; Wed, 17 Jul 2013 15:29:59 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.14.3/8.14.3) with ESMTP id r6HFTpWF004069; Wed, 17 Jul 2013 17:29:51 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id r6HFT4EK063849; Wed, 17 Jul 2013 17:29:10 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201307171529.r6HFT4EK063849@fire.js.berklix.net> To: Maurizio Vairani Subject: Re: [SOLVED] Re: Shutdown problem with an USB memory stick as ZFS cache device From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Wed, 17 Jul 2013 12:28:23 +0200." <51E671C7.50409@cloverinformatica.it> Date: Wed, 17 Jul 2013 17:29:04 +0200 Sender: jhs@berklix.com Cc: freebsd-fs@freebsd.org, freebsd-stable@freebsd.org, Ronald Klop X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 15:30:02 -0000 Maurizio Vairani wrote: > On 17/07/2013 11:50, Ronald Klop wrote: > > On Wed, 17 Jul 2013 10:27:09 +0200, Maurizio Vairani > > wrote: > > > >> Hi all, > >> > >> > >> on a Compaq Presario laptop I have just installed the latest stable > >> > >> > >> #uname -a > >> > >> FreeBSD presario 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0: Tue Jul 16 > >> 16:32:39 CEST 2013 root@presario:/usr/obj/usr/src/sys/GENERIC amd64 > >> > >> > >> For speed up the compilation I have added to the pool, tank0, a > >> SanDisk memory stick as cache device with the command: > >> > >> > >> # zpool add tank0 cache /dev/da0 > >> > >> > >> But when I shutdown the laptop the process will halt with this screen > >> shot: > >> > >> > >> http://www.dump-it.fr/freebsd-screen-shot/2f9169f18c7c77e52e873580f9c2d4bf.jpg.html > >> > >> > >> > >> and I need to press the power button for more than 4 seconds to > >> switch off the laptop. > >> > >> The problem is always reproducible. > > > > Does sysctl hw.usb.no_shutdown_wait=1 help? > > > > Ronald. > Thank you Ronald it works ! > > In /boot/loader.conf added the line > hw.usb.no_shutdown_wait=1 > > Maurizio I wonder (from ignorance as I dont use ZFS yet), if that merely masks the symptom or cures the fault ? Presumably one should use a ZFS command to disassociate whatever might have the cache open ? (in case something might need to be written out from cache, if it was a writeable cache ?) I too had a USB shutdown problem (non ZFS, now solved) & several people made useful comments on shutdown scripts etc, so I'm cross referencing: http://lists.freebsd.org/pipermail/freebsd-mobile/2013-July/012803.html Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with "> ". Send plain text. No quoted-printable, HTML, base64, multipart/alternative.