How to simulate journal corruption

Wentao Lv (wentalv) wentalv at cisco.com
Wed Jul 15 03:02:01 CDT 2009


Hi, Eric

 

Could you tell me where I could find XFS-QA test cases? 

 

Thanks & Regards.

Lv Wentao.

 

From: crow al [mailto:al-john at hotmail.com] 
Sent: Wednesday, July 15, 2009 3:51 PM
To: Wentao Lv (wentalv)
Subject: FW: How to simulate journal corruption

 



> Date: Mon, 13 Jul 2009 09:44:03 -0500
> From: sandeen at sandeen.net
> To: al-john at hotmail.com
> CC: xfs at oss.sgi.com
> Subject: Re: How to simulate journal corruption
> 
> crow al wrote:
> > Hi, there
> > 
> > I'm a QA engineer from Cisco. I'm working on a test case concerning
XFS
> > journal playback failure, which needs to manually inject error to
XFS.
> > 
> > I did some google work but get no luck. Then I think maybe XFA-QA
could
> > give me some advice. That why I come to here.
> > 
> > Is there anyone could tell me how to inject error into XFS or is
there
> > any tool could be used?
> > 
> > Wish for your response.
> > 
> > Thanks & Regards.
> > Lv Wentao.
> 
> test 044 in xfstests runs something called "loggen" which will
generate
> log traffic to be replayed on mount, if I'm reading it right. Of
course
> that's an uncorrupted log ...
> 
> There is another tool called "fsfuzzer" which writes random junk over
a
> filesystem. You could probably combine the two tools to create valid
> logs to replay, and then write varying degrees of junk on top with
> fsfuzzer, and try to replay the result.
> 
> You could probably even use fsfuzzer "stock" and just restrict the
> fuzzing to the log portion of the filesystem.
> 
> I'm not sure what kinds of errors you are trying to catch - oopses,
> hangs, improperly replaying a corrupted log, etc - but it sounds well
> worth doing. FWIW when I used fsfuzzer, it often ran into problems in
> the log, so I imagine you'll uncover some interesting things; if you
do,
> please share. :)
> 
> -Eric

________________________________

What can you do with the new Windows Live? Find out
<http://www.microsoft.com/windows/windowslive/default.aspx> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20090715/f562b6ec/attachment.htm>


More information about the xfs mailing list