xfs
[Top] [All Lists]

unable to mount filesystem

To: Linux xfs list <linux-xfs@xxxxxxxxxxx>
Subject: unable to mount filesystem
From: Marcel de Riedmatten <mdr@xxxxxxxxxxx>
Date: 04 Oct 2003 18:51:42 +0200
Organization:
Sender: linux-xfs-bounce@xxxxxxxxxxx
Hi all


I was making write tests on a 1.5TB xfs filesystem and after unmounting
it i can't mount it again. It looks like a log corruption or something.
This is what i found in syslog: i try to mount multiple times



Oct  4 17:15:35 grobelix kernel: XFS mounting filesystem sd(8,1)
Oct  4 17:15:36 grobelix kernel: Starting XFS recovery on filesystem:
sd(8,1) (dev: 8/1)
Oct  4 17:15:36 grobelix kernel: XFS: log mount/recovery failed
Oct  4 17:15:36 grobelix kernel: XFS: log mount failed
Oct  4 17:15:50 grobelix kernel: XFS mounting filesystem sd(8,1)
Oct  4 17:15:50 grobelix kernel: Filesystem "sd(8,1)": XFS internal
error
xlog_clear_stale_blocks(2) at line 1253 of file xfs_log_recover.c. 
Caller
0xf898e900
Oct  4 17:15:50 grobelix kernel: e8539c40 f898ef6c f89b6bc5 00000001
e2e39c00 f89b6ae1 000004e5 f898e900 
Oct  4 17:15:50 grobelix kernel:        00000006 00000007 0000ec00
00000007
00000007 00000801 c44b0380 e21dde80 
Oct  4 17:15:50 grobelix kernel:        f898e900 e21dde80 0000ec00
00000007
000001f0 e2e39c00 0000feff 0000ec00 
Oct  4 17:15:50 grobelix kernel: Call Trace:   [<f898ef6c>]
xlog_clear_stale_blocks [xfs] 0xbc (0xe8539c44))
Oct  4 17:15:50 grobelix kernel: [<f89b6bc5>] .rodata.str1.1 [xfs] 0x838
(0xe8539c48))
Oct  4 17:15:50 grobelix kernel: [<f89b6ae1>] .rodata.str1.1 [xfs] 0x754
(0xe8539c54))
Oct  4 17:15:50 grobelix kernel: [<f898e900>] xlog_find_tail [xfs] 0x3c0
(0xe8539c5c))
Oct  4 17:15:50 grobelix kernel: [<f898e900>] xlog_find_tail [xfs] 0x3c0
(0xe8539c80))
Oct  4 17:15:50 grobelix kernel: [<f8992310>] xlog_recover [xfs] 0x20
(0xe8539ccc))
Oct  4 17:15:50 grobelix kernel: [<f898a604>] xfs_log_mount [xfs] 0x84
(0xe8539d00))
Oct  4 17:15:50 grobelix kernel: [<f8993c73>] xfs_mountfs [xfs] 0x9e3
(0xe8539d1c))
Oct  4 17:15:50 grobelix kernel: [<f8992ee0>] xfs_readsb [xfs] 0x190
(0xe8539d8c))
Oct  4 17:15:50 grobelix kernel: [<f89ad3ff>] xfs_setsize_buftarg [xfs]
0x2f
(0xe8539db8))
Oct  4 17:15:50 grobelix kernel: [<f899abdc>] xfs_mount [xfs] 0x2fc
(0xe8539dcc))
Oct  4 17:15:50 grobelix kernel: [<f89adf21>] vfs_mount [xfs] 0x21
(0xe8539dfc))
Oct  4 17:15:50 grobelix kernel: [<f89add25>] linvfs_read_super [xfs]
0x85
(0xe8539e0c))
Oct  4 17:15:50 grobelix kernel: [get_sb_bdev+530/656] get_sb_bdev
[kernel]
0x212 (0xe8539e74))
Oct  4 17:15:50 grobelix kernel: [__generic_copy_from_user+50/96]
__generic_copy_from_user [kernel] 0x32 (0xe8539e8c))
Oct  4 17:15:50 grobelix kernel: [<f89c1ccc>] xfs_fs_type [xfs] 0x0
(0xe8539ed4))
Oct  4 17:15:50 grobelix kernel: [do_kern_mount+92/272] do_kern_mount
[kernel] 0x5c (0xe8539edc))
Oct  4 17:15:50 grobelix kernel: [<f89c1ccc>] xfs_fs_type [xfs] 0x0
(0xe8539ee0))
Oct  4 17:15:50 grobelix kernel: [do_add_mount+118/320] do_add_mount
[kernel] 0x76 (0xe8539f10))
Oct  4 17:15:50 grobelix kernel: [do_mount+331/368] do_mount [kernel]
0x14b
(0xe8539f40))
Oct  4 17:15:50 grobelix kernel: [copy_mount_options+76/160]
copy_mount_options [kernel] 0x4c (0xe8539f7c))
Oct  4 17:15:50 grobelix kernel: [sys_mount+164/256] sys_mount [kernel]
0xa4
(0xe8539f90))
Oct  4 17:15:50 grobelix kernel: [system_call+51/56] system_call
[kernel]
0x33 (0xe8539fc0))
Oct  4 17:15:50 grobelix kernel: 
Oct  4 17:15:50 grobelix kernel: XFS: failed to locate log tail
Oct  4 17:15:50 grobelix kernel: XFS: log mount/recovery failed
Oct  4 17:15:50 grobelix kernel: XFS: log mount failed


