From owner-freebsd-current Wed Mar 12 12:40:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4865B37B401 for ; Wed, 12 Mar 2003 12:40:09 -0800 (PST) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67CBC43FAF for ; Wed, 12 Mar 2003 12:40:08 -0800 (PST) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com (mi@localhost.video-collage.com [127.0.0.1]) by corbulon.video-collage.com (8.12.8/8.12.8) with ESMTP id h2CKe6IN000844 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 12 Mar 2003 15:40:06 -0500 (EST) (envelope-from mi@corbulon.video-collage.com) Received: (from mi@localhost) by corbulon.video-collage.com (8.12.8/8.12.8/Submit) id h2CKe6lH000843 for current@FreeBSD.org; Wed, 12 Mar 2003 15:40:06 -0500 (EST) (envelope-from mi) From: Mikhail Teterin Message-Id: <200303122040.h2CKe6lH000843@corbulon.video-collage.com> Subject: problem with a file-backed md To: current@FreeBSD.org Date: Wed, 12 Mar 2003 15:40:05 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL100 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Scanned-By: MIMEDefang 2.21 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello! I have a nasty problem with a file-backed md. The file is the Windows' swap file residing on a msdosfs part of the drive. First I tried to just swapon to the md: tmp=`mdconfig -a -t vnode -f /W/pagefile.sys` swapon $tmp But random big-memory programs were hanging. At that stage, even the simple sync(8) was hanging and reboot would report that "some processes would not die". So I switched to using that chunk of disk as: newfs /dev/$tmp mount /dev/$tmp /scratch This seems to work initially -- the file system is created at boot. I was able to untar a sizable tarball onto it. I opened a file under /scratch in vi and was able to browse it, but on trying to :q, the editor hung and is still hung as I type this. An attempt to `umount /scratch' is currently hung as: MWCHAN STAT `wdrain D' while a subsequent forcefull `umount -f /scratch' looks slightly different: MWCHAN STAT `devfs D' Attempt to delete the md fails with EBUSY. A big program (kmail) is now hung too, although it is not supposed to look at /scratch: MWCHAN STAT `wdrain D' -- I'm afraid all disk-access is now busted and I'm able to type this only because with my 1Gb or RAM most of the stuff is entirely in cache. The -current kernel is built from Mar 6 sources, but I first observed the problem with an earlier kernel -- a few weeks before. Any hope? Thanks! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message