From owner-freebsd-stable@freebsd.org Tue Aug 18 17:29:27 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 481EE9BC991 for ; Tue, 18 Aug 2015 17:29:27 +0000 (UTC) (envelope-from uspensky@x-art.ru) Received: from x-art.ru (charibdis.x-art.ru [80.70.228.55]) by mx1.freebsd.org (Postfix) with ESMTP id 0BAA01B08 for ; Tue, 18 Aug 2015 17:29:26 +0000 (UTC) (envelope-from uspensky@x-art.ru) Received: from gw-old.x-art.ru (gw-old.x-art.ru [192.168.172.252]) by mta.x-art.ru (Postfix) with ESMTP id 28B451BF430; Tue, 18 Aug 2015 20:29:23 +0300 (MSK) Date: Tue, 18 Aug 2015 20:29:23 +0300 (MSK) From: Antony Uspensky X-X-Sender: aiu@gw-old.x-art.ru To: Tim Daneliuk cc: FreeBSD Stable Maling List Subject: Re: Swap Questions In-Reply-To: <55D23423.8090101@tundraware.com> Message-ID: References: <55CDE9EE.5090603@tundraware.com> <55CF8E0B.7050608@tundraware.com> <55D23423.8090101@tundraware.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 17:29:27 -0000 On Mon, 17 Aug 2015, Tim Daneliuk wrote: > On 08/17/2015 12:53 PM, Antony Uspensky wrote: >> On Sat, 15 Aug 2015, Tim Daneliuk wrote: >> >>> So -L does fix the problem - sort of. The machine picks up the file as >>> additional swap on boot just fine. HWOEVER, when I try to reboot or shut >>> down the host, I get a panic telling me some noise about not being able >>> to shutdown swap for some reason. >> >> Try to swapoff (by hands) before shutdown. >> Shutdown sequence, I think, unmounts carrying disk before swapping off a carried file. If I am right, -L should be processed on shutdown also. >> Just a guess. > > Yes, that did it. > > But, isn't this kind of an operational bug? Shouldn't the shutdown logic > do the swapoff before the unmount if it sees files being used for swap? Yes. Must. > i.e. Should I enter this as a bug report? Yes, please. > The only reason this matters - and it's a pretty big reason - is for production > servers when someone logs in remotely, becomes root, and issued "reboot". The > machine hangs at the panic and never comes back ... something you do not see > unless you are in a console of some sort ...