[Top] [All Lists]

Re: UPDATE: low-level XFS drive recovery

To: Adam Milazzo <adam@xxxxxxxxxxxx>
Subject: Re: UPDATE: low-level XFS drive recovery
From: Curtis Anderson <curtisanderson1@xxxxxxxxx>
Date: Wed, 24 Apr 2002 12:32:27 -0700
Cc: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
References: <44D5677E9B8478468DE31AE26DF0AFD6077C97@adsl-64-165-6-11.dsl.sndg02.pacbell.net>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv: Gecko/20020314 Netscape6/6.2.2
Adam Milazzo wrote:

I will try that, but I'd like to note one thing. The drive actually had
everything deleted with [essentially] 'rm -rf /mnt/drive/*'.

Isn't there still a utility to print out the contents of the transaction log?

If the history in the log goes back far enough, then you will see images of
all of the inodes as they existed before they were deleted.  XFS uses post-image
logging so you will not see the extent lists in the log transaction that deletes
the file, you will have to look for the change just prior to that.

The log will include the extent lists where your blocks were located as well as
where the directory entries for the filesystem were located.  Looking backward
in the log is exactly like looking backward in time (to before the deletions).

Note that the log might not go back far enough, the on-disk structures are
rather complex, the log records are also complex, etc, etc...



Curtis Anderson         Storage Architect               

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