[Top] [All Lists]

Re: [LNX-XFS] log questions

To: Kelsey Cummings <kgc@xxxxxxxxx>
Subject: Re: [LNX-XFS] log questions
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Sun, 25 Jan 2004 13:55:49 -0600 (CST)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20040124004030.GS32531@xxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Fri, 23 Jan 2004, Kelsey Cummings wrote:

> Another, closely related question:  Is is possible to recreate a log on
> an external device that has been lost?

Sure, just make another device of at least tthe size of the original
log, and zero it all out.  you'd probably want to run repair, depending
on how you lost the log in the first place.

> I'm benchmarking the use of a SSD for the logdevice (results are a bit
> suprising) and one concern that I have is if the SSD fails, can I create a
> new log easily for it?  I can always make a image of the logdevice with dd,
> and keep it around as a backup, but that seems a bit strange and I'm not
> sure that the it would work correctly anyway.

The log is constantly changing, as it is circular.  backing it
up would do you no good; if it dies, you've lost metadata info
and your fs is inconsistent.  You can recover to some extent by
adding a new device, zeroing it out, and running repair, but this
is not something you want to do as a matter of course.


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