[XFS] filesystem corruption

Development on core packages and the distribution goes on in here.

[XFS] filesystem corruption

Postby skai » Wed Sep 04, 2013 9:33 pm

Hi everyone,
I'm currently (and for a few weeks) having a problem with a 2T usb drive connected to a raspberry Pi model B,
running Arch, up to date (last update hours ago).

Here's what happens.
The filesystem is declared "corrupted".
(please run xfs repair, see log below)

I umount, run xfs_repair, mount : problem persists.

There is for instance a directory I can not access : I see the name, can cd in it, but a "ls" will produce an error message.
$this->bbcode_second_pass_code('', '
ls: reading directory /mnt/dlna/Photos/2012_08: Structure needs cleaning
')

Worst : I umount, plug the disk to a 86_64 laptop, I mount : no corruption detected, directory available !

So : I did cp -rp from the given directory, *delete* the original directory,
unmount, mount back to the ARM.

And guess what : the faulty directory appears again ! (and "coruption" message also)

(and once again : xfs_repair does'nt solve anything)

I have absolutely no clue as hat I should do, aside from changing filesystem :-)

Any help will be welcome !

Here comes the log :

$this->bbcode_second_pass_code('', '[Wed Sep 4 16:12:15 2013] c8de9000: 58 46 53 42 00 00 10 00 00 00 00 00 1d 1b f0 00 XFSB............
[Wed Sep 4 16:12:15 2013] XFS (sda1): Internal error xfs_da_do_buf(2) at line 2192 of file fs/xfs/xfs_da_btree.c. Caller 0xc0298e8c

[Wed Sep 4 16:12:15 2013] [<c0013b84>] (unwind_backtrace+0x0/0xf0) from [<c025ede8>] (xfs_corruption_error+0x58/0x74)
[Wed Sep 4 16:12:15 2013] [<c025ede8>] (xfs_corruption_error+0x58/0x74) from [<c0293878>] (xfs_da_read_buf+0x168/0x20c)
[Wed Sep 4 16:12:15 2013] [<c0293878>] (xfs_da_read_buf+0x168/0x20c) from [<c0298e8c>] (xfs_dir2_leaf_readbuf+0x228/0x62c)
[Wed Sep 4 16:12:15 2013] [<c0298e8c>] (xfs_dir2_leaf_readbuf+0x228/0x62c) from [<c0299740>] (xfs_dir2_leaf_getdents+0x12c/0x3ac)
[Wed Sep 4 16:12:15 2013] [<c0299740>] (xfs_dir2_leaf_getdents+0x12c/0x3ac) from [<c0295e00>] (xfs_readdir+0xe8/0x154)
[Wed Sep 4 16:12:15 2013] [<c0295e00>] (xfs_readdir+0xe8/0x154) from [<c025ffc8>] (xfs_file_readdir+0x44/0x54)
[Wed Sep 4 16:12:15 2013] [<c025ffc8>] (xfs_file_readdir+0x44/0x54) from [<c00ffc44>] (vfs_readdir+0x94/0xb8)
[Wed Sep 4 16:12:15 2013] [<c00ffc44>] (vfs_readdir+0x94/0xb8) from [<c00ffe08>] (sys_getdents64+0x60/0xd0)
[Wed Sep 4 16:12:15 2013] [<c00ffe08>] (sys_getdents64+0x60/0xd0) from [<c000db20>] (ret_fast_syscall+0x0/0x30)
[Wed Sep 4 16:12:15 2013] XFS (sda1): Corruption detected. Unmount and run xfs_repair


')

And here's what I'm running :
$this->bbcode_second_pass_code('', '
Linux youpi 3.6.11-17-ARCH+ #1 PREEMPT Sun Aug 25 08:45:40 CDT 2013 armv6l GNU/Linux

core/xfsprogs 3.1.11-1

')


Thanks a lot !
skai
 
Posts: 3
Joined: Wed Sep 04, 2013 9:19 pm

Re: [XFS] filesystem corruption

Postby moonman » Sat Sep 07, 2013 8:09 am

Google around. Something must have changed recently upstream. I personally don't use xfs, but this is not the first time i'm reading a report about this.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: [XFS] filesystem corruption

Postby skai » Sun Sep 08, 2013 11:18 am

From what I found... the problem is quite old.
(I've seen posts several years old).

Anyway, I wonder if it's not related to a memory capacity problem.
(xfs_repair may fail on RPi due to memory shortage).

I'm going to use ext4 instead.

Anyway... on usb2, the IO performances issues won't come from the filesystem :-)
skai
 
Posts: 3
Joined: Wed Sep 04, 2013 9:19 pm

Re: [XFS] filesystem corruption

Postby moonman » Mon Sep 09, 2013 10:53 pm

To be honest i never understood why people use xfs on these devices.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 8 guests