Question on External RAID Disaster Scenario
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Data Storage > Question on External RAID Disaster Scenario




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Question on External RAID Disaster Scenario  
Ernest Siu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 10:46 PM

The question is on the role of host cache during disaster with SAN.
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?
- does this implies the application has lost/corrupted user data
because it thought it has completed the write?
- will the host timeout the write?  is the timeout parameter
configurable?  is it the OS or the filesystem?
- what about the directory structure (inode and other metadata stuff)?
are they always on write-through mode?  what if it is not?
filesystem corruption?

Regards,
Ernest





[ Post a follow-up to this message ]



    Re: Question on External RAID Disaster Scenario  
Bill Todd


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Question on External RAID Disaster Scenario  
Lianghwa Jou


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-04 01:45 AM

Bill Todd wrote:
> "Ernest Siu" <ernestsiu@yahoo.com> wrote in message
> news:2833144d.0408270916.23df61c1@posting.google.com...
> 
>
>
> It's not clear that the presence or absence of a SAN makes any difference 
in
> this scenario.
>
> 
>
>
> Yes, usually.
>
> 
>
>
> 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 eith
er
> specifies write-through behavior on the write operation or 'flushes'
> ('syncs') the data explicitly.
>
If an application really want to have control, it should use the raw
device to bypass the filesystem. Orcale DBMS usually does that.
> 
>
>
> Usually; usually; the file system.
>
> 
>
>
> Depends upon the file system, and/or on the options selected in it.
>
>   what if it is not?
> 
>
>
> 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 ]



    Re: Question on External RAID Disaster Scenario  
Bill Todd


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-04 01:45 AM


"Lianghwa Jou" <ljou1@comcast.net> wrote in message
news:41312065.1070404@comcast.net...

...

> If an application really want to have control, it should use the raw
> device to bypass the filesystem. Orcale DBMS usually does that.

Actually, Oracle has increasingly been happy to layer on top of file systems
like VxFS, which provide flexible and, if desired, direct access to disk
without sacrificing the conveniences of a logical rather than a physical
interface.

The bottom line is to use a file system that gives you the degree of control
you desire while masking the complexity that can still be masked.  And
different file systems vary considerably in this regard.

- bill








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:43 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register