08-27-04 10:46 PM
"Ernest Siu" <ernestsiu@yahoo.com> wrote in message
news:2833144d.0408270916.23df61c1@posting.google.com...
> The question is on the role of host cache during disaster with SAN.
It's not clear that the presence or absence of a SAN makes any difference in
this scenario.
> Let's assume a simple setup with a host connecting to an external RAID
> box. An application write data, host put them on it's page cache and
> tells the application that it's done, and so application carries on.
> While the dirty data are still sitting in the host cache, the power on
> the external RAID died (or cable cut).
>
> Questions:
> - is the above description correct - host page cache is for both read
> and write-back?
Yes, usually.
> - does this implies the application has lost/corrupted user data
> because it thought it has completed the write?
No: in typical environments no application has no right to assume that it
has 'completed' a write (i.e., that the data is persistent) unless it either
specifies write-through behavior on the write operation or 'flushes'
('syncs') the data explicitly.
> - will the host timeout the write? is the timeout parameter
> configurable? is it the OS or the filesystem?
Usually; usually; the file system.
> - what about the directory structure (inode and other metadata stuff)?
> are they always on write-through mode?
Depends upon the file system, and/or on the options selected in it.
what if it is not?
> filesystem corruption?
Not necessarily: The 'soft updates' version of the file system on *BSD
systems should prevent any corruption even with write-back handling of
metadata (but of course can still 'lose' the last few updates on a crash).
- bill
[ Post a follow-up to this message ]
|