This is xfs-1.3 whith   Axel Thimm smp i686 package at 
http://atrpms.physik.fu-berlin.de/dist/rh73/kernel/


Hardware is supermicro dual xeon board (x5dp8-g2) with 2 GB of ram and a
3ware 8506-8 with 7 disks raid5. 


Then try xfs_logprint (whithout -t ) but it segfault:

./xfs_logprint  /dev/sda1 
xfs_logprint:
    data device: 0x801
    log device: 0x801 daddr: 1468006656 length: 261888

cycle: 7        version: 2              lsn: 7,65536    tail_lsn:
7,65024
length of Log Record: 258048    prev offset: 65024              num ops:
3689
uuid: 8c709d84-99db-4623-bc6a-70c61ec21c53   format: little endian linux
----------------------------------------------------------------------------
Oper (0): tid: c45c8ec4  len: 0  clientid: ERROR  flags: none
----------------------------------------------------------------------------
Oper (1): tid: c45c83cc  len: 0  clientid: ERROR  flags: none
----------------------------------------------------------------------------
Oper (2): tid: 69000000  len: 0  clientid: ERROR  flags: none
----------------------------------------------------------------------------
Oper (3): tid: 0  len: 0  clientid: ERROR  flags: none
----------------------------------------------------------------------------
Oper (4): tid: c0ee1b00  len: 266480  clientid: ERROR  flags: none
xfs_logprint: unknown log operation type (0)
----------------------------------------------------------------------------
Segmentation fault (core dumped)


here is the backtrace :


gdb -c core  xfs_logprint 
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-linux"...
Core was generated by ./xfs_logprint /dev/sda1'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x4008edcd in bcopy () from /lib/libc.so.6
(gdb) bt
#0  0x4008edcd in bcopy () from /lib/libc.so.6
#1  0x0804b054 in xlog_print_op_header (op_head=0x40179134, i=5,
ptr=0xbfffec88) at log_misc.c:131
#2  0x0804d57d in xlog_print_record (fd=3, num_ops=3689, len=258048,
read_type=0xbfffece8, partial_buf=0xbfffecec, rhead=0xbfffecfc)
    at log_misc.c:962
#3  0x0804e118 in xfs_log_print (log=0xbfffef30, fd=3,
print_block_start=-1)
at log_misc.c:1216
#4  0x0804eb71 in main (argc=2, argv=0xbfffeff4) at logprint.c:256


then i try xfs_logprint -t and is works. Ii have joined the output file.
xfs_check show no output. xfs_repair complain for the un replayed log.

So i xfs_repair -L /dev/sda1 and after that i could remount the
filesystem.  


# xfs_info data
meta-data=/exports/data          isize=256    agcount=351,
agsize=1048576 blks
         =                       sectsz=512  
data     =                       bsize=4096   blocks=367671614,
imaxpct=25
         =                       sunit=16     swidth=96 blks,
unwritten=1
naming   =version 2              bsize=4096  
log      =internal               bsize=4096   blocks=32736, version=2
         =                       sectsz=512   sunit=48 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0


I hope this will bring some useful information to the developpers.

Best Regards


-- 
Marcel de Riedmatten
pgp key: CFE703CA http://ftp.dotforge.ch/pub/users/mdr/mdr.gpg.asc
Empreinte: 4687 F9CB D8E2 AC1A B806  F812 C048 0875 CFE7 03CA

Attachment: log.text
Description: Text document

Attachment: signature.asc
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>