kern/167685: [zfs] ZFS on USB drive prevents shutdown / reboot
Ronald Klop
ronald-freebsd8 at klop.yi.org
Sat May 12 10:08:28 UTC 2012
On Fri, 11 May 2012 23:50:17 +0200, Jeff Kletsky <freebsd at wagsky.com>
wrote:
> The following reply was made to PR kern/167685; it has been noted by
> GNATS.
>
> From: Jeff Kletsky <freebsd at wagsky.com>
> To: bug-followup at FreeBSD.org
> Cc:
> Subject: Re: kern/167685: [zfs] ZFS on USB drive prevents shutdown /
> reboot
> Date: Fri, 11 May 2012 14:41:03 -0700
>
> This is a multi-part message in MIME format.
> --------------020209050805030409070009
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
> Problem can be replicated by booting of a "memstick" (with a "spare" USB
> stick as /dev/da1) and then executing
> # dd if=/dev/zer of=/dev/da1 bs=64k
> # zpool create stick /dev/da1
> # reboot
> Problem has been reliably reproduced on the Atom 330 previously
> mentioned, as well as on an AMD A8-3870 with A75 chipset. It also can be
> replicated using VirtualBox running under Ubuntu on the AMD A8-3870
> system. It does not seem specific to one "flavor" of USB controller or
> driver.
> Using /usr/src/release/generate_release.sh and bisection, I have
> confirmed that
> * r227445 does not exhibit the behavior ("Copy stable/9 to releng/9.0 as
> part of the FreeBSD 9.0-RELEASE release cycle)
> * r229097 does not exhibit the behavior
> * r229281 -- FAIL by not rebooting under the conditions described above.
> Based on these results, I am suspicious of
> r229100 | hselasky | 2011-12-31 06:33:15 -0800 (Sat, 31 Dec 2011) | 6
> lines
> MFC r228709, r228711 and r228723:
> - Add missing unlock of USB controller's lock, when
> doing shutdown, suspend and resume.
> - Add code to wait for USB shutdown to be executed at system shutdown.
> - Add sysctl which can be used to skip this waiting.
> as being what brought the issue to the forefront.
> I am presently building r229099 and r229100 to confirm this suspicion.
> A potential, though untested workaround would be
> # sysctl hw.usb.no_shutdown_wait=1
I had/have the same problem with ZFS on my external USB backup-disk. I use
that sysctl since and can confirm that it works.
More information about the freebsd-fs
mailing list