Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2015 20:29:23 +0300 (MSK)
From:      Antony Uspensky <uspensky@x-art.ru>
To:        Tim Daneliuk <tundra@tundraware.com>
Cc:        FreeBSD Stable Maling List <freebsd-stable@freebsd.org>
Subject:   Re: Swap Questions
Message-ID:  <alpine.BSF.2.00.1508182026260.33963@gw-old.x-art.ru>
In-Reply-To: <55D23423.8090101@tundraware.com>
References:  <55CDE9EE.5090603@tundraware.com> <alpine.BSF.2.20.1508141135030.80352@wonkity.com> <55CF8E0B.7050608@tundraware.com> <alpine.BSF.2.00.1508172038500.31149@gw-old.x-art.ru> <55D23423.8090101@tundraware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 ...




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