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:24:56 +0100
Cc: Nathan Scott <nathans@xxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <200502031716.59894.as@cohaesio.com>
Organization: Cohaesio A/S
References: <200502031005.57621.as@cohaesio.com> <42024015.5000004@xfs.org> <200502031716.59894.as@cohaesio.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.7.2
On Thursday 03 February 2005 17:16, Anders Saaby wrote:
> 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>

Don't know if this is relevant, but this strace looks interesting:

<STRACE>
st3:~# strace xfs_repair -L -l /dev/sda4 /dev/sdc1
execve("/sbin/xfs_repair", ["xfs_repair", "-L", "-l", "/dev/sda4", 
"/dev/sdc1"], [/* 16 vars */]) = 0
uname({sys="Linux", node="st3", ...})   = 0
brk(0)                                  = 0x80d5000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x5556c000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=12946, ...}) = 0
old_mmap(NULL, 12946, PROT_READ, MAP_PRIVATE, 3, 0) = 0x5556d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/libuuid.so.1", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0l\f\0\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9128, ...}) = 0
old_mmap(NULL, 12140, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x55571000
old_mmap(0x55573000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x1000) = 0x55573000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360Y\1"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1253924, ...}) = 0
old_mmap(NULL, 1260140, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x55574000
old_mmap(0x5569d000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x129000) = 0x5569d000
old_mmap(0x556a5000, 10860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x556a5000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x556a8000
set_thread_area({entry_number:-1 -> 11, base_addr:0x556a8460, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0
munmap(0x5556d000, 12946)               = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=290448, ...}) = 0
mmap2(NULL, 290448, PROT_READ, MAP_PRIVATE, 3, 0) = 0x556a9000
close(3)                                = 0
brk(0)                                  = 0x80d5000
brk(0x80f6000)                          = 0x80f6000
brk(0)                                  = 0x80f6000
getcwd("/root", 4096)                   = 6
stat64("/dev/sdc1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
stat64("/dev/sdc1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ustat(0x821, 0xffffc914)                = -1 EINVAL (Invalid argument)
open("/dev/sdc1", O_RDONLY|O_LARGEFILE) = 3
stat64("/dev/sdc1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
stat64("/dev/sdc1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ustat(0x821, 0xffffc914)                = -1 EINVAL (Invalid argument)
open("/dev/sdc1", O_RDWR|O_LARGEFILE)   = 4
fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(4, BLKBSZSET, 0xffffc948)         = 0
fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xffffc960)      = 0
ioctl(4, BLKSSZGET, 0x80d4b50)          = 0
stat64("/dev/sda4", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 4), ...}) = 0
stat64("/dev/sda4", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 4), ...}) = 0
ustat(0x804, 0xffffc914)                = -1 EINVAL (Invalid argument)
open("/dev/sda4", O_RDWR|O_LARGEFILE)   = 5
fstat64(5, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 4), ...}) = 0
ioctl(5, BLKBSZSET, 0xffffc948)         = 0
fstat64(5, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 4), ...}) = 0
ioctl(5, BLKGETSIZE64, 0xffffc960)      = 0
ioctl(5, BLKSSZGET, 0x80d4b54)          = 0
chdir("/root")                          = 0
close(3)                                = 0
open("/dev/sdc1", O_RDWR|O_LARGEFILE)   = 3
write(2, "Phase 1 - find and verify superb"..., 40Phase 1 - find and verify 
superblock...
) = 40
mmap2(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x556f0000
mmap2(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x55771000
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 524288) 
= 524288
munmap(0x55771000, 528384)              = 0
_llseek(3, 4587909120, [4587909120], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 9175818240, [9175818240], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 13763727360, [13763727360], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 18351636480, [18351636480], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 22939545600, [22939545600], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 27527454720, [27527454720], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 32115363840, [32115363840], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 36703272960, [36703272960], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 41291182080, [41291182080], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 45879091200, [45879091200], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 50467000320, [50467000320], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 55054909440, [55054909440], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 59642818560, [59642818560], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 64230727680, [64230727680], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 68818636800, [68818636800], SEEK_SET) = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\1\21u\360\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 
2048
_llseek(3, 292941824, [292941824], SEEK_SET) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 
512
write(2, "\nfatal error -- ", 16
fatal error -- )       = 16
write(2, "could not read superblock\n", 26could not read superblock
) = 26
exit_group(1)                           = ?
</STRACE>

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