xfs
[Top] [All Lists]

Re: Question: Does XFS journal data or only metadata?

To: Steve Lord <lord@xxxxxxx>
Subject: Re: Question: Does XFS journal data or only metadata?
From: Anders Saaby <as@xxxxxxxxxxxx>
Date: Thu, 3 Feb 2005 17:40:00 +0100
Cc: Nathan Scott <nathans@xxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <200502031724.56665.as@xxxxxxxxxxxx>
Organization: Cohaesio A/S
References: <200502031005.57621.as@xxxxxxxxxxxx> <200502031716.59894.as@xxxxxxxxxxxx> <200502031724.56665.as@xxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.7.2
On Thursday 03 February 2005 17:24, Anders Saaby wrote:
> On Thursday 03 February 2005 17:16, Anders Saaby wrote:
> > On Thursday 03 February 2005 16:15, Steve Lord wrote:
> > > The bit about setting the values twice should not be necessary, I
> > > think that endian bug should be ancient history.
> > >
> > > You may need to run xfs_repair before mount will work nowadays too,
> > > try it and see.
> > >
> > > Steve
> >
> > Yup - This is fixed:
> >
> > xfs_db> write logblocks 8750
> > logblocks = 8750
> >
> > Actually the move works, I am able to move the log from internal to
> > external and back again. - And able to mount the filesystem in both
> > cituations, but xfs_repair doesen't agree. When running xfs_repair on the
> > filesystem after I have moved the log to an external device the following
> > error occurs:
> >
> > <XFS_REPAIR ERROR>
> > st3:~# xfs_repair -L -l /dev/sda4 /dev/sdc1
> > Phase 1 - find and verify superblock...
> >
> > fatal error -- could not read superblock
> > </XFS_REPAIR ERROR>
>
> Don't know if this is relevant, but this strace looks interesting:
>

OK - After looking at the strace I checked the _other_ superblocks. As I only 
altered SB0, the other superblocks SB1+ still contains the old logstart 
value.

Wrote "logfile 0" to SB 0 - SB 15, and it all works! :)

It this the way to do it, or am I missing something obvious?

-- 
Med venlig hilsen - Best regards - Meilleures salutations

Anders Saaby
Systems Engineer
------------------------------------------------
Cohaesio A/S - Maglebjergvej 5D - DK-2800 Lyngby
Phone: +45 45 880 888 - Fax: +45 45 880 777
Mail: as@xxxxxxxxxxxx - http://www.cohaesio.com
------------------------------------------------


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