From owner-freebsd-fs@FreeBSD.ORG Mon Dec 12 22:28:41 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B66BA106564A for ; Mon, 12 Dec 2011 22:28:41 +0000 (UTC) (envelope-from rabe@uugrn.org) Received: from mail.uugrn.org (mail.uugrn.org [195.49.138.123]) by mx1.freebsd.org (Postfix) with ESMTP id 494068FC14 for ; Mon, 12 Dec 2011 22:28:40 +0000 (UTC) Received: from rabe.uugrn.org (root@rabe.uugrn.org [195.49.138.102]) by mail.uugrn.org (8.14.4/8.14.3) with ESMTP id pBCMFaTi015730 for ; Mon, 12 Dec 2011 23:15:46 +0100 (CET) (envelope-from rabe@uugrn.org) Received: from rabox.fritz.box (rabe@rabe.uugrn.org [195.49.138.102]) by rabe.uugrn.org (8.14.4/8.13.8) with ESMTP id pBCMFap6015726 for ; Mon, 12 Dec 2011 23:15:36 +0100 (CET) (envelope-from rabe@uugrn.org) Received: from rabox.fritz.box (localhost [127.0.0.1]) by rabox.fritz.box (8.14.4/8.14.4/Debian-2ubuntu1) with ESMTP id pBCMFXi3007829 for ; Mon, 12 Dec 2011 23:15:33 +0100 Received: (from rabe@localhost) by rabox.fritz.box (8.14.4/8.14.4/Submit) id pBCMFXDE007828 for freebsd-fs@freebsd.org; Mon, 12 Dec 2011 23:15:33 +0100 X-Authentication-Warning: rabox.fritz.box: rabe set sender to rabe@uugrn.org using -f Date: Mon, 12 Dec 2011 23:15:33 +0100 From: Raphael Eiselstein To: freebsd-fs@freebsd.org Message-ID: <20111212221533.GB3696@ma.sigsys.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [XFS][9.0RC2] xfs_repair hangs on umtxn X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 22:28:41 -0000 --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 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--