Some new hardware with 9.1 does not reboot easily

Willem Jan Withagen wjw at digiware.nl
Thu Jan 17 14:11:27 UTC 2013


On 2013-01-17 3:08, Julian Stecklina wrote:
> 
> 
> Steven Hartland <killing at multiplay.co.uk> wrote:
> 
>> ----- Original Message ----- From: "Andriy Gapon"
>> <avg at FreeBSD.org>
>> 
>> 
>>> on 11/01/2013 21:38 Willem Jan Withagen said the following:
>>>> On 2013-01-07 18:06, Julian Stecklina wrote:
>>>>> Has this been resolved? I still see a hang on reboot/shutdown
>>>>> on my
>> box
>>>>> (zfs root on USB thumb drive), but I am not sure if the
>>>>> problem is related.
>>>> 
>>>> Could very well be be.
>>>> 
>>>> I have again the same problem as I reported before with the
>>>> full and
>> new
>>>> 9.1 code. But did not have time yet to build a system te test
>>>> with.
>>>> 
>>>> My other 9.1 box is my ZFS only fileserver. And I do not want
>>>> to
>> fidle
>>>> to much with it.
>> 
>> Not sure if this has been suggested or ruled out as yet but if you
>> have usb enabled, you don't need to be using it, try the following
>> see if it helps?
>> 
>> sysctl hw.usb.no_shutdown_wait=1
> 
> With that sysctl set the box shuts down just fine. Thanks!
> 
>> 
>> If it does 1. Temporary fix is to pop that in /etc/sysctl.conf 2.
>> Worth investigating which USB component isn't dropping references 
>> correctly.
> 
> I only have an USB thumb drive and a USB soundcard attached. I tried
> it without the soundcard attached and would still not reset/shutdown,
> so that does not seem to be the problem.
> 
> I attached usbconfig list output.

Hi all,

This is with:
FreeBSD zfs.digiware.nl 9.1-STABLE FreeBSD 9.1-STABLE #59 r245340:
Sun Jan 13 06:49:37 CET 2013

I removed my WD USB disk, and it started to reboot just fine....
And as such I think it is a combination of USB storage and ZFS.

So it could very well be a derivative of the previous problems where a
more complex situation in storage ended up in deadlock.

Thanx to Steven for putting the finger in the correct hole in the dike....
For the time being I'll just pop the sysctl into the config.

--WjW





More information about the freebsd-stable mailing list