public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Moving existing internal journal log to an external device (success?)
@ 2023-08-20 19:37 fk1xdcio
  2023-08-20 22:14 ` Dave Chinner
  0 siblings, 1 reply; 5+ messages in thread
From: fk1xdcio @ 2023-08-20 19:37 UTC (permalink / raw)
  To: linux-xfs

Does this look like a sane method for moving an existing internal log to 
an external device?

3 drives:
    /dev/nvme0n1p1  2GB  Journal mirror 0
    /dev/nvme1n1p1  2GB  Journal mirror 1
    /dev/sda1       16TB XFS

# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/nvme0n1p1 
/dev/nvme1n1p2
# mkfs.xfs /dev/sda1
# xfs_logprint -C journal.bin /dev/sda1
# cat journal.bin > /dev/md0
# xfs_db -x /dev/sda1

xfs_db> sb
xfs_db> write -d logstart 0
xfs_db> quit

# mount -o logdev=/dev/md0 /dev/sda1 /mnt

-------------------------

It seems to "work" and I tested with a whole bunch of data. I was also 
able to move the log back to internal without issue (set logstart back 
to what it was originally). I don't know enough about how the filesystem 
layout works to know if this will eventually break.

*IF* this works, why can't xfs_growfs do it?

Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-26 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-20 19:37 Moving existing internal journal log to an external device (success?) fk1xdcio
2023-08-20 22:14 ` Dave Chinner
     [not found]   ` <B4C72D86-4CD6-415D-802E-7A225C868E57.1@smtp-inbound1.duck.com>
2023-08-21 13:07     ` fk1xdcio
2023-08-24 20:22       ` Eric Sandeen
     [not found]         ` <21DD2F1E-AAB5-48BC-8C9F-7A9A07F3F81C.1@smtp-inbound1.duck.com>
2023-08-26 14:43           ` fk1xdcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox