From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 26 15:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CAD5A3B8 for ; Mon, 26 Aug 2013 15:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 92A8C29CF for ; Mon, 26 Aug 2013 15:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7QF00JI015312 for ; Mon, 26 Aug 2013 15:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7QF006q015311; Mon, 26 Aug 2013 15:00:00 GMT (envelope-from gnats) Resent-Date: Mon, 26 Aug 2013 15:00:00 GMT Resent-Message-Id: <201308261500.r7QF006q015311@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eddy Beaupre Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 44BF02C1 for ; Mon, 26 Aug 2013 14:54:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 32B30299A for ; Mon, 26 Aug 2013 14:54:43 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7QEsgWe098690 for ; Mon, 26 Aug 2013 14:54:42 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7QEsgQd098686; Mon, 26 Aug 2013 14:54:42 GMT (envelope-from nobody) Message-Id: <201308261454.r7QEsgQd098686@oldred.freebsd.org> Date: Mon, 26 Aug 2013 14:54:42 GMT From: Eddy Beaupre To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/181565: Problem with vnode-backed swap space. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 15:00:00 -0000 >Number: 181565 >Category: misc >Synopsis: Problem with vnode-backed swap space. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 26 15:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Eddy Beaupre >Release: 10.0-CURRENT (r254904) >Organization: >Environment: FreeBSD vfs.beaupre.biz 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r254904: Mon Aug 26 09:09:58 EDT 2013 root@vfs.beaupre.biz:/usr/obj/usr/src/sys/LOVEVPS amd64 >Description: Vnode-backed swap space doesn't seem to work at boot. md0 is created but the swap memory is not added to the system and swapon complain that it is already in use. Manually releasing md0 (mdconfig -d -u0) and running swapon -a fix the problem but must be done at every boot. My fstab entry for the swapfile is the following: md none swap sw,file=/var/spool/swap/swapfile 0 0 >How-To-Repeat: 1) Add a swafile via /etc/fstab: md none swap sw,file=/var/spool/swap/swapfile 0 0 2) reboot the system and check if the swapfile is avalable. >Fix: More a workaround, once boot do the following as root: # mdconfig -d -u0 # swapon -a >Release-Note: >Audit-Trail: >Unformatted: