Subject: amr driver and RAID hardware controller DELL PERC 4/Di
To: port-i386 <port-i386@netbsd.org>
From: Pierre Bourgin <pierre.bourgin@pcotech.fr>
List: port-i386
Date: 07/24/2003 18:27:50
Hello,


I've got a DELL PowerEdge 2600 with a dual RAID hardware controller DELL
PERC 4/Di.

Thanks to patches I found in NetBSD-current mailing list, I was able to
use the PERC 4/Di with the amr* driver; cf. :

http://mail-index.netbsd.org/current-users/2003/06/09/0071.html

It was a nightmare to install, especially because of the large size of
the RAID-logical drives ld*, that implied some modification of the usual
scheme for disklabel (block size, fragment size).

% dmesg |grep ld0
ld0 at amr0 unit 0: RAID 1, optimal
ld0: 69878 MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sect x 143110144 sectors
boot device: ld0
root on ld0a dumps on ld0b

% disklabel ld0
# /dev/rld0d:
type: unknown
disk: unknown
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 8908
total sectors: 143110144
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
    a:   6297417        63     4.2BSD   4096 16384    32   # (Cyl.    0*- 391)
    b:   2088450   6297480       swap                      # (Cyl.  392 - 521)
    c: 143110081        63     unused      0     0         # (Cyl.    0*- 8908*)
    d: 143110144         0     unused      0     0         # (Cyl.    0 - 8908*)


I set empiricaly fsize, bsize and cpg/sgs because newfs was complaining about
these values (and thanks to its output).

Where I can find doc. about how to set these values correctly ? I saw nothing
in the NetBSD official documentation :(


The NetBSD kernel is 1.6U (2003/07/19), with patches for amr driver,
but the system binaries (the sets) come from NetBSD-1.6.1.

Due to this configuration, some utilies kernel-related do not work of
course (lsof, systat), but I'm a little afraid of running -current on
a production server, since I was not able to build a complete release
of -current-2003-07-19.

I can't use a NetBSD-1.6.1 based kernel, since the amr driver does not
seem to work in this release (the source files are present, but amr*
is not even listed in the GENERIC config file).


I was wondering if it's possible to get infos from the Perc 4/Di, such
as status of RAID logical devices : I removed a harddrive of a RAID-5
logical drive, but not kernel msg came from amr driver.

the scsictl utility does not work of course, since no scsibus are
attached to the amr* driver.

Do you have some hints about it, or better some advices on these informations ?


Regards,

Pierre Bourgin