From owner-freebsd-stable@FreeBSD.ORG Mon May 21 12:36:56 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4842416A421 for ; Mon, 21 May 2007 12:36:56 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id AF1BD13C45B for ; Mon, 21 May 2007 12:36:55 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (gzuvql@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l4LCamCD084099; Mon, 21 May 2007 14:36:53 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l4LCamQf084098; Mon, 21 May 2007 14:36:48 +0200 (CEST) (envelope-from olli) Date: Mon, 21 May 2007 14:36:48 +0200 (CEST) Message-Id: <200705211236.l4LCamQf084098@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, hausen@punkt.de In-Reply-To: <20070518090435.GB17241@hugo10.ka.punkt.de> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 21 May 2007 14:36:53 +0200 (CEST) Cc: Subject: Re: Native SATA vs. PATA-emulation - difference? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, hausen@punkt.de List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 12:36:56 -0000 Patrick M. Hausen wrote: > I have a Tyan barebone on my desk that is based on the > ServerWorks HT1000 chipset. It features 4 SATA connectors > and 4 hot plug drive bays. > > I installed FreeBSD on the system with the BIOS settings as > set by the manufacturer. This includes setting the "SATA mode" > to "P-ATA emulation". > > The devices are probed by FreeBSD like this: > [...] > I set up a GEOM mirror on my boot disk, again, everythings working > as expected: > [...] > Out of curiosity I changed the BIOS setup setting for the > SATA controller to "native SATA". > > When booting, the controller and all disks are probed OK. > The output shows "SATA150" for the devices. > > Yet, the root filesystem on /dev/mirror/gm0s1 cannot be found. > Hitting "?" at the prompt that asks for manual root dev specification, > I get "ad4, ad4s1, ad4s1a ... ad6, ad6s1, ad6s1a ...". I can even > boot ad4s1 to single user mode, so all data on the disk can be > read just like when in "P-ATA emulation" mode. > > Why does gmirror fail to load? Are the disk sizes exactly the same in both cases? Please provide dmesg output from the 2nd case (native SATA). Most GEOM modules (gmirror, gjournal etc.) store their meta data in the last sector of the device. If the size of the devices change when you change the emulation mode, gmirror won't be able to locate the sector that contains the meta data anymore. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence" -- Jacek Generowicz