From owner-freebsd-usb@freebsd.org Tue Oct 20 20:18:32 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACE8DA0A207 for ; Tue, 20 Oct 2015 20:18:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 75A9CE4 for ; Tue, 20 Oct 2015 20:18:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 89EED1FE023; Tue, 20 Oct 2015 22:18:30 +0200 (CEST) Subject: Re: External USB Harddisk ZFS boot problem To: Philipp Maechler , freebsd-usb@freebsd.org References: <5622809C.7020501@gmail.com> From: Hans Petter Selasky Message-ID: <5626A1FC.9040801@selasky.org> Date: Tue, 20 Oct 2015 22:20:12 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5622809C.7020501@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2015 20:18:32 -0000 On 10/17/15 19:08, Philipp Maechler wrote: > Good evening, > > I have a problem and a manual an nasty work around, and like to have > some hints how/where to digg deeper. > > FreeBSD 10.2 (GENERIC freshly installed) and root zfs pool on a > external usb harddisk drive. I try to boot from this zfs pool. More > details about the hardware further down. > > This zfs pool is a zfs send/receive copy of a working zfs boot setup > (but it was before an 10.1 - note to myself: never change 2 things at > the same time [duplicate]) > > The new harddisk is setup properly (boot-loader etc) and also the zpool > cache file is correctly up-to-date and the bootfs property is set. > > What happens is that the boot loader works fine, then it loads the > kernel and the kernel starts. At this time, the drive switch off and the > kernel loads further and starts to wait for root an usbus0 and usbus1 > Hi, It is not easy to say why your disk is powering down. I know the ZFS uses some more SCSI commands like SYNCHRONIZE cache which UFS doesn't in the same way. Did you try to edit sys/dev/usb/quirk/usb_quirk.c and add a UQ_MSC_NO_SYNC_CACHE for your disk? --HPS