From owner-freebsd-current@FreeBSD.ORG Mon Sep 20 16:38:20 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26A3F16A4CE; Mon, 20 Sep 2004 16:38:20 +0000 (GMT) Received: from smtp-gw-cl-c.dmv.com (smtp-gw-cl-c.dmv.com [216.240.97.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id B395443D53; Mon, 20 Sep 2004 16:38:19 +0000 (GMT) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) i8KGcp1P044129; Mon, 20 Sep 2004 12:38:51 -0400 (EDT) (envelope-from sven@dmv.com) From: Sven Willenberger To: Pawel Jakub Dawidek In-Reply-To: <20040920154705.GF88658@darkness.comp.waw.pl> References: <1095693022.20080.9.camel@lanshark.dmv.com> <20040920154705.GF88658@darkness.comp.waw.pl> Content-Type: text/plain Date: Mon, 20 Sep 2004 12:38:03 -0400 Message-Id: <1095698283.20070.21.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.39 cc: current@FreeBSD.org Subject: Re: How to autostart geom_stripe? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 20 Sep 2004 16:38:20 -0000 On Mon, 2004-09-20 at 17:47 +0200, Pawel Jakub Dawidek wrote: > On Mon, Sep 20, 2004 at 11:10:22AM -0400, Sven Willenberger wrote: > +> FreeBSD-5.3-Beta4 > +> I created a striped volume, newfs and mounted it fine and added the > +> entry in /etc/fstab. (created using the label so as to write the > +> metadata to disk and with a name of "thevolume") > +> > +> I added geom_stripe_load="YES" in /boot/loader.conf > +> > +> On bootup at the fsck stage, I get the message "could not stat /dev/ > +> stripe/thevolume. From single user, geom stripe load will load the > +> device and start the stripe at which point all is fine again. My > +> question is, is there another flag I need to set to have this startup at > +> boot time? > > I've some suspicion. Could you try this patch: > > http://people.freebsd.org/~pjd/patches/g_stripe.c.patch > > (so you have to: > > # cd /sys/geom/stripe > # patch < /path/to/g_stripe.c.patch > # cd /sys/modules/geom/geom_stripe > # make && make install > # reboot > ) > > And give me output of: > > # dmesg | grep skipping > Interestingly, once I applied the patch, and followed the make instructions you supplied above, the thing actually works (even though the patch looks like it was designed merely to trap a suspected error). I am not sure if the physical act of remaking the module from the modules directory solved the problem or what happened exactly. I will try a few more reboots and see what happens. "skipping" does not appear in the dmesg; the last few lines of my dmesg are: Waiting 10 seconds for SCSI devices to settle (probe6:ahd0:0:6:0): No or incomplete CDB sent to device. ahd0: Issued Channel A Bus Reset. 12 SCBs aborted ses0 at ahd0 bus 0 target 6 lun 0 ses0: Fixed Processor SCSI-2 device ses0: 3.300MB/s transfers ses0: SAF-TE Compliant Device da0 at ahd0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled da0: 35003MB (71687372 512 byte sectors: 255H 63S/T 4462C) da1 at ahd0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled da1: 35003MB (71687372 512 byte sectors: 255H 63S/T 4462C) da2 at ahd0 bus 0 target 2 lun 0 da2: Fixed Direct Access SCSI-3 device da2: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled da2: 35003MB (71687372 512 byte sectors: 255H 63S/T 4462C) SMP: AP CPU #2 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! GEOM_STRIPE[1]: Creating device mysql (id=2294958973). GEOM_STRIPE[0]: Device mysql created (id=2294958973). GEOM_STRIPE[1]: Adding disk da1 to mysql. GEOM_STRIPE[0]: Disk da1 attached to mysql. GEOM_STRIPE[1]: Adding disk da2 to mysql. GEOM_STRIPE[0]: Disk da2 attached to mysql. GEOM_STRIPE[0]: Device mysql activated. Mounting root from ufs:/dev/da0s1a Sven P.S. that probe error in dmesg seems to happen when a Supermicro mobo is teamed up with a Seagate SCSI drive -- another issue for another day.