Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2011 23:15:33 +0100
From:      Raphael Eiselstein <rabe@uugrn.org>
To:        freebsd-fs@freebsd.org
Subject:   [XFS][9.0RC2] xfs_repair hangs on umtxn
Message-ID:  <20111212221533.GB3696@ma.sigsys.de>

next in thread | raw e-mail | index | archive | help

--qcHopEYAB45HaUaB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
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 =3D 0
^C
=2E.. 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 =3D 0
^C
=2E.. 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 fil=
esys

FreeBSD fbsd9rc2 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC
2011     root@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

--=20
Raphael Eiselstein <rabe@uugrn.org>               http://rabe.uugrn.org/
xmpp:freibyter@gmx.de  | https://www.xing.com/profile/Raphael_Eiselstein  =
=20
GnuPG:                E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
=2E........|.........|.........|.........|.........|.........|.........|..

--qcHopEYAB45HaUaB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk7mfQUACgkQnNo+exDKny1kKgCcDG6H21mw4IGjcFc/5rZKZ8zx
+KIAoKSUCAf1C/WJiuhE1YfpMLfuUnXq
=Wn9G
-----END PGP SIGNATURE-----

--qcHopEYAB45HaUaB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111212221533.GB3696>