On Wed, Jan 22, 2003 at 07:58:31AM +0100, Marc Schneiders wrote: > Does someone see some sort of pattern in the times (from > /var/log/messages) below? I do but know not what. > > And what could explain it? > > Please, note that it occurs on both harddisks and on both controllers. > > Something cron related? Something swap related, since there is swap > space on both disks? I think, however, that swap is hardly used: > > Device 1K-blocks Used Avail Capacity Type > /dev/ad0s1b 524160 16 524144 0% Interleaved > /dev/rad2b 524160 0 524160 0% Interleaved > Total 1048320 16 1048304 0% > <snip> > > Jan 21 18:49:40 pan /kernel: ad2: WRITE command timeout tag=0 serv=0 - > resetting > Jan 21 18:49:40 pan /kernel: ata1: resetting devices .. ata1-slave: > ATA identify retries exceeded > Jan 21 18:49:40 pan /kernel: done > Jan 21 19:47:39 pan /kernel: ad2: WRITE command timeout tag=0 serv=0 - > resetting > Jan 21 19:47:39 pan /kernel: ata1: resetting devices .. ata1-slave: > ATA identify retries exceeded > Jan 21 19:47:39 pan /kernel: done > Jan 21 22:06:39 pan /kernel: ad0: WRITE command timeout tag=0 serv=0 - > resetting <snip>
Do you have DMA enabled on those drives when possibly they don't support it? What type of ribbon cable are you using - a 40 or 80 conductor? Try setting the sysctl(8) value "hw.ata.ata_dmai" to 0 and see what results you get. The errors you are getting look similar to ones I've seen where the kernel is trying to use DMA on a drive that doesn't support it, or on a drive that supports DMA that is using an improper 40 conductor cable instead of the correct 80 conductor cable. You can use the atacontrol(8) utilitly to find out more about the capabilities of your devices. For example, `atacontrol cap 0 0` should give you all manner of info about your primary master ATA device. If you want to set the value of "hw.ata.ata_dma" on boot, you will have to put the command in the file /boot/loader.conf as a line with the text "hw.ata.ata_dma=0". It needs to go here rather /etc/sysctl.conf because by the time /etc/sysctl.conf is processes the disk subsystems have already been activated. Nathan -- GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc
msg16310/pgp00000.pgp
Description: PGP signature