* How to simulate journal corruption @ 2009-07-13 5:55 crow al 2009-07-13 11:28 ` Olaf Weber 2009-07-13 14:44 ` Eric Sandeen 0 siblings, 2 replies; 6+ messages in thread From: crow al @ 2009-07-13 5:55 UTC (permalink / raw) To: xfs [-- Attachment #1.1: Type: text/plain, Size: 638 bytes --] 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. _________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx [-- Attachment #1.2: Type: text/html, Size: 806 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to simulate journal corruption 2009-07-13 5:55 How to simulate journal corruption crow al @ 2009-07-13 11:28 ` Olaf Weber 2009-07-13 14:44 ` Eric Sandeen 1 sibling, 0 replies; 6+ messages in thread From: Olaf Weber @ 2009-07-13 11:28 UTC (permalink / raw) To: crow al; +Cc: xfs crow al writes: > 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? For clobbering a filesystem image in general you can use fsfuzz. http://people.redhat.com/sgrubb/files/fsfuzzer-0.7.tar.gz If log replay is of particular interest, you might want to modify that code to target the XFS log in particular. The XFS QA tests do not, IIRC, contain tests that deliberately trash the XFS log, but there are some tests that exercise log replay, and you may want to take a look at those to see ways to get an XFS filesystem image with a non-empty log to replay. Note that kernel-side, if log replay fails the expected/desired result is that kernel won't mount the filesystem. -- Olaf Weber SGI Phone: +31(0)30-6696752 Veldzigt 2b Fax: +31(0)30-6696799 Technical Lead 3454 PW de Meern Vnet: 955-7151 Storage Software The Netherlands Email: olaf@sgi.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to simulate journal corruption 2009-07-13 5:55 How to simulate journal corruption crow al 2009-07-13 11:28 ` Olaf Weber @ 2009-07-13 14:44 ` Eric Sandeen 2009-07-14 2:08 ` crow al [not found] ` <SNT109-W27FBC11B3A147486A10FAAEC200@phx.gbl> 1 sibling, 2 replies; 6+ messages in thread From: Eric Sandeen @ 2009-07-13 14:44 UTC (permalink / raw) To: crow al; +Cc: xfs 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 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: How to simulate journal corruption 2009-07-13 14:44 ` Eric Sandeen @ 2009-07-14 2:08 ` crow al [not found] ` <SNT109-W27FBC11B3A147486A10FAAEC200@phx.gbl> 1 sibling, 0 replies; 6+ messages in thread From: crow al @ 2009-07-14 2:08 UTC (permalink / raw) To: sandeen, olaf; +Cc: xfs [-- Attachment #1.1: Type: text/plain, Size: 1951 bytes --] Hi, Olaf & Eric Thanks for your kindly reply. I will try your suggestions & if there is any interesting findings, I will let your know Thanks & Regards. Lv Wentao. > Date: Mon, 13 Jul 2009 09:44:03 -0500 > From: sandeen@sandeen.net > To: al-john@hotmail.com > CC: xfs@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 _________________________________________________________________ With Windows Live, you can organize, edit, and share your photos. http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx [-- Attachment #1.2: Type: text/html, Size: 2669 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <SNT109-W27FBC11B3A147486A10FAAEC200@phx.gbl>]
* RE: How to simulate journal corruption [not found] ` <SNT109-W27FBC11B3A147486A10FAAEC200@phx.gbl> @ 2009-07-15 8:02 ` Wentao Lv (wentalv) 2009-07-15 13:58 ` Eric Sandeen 0 siblings, 1 reply; 6+ messages in thread From: Wentao Lv (wentalv) @ 2009-07-15 8:02 UTC (permalink / raw) To: sandeen; +Cc: xfs [-- Attachment #1.1: Type: text/plain, Size: 2051 bytes --] Hi, Eric Could you tell me where I could find XFS-QA test cases? Thanks & Regards. Lv Wentao. From: crow al [mailto:al-john@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@sandeen.net > To: al-john@hotmail.com > CC: xfs@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> [-- Attachment #1.2: Type: text/html, Size: 8986 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to simulate journal corruption 2009-07-15 8:02 ` Wentao Lv (wentalv) @ 2009-07-15 13:58 ` Eric Sandeen 0 siblings, 0 replies; 6+ messages in thread From: Eric Sandeen @ 2009-07-15 13:58 UTC (permalink / raw) To: Wentao Lv (wentalv); +Cc: xfs Wentao Lv (wentalv) wrote: > Hi, Eric > > > > Could you tell me where I could find XFS-QA test cases? > http://git.kernel.org/?p=fs/xfs/xfstests-dev.git;a=summary is devel stuff, often a bit ahead of the "official" repo which is at: http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs/cmds/xfstests.git;a=summary -Eric > > Thanks & Regards. > > Lv Wentao. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-07-15 13:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13 5:55 How to simulate journal corruption crow al
2009-07-13 11:28 ` Olaf Weber
2009-07-13 14:44 ` Eric Sandeen
2009-07-14 2:08 ` crow al
[not found] ` <SNT109-W27FBC11B3A147486A10FAAEC200@phx.gbl>
2009-07-15 8:02 ` Wentao Lv (wentalv)
2009-07-15 13:58 ` Eric Sandeen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox