[Top] [All Lists]

Re: How to simulate journal corruption

To: crow al <al-john@xxxxxxxxxxx>
Subject: Re: How to simulate journal corruption
From: Olaf Weber <olaf@xxxxxxx>
Date: Mon, 13 Jul 2009 13:28:45 +0200
Cc: <xfs@xxxxxxxxxxx>
In-reply-to: <SNT109-W2390816D3EF297CE0D07DEEC220@xxxxxxx> (crow al's message of "Mon, 13 Jul 2009 13:55:05 +0800")
References: <SNT109-W2390816D3EF297CE0D07DEEC220@xxxxxxx>
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.3 (irix)
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.

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@xxxxxxx

<Prev in Thread] Current Thread [Next in Thread>