Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Apr 2005 20:16:40 +0200
From:      =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@DeepCore.dk>
To:        jondoor@udor.net
Cc:        freebsd-current@freebsd.org
Subject:   Re: ATA RAID -- Promise SATA150 vanished /dev/ar0
Message-ID:  <4273CB88.9000808@DeepCore.dk>
In-Reply-To: <4273B234.8070808@udor.net>
References:  <4272AFC6.2040907@udor.net> <4273441E.5000609@DeepCore.dk> <4273B234.8070808@udor.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <Maxtor 6Y120M0 YAR51EW0> 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 <Maxtor 6Y120M0 YAR51EW0> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4273CB88.9000808>