[Lustre-discuss] filesystem corruption
Richard Smith
Richard.Smith at Sun.COM
Mon Sep 7 04:54:58 PDT 2009
Kevin Van Maren wrote:
> This subject has been discussed many times...
>
> Not just the controller, but the drives as well.
>
> The problem is with write-back caches that _lie_ about the data being in
> persistent store. The drive itself, with write-back cache enabled, lies
> and says data is on disk. RAID controllers likewise use write-back
> cache to lie about the data being on disk.
<snip>
I'm not convinced there's any lie involved. SCSI permits data to be
written back only as far as a cache and have a GOOD status returned at that
point. If for any reason a guarantee is required that the data really is on
media, then my understanding is that's what SYNCHRONIZE CACHE command and/or
FUA (Force Unit Access) control bit is for. What's not so clear to me is
under what circumstances either technique is triggered, whether an fsync
is sufficient for example to propagate the request down to the low-level
device driver. It sounds like it would be device driver-specific.
--
============================================================================
,-_|\ Richard Smith Staff Engineer PAE
/ \ Sun Microsystems Phone : +61 3 9869 6200
richard.smith at Sun.COM Direct : +61 3 9869 6224
\_,-._/ 476 St Kilda Road Fax : +61 3 9869 6290
v Melbourne Vic 3004 Australia
===========================================================================
More information about the lustre-discuss
mailing list