Moving existing internal journal log to an external device (success?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux