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:16:59 +0100
Cc: Nathan Scott <nathans@xxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <42024015.5000004@xxxxxxx>
Organization: Cohaesio A/S
References: <200502031005.57621.as@xxxxxxxxxxxx> <200502031542.05619.as@xxxxxxxxxxxx> <42024015.5000004@xxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.7.2
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>

- This only happens when I have created the filesystem with an internal log 
and then manually moved it to external, and the filesystem mounts fine with 
the following command:

mount -t xfs -o logbufs=4,logdev=/dev/sda4 /dev/sdc1 /mnt/xfs_test/


- Do you have any ideas?


Here is some extra info:

xfsprogs version is: 2.6.20-1 (debian/sarge package).

<Superblock from filesystem created with external log>
magicnum = 0x58465342
blocksize = 4096
dblocks = 17921520
rblocks = 0
rextents = 0
uuid = 8f98e5b4-e433-4caa-85eb-992791971236
logstart = 0
rootino = 128
rbmino = 129
rsumino = 130
rextsize = 16
agblocks = 1120095
agcount = 16
rbmblocks = 0
logblocks = 8750
versionnum = 0x3084
sectsize = 512
inodesize = 256
inopblock = 16
fname = "\000\000\000\000\000\000\000\000\000\000\000\000"
blocklog = 12
sectlog = 9
inodelog = 8
inopblog = 4
agblklog = 21
rextslog = 0
inprogress = 0
imax_pct = 25
icount = 64
ifree = 60
fdblocks = 17921452
frextents = 0
uquotino = 0
gquotino = 0
qflags = 0
flags = 0
shared_vn = 0
inoalignmt = 2
unit = 0
width = 0
dirblklog = 0
logsectlog = 0
logsectsize = 0
logsunit = 0
features2 = 0
</Superblock from filesystem created with external log>

<Superblock from filesystem created with internal log and then moved to 
external>
magicnum = 0x58465342
blocksize = 4096
dblocks = 17921520
rblocks = 0
rextents = 0
uuid = 912b1329-63c7-4892-8c47-1d7447112a3d
logstart = 0
rootino = 128
rbmino = 129
rsumino = 130
rextsize = 16
agblocks = 1120095
agcount = 16
rbmblocks = 0
logblocks = 8750
versionnum = 0x3084
sectsize = 512
inodesize = 256
inopblock = 16
fname = "\000\000\000\000\000\000\000\000\000\000\000\000"
blocklog = 12
sectlog = 9
inodelog = 8
inopblog = 4
agblklog = 21
rextslog = 0
inprogress = 0
imax_pct = 25
icount = 64
ifree = 61
fdblocks = 17912702
frextents = 0
uquotino = 0
gquotino = 0
qflags = 0
flags = 0
shared_vn = 0
inoalignmt = 2
unit = 0
width = 0
dirblklog = 0
logsectlog = 0
logsectsize = 0
logsunit = 0
features2 = 0
</Superblock from filesystem created with internal log and then moved to 
external>

<Diff SB>
st3:~# diff -u extfromstart.sb moved.sb
--- extfromstart.sb     2005-02-03 16:29:42.000000000 +0100
+++ moved.sb    2005-02-03 16:31:31.000000000 +0100
@@ -3,7 +3,7 @@
 dblocks = 17921520
 rblocks = 0
 rextents = 0
-uuid = 8f98e5b4-e433-4caa-85eb-992791971236
+uuid = 912b1329-63c7-4892-8c47-1d7447112a3d
 logstart = 0
 rootino = 128
 rbmino = 129
@@ -27,8 +27,8 @@
 inprogress = 0
 imax_pct = 25
 icount = 64
-ifree = 60
-fdblocks = 17921452
+ifree = 61
+fdblocks = 17912702
 frextents = 0
 uquotino = 0
 gquotino = 0
</Diff SB>


-- 
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>