[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trying to repair/recover xfs filesystem after system crash
On Fri, Aug 08, 2003 at 01:14:33PM +1000, Nathan Scott wrote:
> On Fri, Aug 08, 2003 at 04:57:39AM +0200, onedj@gmx.net wrote:
> > A couple weeks ago my system powered down suddenly. One XFS filesystem was
> > affected somehow and I have not been able to repair it with xfs_repair.
> > xfs_repair immediately freezes when I run it and gives no output. The same is
> > true for xfs_check. xfs_info gives the following:
>
> Do you get any syslog errors when running repair/check (eg.
> device errors?). They shouldn't just hang... what do they
> display? If nothing at all, strace output would be useful.
No output whatsoever to syslog or messages. Here is the strace output:
think# strace xfs_repair /dev/hda4
execve("/sbin/xfs_repair", ["xfs_repair", "/dev/hda4"], [/* 21 vars */])
= 0
uname({sys="Linux", node="think", ...}) = 0
brk(0) = 0x80d49f0
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=71606, ...}) = 0
old_mmap(NULL, 71606, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40012000
close(3) = 0
open("/lib/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\275Z\1"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1103880, ...}) = 0
old_mmap(NULL, 1113636, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40024000
mprotect(0x4012c000, 32292, PROT_NONE) = 0
old_mmap(0x4012c000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x107000) = 0x4012c000
old_mmap(0x40132000, 7716, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40132000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40134000
munmap(0x40012000, 71606) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1589840, ...}) = 0
mmap2(NULL, 1589840, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40135000
close(3) = 0
brk(0) = 0x80d49f0
brk(0x80d59f0) = 0x80d59f0
brk(0) = 0x80d59f0
brk(0x80d6000) = 0x80d6000
getcwd("/home/guest", 4096) = 12
stat64("/dev/hda4", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 4), ...})
= 0
stat64("/dev/hda4", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 4), ...})
= 0
ustat(0x304, 0xbfffe724
--
Daniel