[XFS][9.0RC2] xfs_repair hangs on umtxn

Raphael Eiselstein rabe at uugrn.org
Mon Dec 12 22:28:41 UTC 2011


Hi,

I just tried to do some experiments using xfs on FreeBSD 9.0RC2. My
setup is: a plain file /var/cache.img attached as /dev/md0


some things work fine:

fbsd9rc2# mdconfig -l
fbsd9rc2# mdconfig -a -t vnode -f /var/cache.img 
md0
fbsd9rc2# kldload xfs
fbsd9rc2# mount -t xfs -o ro /dev/md0 /mnt
fbsd9rc2# df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/md0        5G    144k      5G     0%    /mnt

others don't:

fbsd9rc2# mount -t xfs /dev/md0 /mnt
mount: /dev/md0 : Operation not permitted



fbsd9rc2# /usr/local/sbin/xfs_repair /dev/md0
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
        - 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
^C
... hangs forever in umtxn, even when operating on the flat file:

fbsd9rc2# /usr/local/sbin/xfs_repair -L -f /var/cache.img
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
        - 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
^C
... even without any xfs-support in kernel...

What is xfs_repair requesting from kernel when getting stuck in umtxn?

For me it's not a problem with xfs kernel support but with the
xfs-tools from the ports.

xfsprogs-2.9.4_3    A set of utilities and library to manipulate an xfs filesys

FreeBSD fbsd9rc2 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC
2011     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
amd64

My hardware is a virtual box 4.0.4 OSE running on linux 2.6.38-13-generic

What's going on there?
Any more debugging information?

Best regards
Raphael

-- 
Raphael Eiselstein <rabe at uugrn.org>               http://rabe.uugrn.org/
xmpp:freibyter at gmx.de  | https://www.xing.com/profile/Raphael_Eiselstein   
GnuPG:                E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
.........|.........|.........|.........|.........|.........|.........|..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20111212/fb704009/attachment.pgp


More information about the freebsd-fs mailing list