From owner-freebsd-current@FreeBSD.ORG Sat Apr 30 18:18:41 2005 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 5039316A4CE for ; Sat, 30 Apr 2005 18:18:41 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52CBC43D6B for ; Sat, 30 Apr 2005 18:18:40 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.13.3/8.13.3) with ESMTP id j3UIGs1F051710; Sat, 30 Apr 2005 20:16:54 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4273CB88.9000808@DeepCore.dk> Date: Sat, 30 Apr 2005 20:16:40 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jondoor@udor.net References: <4272AFC6.2040907@udor.net> <4273441E.5000609@DeepCore.dk> <4273B234.8070808@udor.net> In-Reply-To: <4273B234.8070808@udor.net> Content-Type: multipart/mixed; boundary="------------060807050509090409010303" X-mail-scanned: by DeepCore Virus & Spam killer v1.12 cc: freebsd-current@freebsd.org Subject: Re: ATA RAID -- Promise SATA150 vanished /dev/ar0 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: Sat, 30 Apr 2005 18:18:41 -0000 This is a multi-part message in MIME format. --------------060807050509090409010303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Jon Door wrote: > Using the BIOS. The Fasttrak reports the array as functional during=20 > boot, and returning to a 5.4 kernel allows me to mount the volume=20 > without incident. > Thanks! >=20 > It looks like its not getting any metadata persiod, cut from the dmesg:= >=20 > ata0-master: pio=3DPIO4 wdma=3DWDMA2 udma=3DUDMA133 cable=3D40 wire > ad4: 114440MB at ata2-master SATA150 > ad4: 234375000 sectors [232514C/16H/63S] 16 sectors/interrupt 1 depth q= ueue > ad4: Promise check1 failed > ad4: Adaptec check1 failed > ad4: LSI (v3) check1 failed > ad4: LSI (v2) check1 failed > ad4: FreeBSD check1 failed > ata1-master: pio=3DPIO4 wdma=3DWDMA2 udma=3DUDMA133 cable=3D40 wire > ad6: 114440MB at ata3-master SATA150 > ad6: 234375000 sectors [232514C/16H/63S] 16 sectors/interrupt 1 depth q= ueue > ad6: Promise check1 failed > ad6: Adaptec check1 failed > ad6: LSI (v3) check1 failed > ad6: LSI (v2) check1 failed > ad6: FreeBSD check1 failed OK, I think we are looking at the wrong place for the metadata, I think=20 I messed up and made the calculation too simple :) Try this patch: --=20 -S=F8ren --------------060807050509090409010303 Content-Type: text/plain; name="jon-p1" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="jon-p1" Index: ata-raid.h =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-raid.h,v retrieving revision 1.32 diff -u -r1.32 ata-raid.h --- ata-raid.h 30 Apr 2005 16:22:07 -0000 1.32 +++ ata-raid.h 30 Apr 2005 18:16:22 -0000 @@ -521,8 +521,13 @@ /* Promise FastTrak Metadata */ +#if 0 #define PR_LBA(dev) \ (((struct ad_softc *)device_get_ivars(dev))->total_secs - 63) +#else +#define PR_LBA(dev) \ + (((((struct ad_softc *)device_get_ivars(dev))->total_secs / (((struct ad_softc *)device_get_ivars(dev))->heads * ((struct ad_softc *)device_get_ivars(dev))->sectors)) * ((struct ad_softc *)device_get_ivars(dev))->heads * ((struct ad_softc *)device_get_ivars(dev))->sectors) - ((struct ad_softc *)device_get_ivars(dev))->sectors) +#endif struct promise_raid_conf { char promise_id[24]; --------------060807050509090409010303--