xfs
[Top] [All Lists]

Re: XFS: can't read superblock

To: evilninja <evilninja@xxxxxxx>
Subject: Re: XFS: can't read superblock
From: Mathieu GOMBAULT <qwerty@xxxxxxxxx>
Date: Sat, 20 Nov 2004 12:17:11 +0100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <419F1896.6020501@gmx.net>
References: <419F1985.9010603@minet.net> <419F1896.6020501@gmx.net>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)
evilninja wrote:

Mathieu GOMBAULT wrote:


qwerty@Pegasus:~$;-) sudo mount -t xfs /dev/hdd1 /mnt/
mount: /dev/hdd1: can't read superblock




what does xfs_check (and then probably xfs_repair) say? the kernel log could also be interesting.



xfs_repair takes 2 seconds for a disk of 160 GB.
I have xfs_repair version 2.6.20

here are all the logs I made:

qwerty@Pegasus:~$;-) sudo xfs_repair -v /dev/hdd1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
      - zero log...
zero_log: head block 2 tail block 2
      - scan filesystem freespace and inode maps...
      - found root inode chunk
Phase 3 - for each AG...
      - scan and clear agi unlinked lists...
      - process known inodes and perform inode discovery...
      - agno = 0
      - agno = 1
      - agno = 2
      - agno = 3
      - agno = 4
      - agno = 5
      - agno = 6
      - agno = 7
      - agno = 8
      - agno = 9
      - agno = 10
      - agno = 11
      - agno = 12
      - agno = 13
      - agno = 14
      - agno = 15
      - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
      - setting up duplicate extent list...
      - clear lost+found (if it exists) ...
      - clearing existing "lost+found" inode
      - marking entry "lost+found" to be deleted
      - check for inodes claiming duplicate blocks...
      - agno = 0
      - agno = 1
      - agno = 2
      - agno = 3
      - agno = 4
      - agno = 5
      - agno = 6
      - agno = 7
      - agno = 8
      - agno = 9
      - agno = 10
      - agno = 11
      - agno = 12
      - agno = 13
      - agno = 14
      - agno = 15
Phase 5 - rebuild AG headers and trees...
      - reset superblock...
Phase 6 - check inode connectivity...
      - resetting contents of realtime bitmap and summary inodes
      - ensuring existence of lost+found directory
      - traversing filesystem starting at / ...
rebuilding directory inode 128
      - traversal finished ...
      - traversing all unattached subtrees ...
      - traversals finished ...
      - moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done


qwerty@Pegasus:~$;-) cat /proc/partitions major minor #blocks name

 3     0   80043264 hda
 3     1      16033 hda1
 3     2     498015 hda2
 3     3     498015 hda3
 3     4          1 hda4
 3     5    6000246 hda5
 3     6    2000061 hda6
 3     7   71023333 hda7
22    64  160086528 hdd
22    65  159993460 hdd1


qwerty@Pegasus:~$;-) sudo fdisk -l /dev/hdd Disk /dev/hdd: 163.9 GB, 163928604672 bytes 255 heads, 63 sectors/track, 19929 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           2       19920   159993460   83  Linux

I made only one partition with xfs when I created it


qwerty@Pegasus:~$;-)sudo strace -omount.trace mount -t xfs /dev/hdd1 /mnt mount: /dev/hdd1: can't read superblock


qwerty@Pegasus:~$;-) sudo mount -t xfs /dev/hdd1 /mnt/
mount: /dev/hdd1: can't read superblock
qwerty@Pegasus:~$;-) dmesg | tail
I/O error in filesystem ("hdd1") meta-data dev hdd1 block 0x1314ff7f ("xfs_read_buf") error 5 buf count 512
XFS: size check 2 failed
attempt to access beyond end of device
hdd1: rw=0, want=320143232, limit=319986920
I/O error in filesystem ("hdd1") meta-data dev hdd1 block 0x1314ff7f ("xfs_read_buf") error 5 buf count 512
XFS: size check 2 failed
attempt to access beyond end of device
hdd1: rw=0, want=320143232, limit=319986920
I/O error in filesystem ("hdd1") meta-data dev hdd1 block 0x1314ff7f ("xfs_read_buf") error 5 buf count 512
XFS: size check 2 failed



qwerty@Pegasus:~$;-) sudo xfs_db /dev/hdd1 xfs_db> sb 0 xfs_db> p magicnum = 0x58465342 blocksize = 4096 dblocks = 40017904 rblocks = 0 rextents = 0 uuid = 1329d43d-2fcd-4aeb-8956-4a4fff97a6ec logstart = 33554436 rootino = 128 rbmino = 129 rsumino = 130 rextsize = 16 agblocks = 2501119 agcount = 16 rbmblocks = 0 logblocks = 19539 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 = 22 rextslog = 0 inprogress = 0 imax_pct = 25 icount = 7424 ifree = 413 fdblocks = 25901321 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


qwerty@Pegasus:~$;-) sudo dd if=/dev/hdd1 bs=512 count=1 |hexdump 0000000 4658 4253 0000 0010 0000 0000 6202 f09f 0000010 0000 0000 0000 0000 0000 0000 0000 0000 0000020 2913 3dd4 cd2f eb4a 5689 4f4a 97ff eca6 0000030 0000 0000 0002 0400 0000 0000 0000 8000 0000040 0000 0000 0000 8100 0000 0000 0000 8200 0000050 0000 1000 2600 ff29 0000 1000 0000 0000 0000060 0000 534c 8430 0002 0001 1000 0000 0000 0000070 0000 0000 0000 0000 090c 0408 0016 1900 0000080 0000 0000 0000 001d 0000 0000 0000 9d01 0000090 0000 0000 8b01 0939 0000 0000 0000 0000 00000a0 0000 0000 0000 0000 0000 0000 0000 0000 00000b0 0000 0000 0000 0200 0000 0000 0000 0000 00000c0 0000 0000 0000 0000 0000 0000 0000 0000 * 0000200 1+0 enregistrements lus. 1+0 enregistrements Ãcrits. 512 bytes transferred in 0,018077 seconds (28323 bytes/sec)


Thanks in advance

Regards

Math


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