From owner-freebsd-stable Sun Nov 11 11:31: 9 2001 Delivered-To: freebsd-stable@freebsd.org Received: from smtp.noos.fr (verlaine.noos.net [212.198.2.73]) by hub.freebsd.org (Postfix) with ESMTP id 3309437B416 for ; Sun, 11 Nov 2001 11:31:06 -0800 (PST) Received: (qmail 8594663 invoked by uid 0); 11 Nov 2001 19:31:04 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.229.145]) (envelope-sender ) by 212.198.2.73 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 11 Nov 2001 19:31:04 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id fABJV3j10940; Sun, 11 Nov 2001 20:31:03 +0100 (CET) (envelope-from root) Message-Id: <200111111931.fABJV3j10940@gits.dyndns.org> Subject: Re: "disklabel -rw ar0 auto" breaks HPT raid0+1 In-Reply-To: <20011111063730.A3860@FreeBSD.org> To: John De Boskey Date: Sun, 11 Nov 2001 20:31:03 +0100 (CET) Cc: Stable List Reply-To: clefevre@citeweb.net From: Cyrille Lefevre Organization: ACME X-Face: X-Mailer: ELM [version 2.4ME+ PL95a (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John De Boskey wrote: > Hi, > > I have an ABIT KT7A-RAID motherboard with the builtin > HPT370 controller: > > atapci1: port 0xe800-0xe8ff,0xe400-0xe403,0 > > ar0: 190792MB [24322/255/63] subdisks: > ad6: 95396MB [193821/16/63] at ata3-master UDMA100 > ad5: 95396MB [193821/16/63] at ata2-slave UDMA100 > ad4: 95396MB [193821/16/63] at ata2-master UDMA100 > ad7: 95396MB [193821/16/63] at ata3-slave UDMA100 > > > After setting up the raid (stripes are quick, mirror takes 4+ hours) > and booting the machine I get the above. > > The disklabel command: > > disklabel -rw ar0 auto > > creates and writes a label. > > newfs -c 22 /dev/ar0c > > writes a filesystem on to the disk which can then be mounted and used. > However, when the system is rebooted, the HPT controller says the stripe > has been broken and needs to be re-synced. After re-syncing the array comes > up fine and continues to work correctly across reboots with no problems. > > Having debugged this a few times, it appears that disklabel is writing > data over the control information at the head of the disks. Looking at the > ata-raid.c source code, it appears to be reserving 10 blocks. Am I stuck > simply increasing this number until the problem goes away or is there > any real information on the control structures being written out? as I understand it, you are partitionning your drive in "dangerously dedicated mode" which is the wrong way to go. to avoid this problem you have to partition your drive using fdisk and to create your BSD slices w/in MSDOS partitions. maybe I'm wrong, but I'm almost sure I'm not. Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message