* converting from external log to internal log ... is this possible?
@ 2014-09-08 18:10 Joe Landman
2014-09-08 18:41 ` Eric Sandeen
0 siblings, 1 reply; 3+ messages in thread
From: Joe Landman @ 2014-09-08 18:10 UTC (permalink / raw)
To: xfs
Figured I'd ask, looked on the FAQ and didn't see anything there
relevant to this. There is a hint of this in xfs_growfs, specifically
the -i option, though it is noted that "[NOTE: This option is not
implemented]".
--
Joe Landman
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: converting from external log to internal log ... is this possible?
2014-09-08 18:10 converting from external log to internal log ... is this possible? Joe Landman
@ 2014-09-08 18:41 ` Eric Sandeen
2014-09-08 22:07 ` Dave Chinner
0 siblings, 1 reply; 3+ messages in thread
From: Eric Sandeen @ 2014-09-08 18:41 UTC (permalink / raw)
To: Joe Landman, xfs
On 9/8/14 1:10 PM, Joe Landman wrote:
> Figured I'd ask, looked on the FAQ and didn't see anything there
> relevant to this. There is a hint of this in xfs_growfs,
> specifically the -i option, though it is noted that "[NOTE: This
> option is not implemented]".
Yep, it's never been implemented. You could do it manually with
some very careful xfs_db surgery, if you had enough contiguous
freespace available, but it's not at all supported.
Basically, no, you can't do it without getting very far under
the hood and directly editing the disk.
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: converting from external log to internal log ... is this possible?
2014-09-08 18:41 ` Eric Sandeen
@ 2014-09-08 22:07 ` Dave Chinner
0 siblings, 0 replies; 3+ messages in thread
From: Dave Chinner @ 2014-09-08 22:07 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs, Joe Landman
On Mon, Sep 08, 2014 at 01:41:49PM -0500, Eric Sandeen wrote:
> On 9/8/14 1:10 PM, Joe Landman wrote:
> >Figured I'd ask, looked on the FAQ and didn't see anything there
> >relevant to this. There is a hint of this in xfs_growfs,
> >specifically the -i option, though it is noted that "[NOTE: This
> >option is not implemented]".
>
> Yep, it's never been implemented. You could do it manually with
> some very careful xfs_db surgery, if you had enough contiguous
> freespace available, but it's not at all supported.
>
> Basically, no, you can't do it without getting very far under
> the hood and directly editing the disk.
There's nothing amazingly difficult about implementing
external-to-internal journal. First allocate the contiguous extent
for the new log, then zero it, then freeze the filesystem to bring
the external log down to a clean state, atomically modify the
superblock on disk to point at the new log, then re-initialise all
the log state to point at the new log, update the head and tail to
new cycles at the start of the new log, and unfreeze....
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] 3+ messages in thread
end of thread, other threads:[~2014-09-08 22:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 18:10 converting from external log to internal log ... is this possible? Joe Landman
2014-09-08 18:41 ` Eric Sandeen
2014-09-08 22:07 ` Dave Chinner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.