Saturday, November 06, 2004

Using Hitachi 7k60 with FreeBSD

Earlier this year I posted my experience using a ByteCC 2.5 HDD enclosure with FireWire and USB 2.0 plugged into an Adaptec DuoConnect PC Card adapter on my laptop. Then I used a 30 GB HDD and had no problems. Today I replaced that 30 GB HDD with a Hitachi Travelstar 7K60 60 GB 7200 RPM HDD. I noticed the kernel reporting errors like the following when I tried to copy data from my laptop to the external HDD:

Nov 6 09:41:18 orr kernel: sbp0:0:0 No ocb(1468928c) on the queue
Nov 6 09:41:27 orr kernel: sbp0:0:0 No ocb(14689634) on the queue
Nov 6 09:41:40 orr kernel: sbp0:0:0 No ocb(146899dc) on the queue
Nov 6 09:41:40 orr kernel: sbp0:0:0 No ocb(14689d84) on the queue

Luckily this post suggested disabling Tagged Queueing, which I saw was enabling by default when the drive was recognized:

GEOM: create disk da0 dp=0xc3a84850
da0 at sbp0 bus 0 target 0 lun 0
da0: Fixed Direct Access SCSI-0 device
da0: 50.000MB/s transfers, Tagged Queueing Enabled
da0: 57231MB (117210240 512 byte sectors: 255H 63S/T 7296C)

I disabled Tagged Queueing using this syntax:

orr:/# camcontrol tags da0 -N 1
(pass0:sbp0:0:0:0): tagged openings now 1
(pass0:sbp0:0:0:0): device openings: 1

This change allowed me to use the external HDD with no problems.

1 comment:

Serg said...

Strange, it should seemed to me external HDD to work without problems