The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* RAID controller safety
@ 2005-12-29 16:29 Kenny Simpson
  2005-12-30 15:17 ` Alan Cox
  0 siblings, 1 reply; 16+ messages in thread
From: Kenny Simpson @ 2005-12-29 16:29 UTC (permalink / raw)
  To: linux kernel

Hello,
  I am trying to determine which drivers and what hardware can be used to give reliable fsync
behavior.  I see many drivers with FIXME or TODO comments which make me nervous.
  I see the sd driver supports the direct SYNCHRONIZE_CACHE, but I'me having a hard time tracing
through how this translates to raid controllers and their drivers.
  Specificly, I am looking at the Adaptec RAID controllers and their i2o drivers.  I am told the
kernel's i2o driver lacks a strong guarantee on fsync, and so far am unable to determine if the
dpt_i2o driver also falls short in this reguard.

  I don't mean to start a 'drives lie - disable all caching, buy FC drives' flame war.  I know
drives can lie, but I'd like to know if the drivers are lying too.

thanks,
-Kenny



	
		
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: RAID controller safety
@ 2006-01-06 14:33 Salyzyn, Mark
  2006-01-06 14:46 ` Alan Cox
  0 siblings, 1 reply; 16+ messages in thread
From: Salyzyn, Mark @ 2006-01-06 14:33 UTC (permalink / raw)
  To: Alan Cox, Kenny Simpson; +Cc: linux kernel

Alan Cox sez:
> 2005-12-29 at 08:29 -0800, Kenny Simpson wrote:
> > Specificly, I am looking at the Adaptec RAID controllers 
> > and their i2o drivers.  I am told the
> > kernel's i2o driver lacks a strong guarantee on fsync, and 
> > so far am unable to determine if the
> > dpt_i2o driver also falls short in this reguard.
> Only dpt can tell you what their firmware actually does.

The dpt_i2o driver (which is a scsi driver) accepts the
SYNCHRONIZE_CACHE scsi command and passes it off to the firmware. The
firmware respects this and flushes all the outstanding (cached)
commands. This is true in all (kernel.org or Adaptec latest) versions.

The only environment, in my memory, that this has been tested is in the
ASR driver in FreeBSD, where this behavior is necessary in support of
cluster checkpointing.

-- Mark Salyzyn

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: RAID controller safety
@ 2006-01-06 17:06 Salyzyn, Mark
  0 siblings, 0 replies; 16+ messages in thread
From: Salyzyn, Mark @ 2006-01-06 17:06 UTC (permalink / raw)
  To: Kenny Simpson, Alan Cox; +Cc: linux kernel, Markus Lidel

Kenny Simpson [mailto:theonetruekenny@yahoo.com] sez:
> Won't the i2o_block driver use i2o_block_device_flush to 
> flush the devices' cache (by issuing a
> I2O_CMD_BLOCK_CFLUSH), or this this function used in some 
> very different context?

We support I2O_BSA_CACHE_FLUSH, which is the i2o spec definition of this
identifier. It is merely internally re-issued as a SCSI
SYNCHRONIZE_CACHE command issued to the block device TID.

> Oddly enough, I see I2O_CMD_BLOCK_CFLISH #define'd to 0x37 in 
> both the i2o driver
> (include/linux/i2o.h), AND in the dpt driver 
> (drivers/scsi/dpt/dpti_i2o.h).  However, I do not see
> the dpt driver using this value anywhere.

The dpt_i2o driver is a *SCSI* driver, and the card accepts SCSI
commands to all the devices (including block). The dpt_i2o driver uses
the SCSI synchronize as the path for this action, that is why you see no
utilization of I2O_BSA_CACHE_FLUSH.

A DPT private message is used to issue these SCSI commands to the
controller.

Sincerely -- Mark Salyzyn

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-01-06 17:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-29 16:29 RAID controller safety Kenny Simpson
2005-12-30 15:17 ` Alan Cox
2005-12-30 16:18   ` Kenny Simpson
2005-12-30 18:20     ` Alan Cox
2005-12-30 18:58       ` Kenny Simpson
2005-12-30 19:31         ` Bernd Eckenfels
2005-12-31  0:49         ` Alan Cox
2005-12-31  3:25           ` Kenny Simpson
2005-12-31  3:29           ` Kenny Simpson
2005-12-31  6:55           ` Kenny Simpson
2005-12-31  7:57           ` Kenny Simpson
  -- strict thread matches above, loose matches on Subject: below --
2006-01-06 14:33 Salyzyn, Mark
2006-01-06 14:46 ` Alan Cox
2006-01-06 15:18   ` Kenny Simpson
2006-01-06 16:02     ` Alan Cox
2006-01-06 17:06 Salyzyn, Mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox