tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ataraid(4) and VOP_OPENing the same block device



On Tue, 26 Aug 2008 19:37:11 +0200
"Juan Romero Pardines" <xtraeme%gmail.com@localhost> wrote:

> 2008/8/26 Adam Hamsik <haaaad%gmail.com@localhost>:
> 
> > You mean ldstrategy in ld(4) driver here ?
> 
> Yes.
> 
> > read and write calls on raw devices are transformed to strategy call by
> > physio routine.
> 
> Ah, yes. That's right... I'll take a look at it then.

Thanks to this suggestion, ataraid(4) with an Intel MatrixRAID
controller is working fully with multiple volumes:

$ dmesg|grep -E '(ld[01]|ataraid)' 
ataraid0: found 2 RAID volumes
ld0 at ataraid0 vendtype 5 unit 0: Intel MatrixRAID ATA RAID-0 array
ld0: 233 GB, 30416 cyl, 255 head, 63 sec, 512 bytes/sect x 488636416 sectors
ld1 at ataraid0 vendtype 5 unit 1: Intel MatrixRAID ATA RAID-1 array
ld1: 117 GB, 15306 cyl, 255 head, 63 sec, 512 bytes/sect x 245905408 sectors
$

$ mount|grep 'ld[01]'
/dev/ld0a on /mnt/raid0 type ffs (log, local)
/dev/ld1a on /mnt/raid1 type ffs (log, local)
$

$ sudo bioctl ld0 show
Volume Status       Size         Device/Label    Level Stripe
=============================================================
     0 Online       233G          ld0 Volume0   RAID 0   256K 
   0:0 Online       234G            0:3.0 wd3 <WDC WD2500YS-01SHB1 20.06C06>
   0:1 Online       234G            0:4.0 wd4 <WDC WD2500YS-01SHB1 20.06C06>
$ sudo bioctl ld1 show 
Volume Status       Size         Device/Label    Level Stripe
=============================================================
     0 Online       117G          ld1 Volume1   RAID 1    N/A 
   0:0 Online       234G            0:3.0 wd3 <WDC WD2500YS-01SHB1 20.06C06>
   0:1 Online       234G            0:4.0 wd4 <WDC WD2500YS-01SHB1 20.06C06>
$


Home | Main Index | Thread Index | Old Index