* Re: Question: Does XFS journal data or only metadata?
[not found] ` <4202594B.3030204@xfs.org>
@ 2012-02-09 11:45 ` Michal Szymanski
2012-02-09 22:03 ` Dave Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Michal Szymanski @ 2012-02-09 11:45 UTC (permalink / raw)
To: linux-xfs
Steve Lord <lord <at> xfs.org> writes:
> > 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?
> >
>
> That is the way to do it, the tools are more picky than they used
> to be about this. Which is why getting the facility built into
> the tools would help a lot - since it would do the fixup of all
> superblocks itself.
>
> Steve
This is a pretty old thread but I have not found anything newer, so
maybe somebody is still watching.
I went through internal->external log procedure as described here and
linked-to articles a few years ago and it worked fine. These days I got
into similar problem after reconfiguring a disk which holds the
external log for a XFS partition. The question to the gurus is
following:
Is it possible to migrate an external log to internal if the XFS
filesystem was originally created without an internal log, i.e. it was
put on external device straight at mkfs.xfs invocation?
xfs_growfs still says, after 7 years, at least in the man page, that
-l/-i/-x options are not implemented. Is it really so?
regards, Michal.
PS. Just to comment on multiple SBs issue. The need for manually rewrite
ALL superblocks' data was mentioned in the first comment (by Eric
Sandeen) to the excellent HOWTO written by Steve Lord in
http://oss.sgi.com/archives/xfs/2003-11/msg00683.html
The thread is titled:
It just begs the question everywhere: how to move a journaling
log to a new device?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question: Does XFS journal data or only metadata?
2012-02-09 11:45 ` Question: Does XFS journal data or only metadata? Michal Szymanski
@ 2012-02-09 22:03 ` Dave Chinner
0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2012-02-09 22:03 UTC (permalink / raw)
To: Michal Szymanski; +Cc: linux-xfs
On Thu, Feb 09, 2012 at 11:45:38AM +0000, Michal Szymanski wrote:
> I went through internal->external log procedure as described here and
> linked-to articles a few years ago and it worked fine. These days I got
> into similar problem after reconfiguring a disk which holds the
> external log for a XFS partition. The question to the gurus is
> following:
>
> Is it possible to migrate an external log to internal if the XFS
> filesystem was originally created without an internal log, i.e. it was
> put on external device straight at mkfs.xfs invocation?
Not easily. The log region needs to be contiguous, and removed from
the free space btrees, which means it is a tricky operation to do.
It's possible that all you need to do is find enough contiguous free
space somewhere and point the superblock at that (with xfs_db), then
run repair to fix up the free space trees. I would not try this on a
filesystem that holds data you care about, though, until you know
whether it works...
> xfs_growfs still says, after 7 years, at least in the man page, that
> -l/-i/-x options are not implemented. Is it really so?
Very few people ever ask about doing this or need it and it's quite
complex to implement and test, so it's never been done. It will
probably stay unimplemented until someone who really needs it helps
implement it.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-09 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200502031005.57621.as@cohaesio.com>
[not found] ` <200502031716.59894.as@cohaesio.com>
[not found] ` <200502031724.56665.as@cohaesio.com>
[not found] ` <200502031740.01081.as@cohaesio.com>
[not found] ` <4202594B.3030204@xfs.org>
2012-02-09 11:45 ` Question: Does XFS journal data or only metadata? Michal Szymanski
2012-02-09 22:03 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox