From owner-freebsd-current@FreeBSD.ORG Tue Jul 31 06:48:39 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 319F416A417 for ; Tue, 31 Jul 2007 06:48:39 +0000 (UTC) (envelope-from ubm@u-boot-man.de) Received: from mail.upper.net (mail.upper.net [62.75.224.33]) by mx1.freebsd.org (Postfix) with ESMTP id C723613C46B for ; Tue, 31 Jul 2007 06:48:38 +0000 (UTC) (envelope-from ubm@u-boot-man.de) Received: from ubm.mine.nu (p57AE42EA.dip0.t-ipconnect.de [87.174.66.234]) (authenticated bits=0) by mail.upper.net (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id l6V6mYsP007073 for ; Tue, 31 Jul 2007 08:48:34 +0200 Date: Tue, 31 Jul 2007 08:48:34 +0200 From: Marc "UBM" Bocklet To: freebsd-current@FreeBSD.org Message-Id: <20070731084834.4fffc7cd.ubm@u-boot-man.de> In-Reply-To: <20070730191250.GM1092@garage.freebsd.pl> References: <20070730155802.523dad8b.ubm@u-boot-man.de> <20070730191250.GM1092@garage.freebsd.pl> X-Mailer: Sylpheed 2.4.0 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: geom_journal - bio_flush not supported on disks connected via usb? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2007 06:48:39 -0000 On Mon, 30 Jul 2007 21:12:50 +0200 Pawel Jakub Dawidek wrote: > On Mon, Jul 30, 2007 at 03:58:02PM +0200, Marc UBM Bocklet wrote: > > > > Hiho! :-) > > > > > > During startup, I got this error (only once): > > > > > > GEOM_JOURNAL: Journal 1159150689: da0 contains data. > > GEOM_JOURNAL: Journal 1159150689: da0 contains journal. > > GEOM_JOURNAL: Journal da0 clean. > > (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 > > 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > > (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 > > (da0:umass-sim0:0:0:0): Invalid command operation code > > (da0:umass-sim0:0:0:0): Unretryable error > > GEOM_JOURNAL: BIO_FLUSH not supported by da0. > > > > > > da0 is 250GB usb disk (using ehci(4)). > > > > I do not understand completely what this means. Has the BIO_FLUSH > > command only failed once and works now on subsequent tries? > > No, it means that gjournal tried it once and now knows that it's not > supported, so won't spam you console again. > > > Does BIO_FLUSH never work, because it's not implemented (or can't be > > implemented) for disks connected via usb? And if thats the case, > > will that affect geom_journal in any way? Is my data still being > > journalled correctly? :-) > > If write cache is turned on on your disk, there can be a problem in > case of a power failure. I don't know how write cache is beeing > turned on for a disk connected via USB. Is it turned on by default? > If it's turned off by default, then you are safe. Thanks a lot for your quick response. It seems to be disabled by default (thats what the da(4) manpage says): root@ubm:/usr/home/sheep# camcontrol modepage da0 -m 8 IC: 0 ABPF: 0 CAP: 1 DISC: 0 SIZE: 1 WCE: 0 MF: 0 RCD: 0 Demand Retention Priority: 0 Write Retention Priority: 1 Disable Pre-fetch Transfer Length: 0 Minimum Pre-fetch: 44 Maximum Pre-fetch: 58303 Maximum Pre-fetch Ceiling: 48902 The only remaining question is, if the write cache for a disk connected via USB is really affected by this setting (since da0 is just a "fake" scsi disk, as I understand it). Can someone comment on that? Bye Marc -- "Come away, O human child! To the waters and the wild With a faery, hand in hand, For the world's more full of weeping than you can understand." W.B. Yeats, The Stolen Child