Ragnar Sundblad wrote:

I was referring to the case where zfs has written data to the drive but
still hasen't issued a cache flush, and before the cache flush the drive
is reset. If zfs finally issues a cache flush and then isn't informed
that the drive has been reset, data is lost.

I hope this is not the case, on any SCSI-based protocol or SATA.

The nasty race that occurs is if your system crashes or is powered off
*after* the log has acknowledged the write, but before the bits get
shoved to main pool storage.  This is a data loss situation.

With "log", do you mean the ZIL (with or without a slog device)?
If so, that should not be an issue and is exactly with the ZIL
is for - it will be replayed at the next filesystem attach and the
data will be pushed to the main pool storage. Do I misunderstand you?

See your case above - written, ack'd, but not cache flushed. We're talking about the same thing.

--
Carson
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to