From nobody Sun Nov 27 11:46:13 2022 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NKmym28nXz4hdtc for ; Sun, 27 Nov 2022 11:46:24 +0000 (UTC) (envelope-from SRS0=uFxU=33=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NKmyl6nQpz3Dtw for ; Sun, 27 Nov 2022 11:46:23 +0000 (UTC) (envelope-from SRS0=uFxU=33=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id AE11428417; Sun, 27 Nov 2022 12:46:16 +0100 (CET) Received: from [192.168.145.50] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 1886C28411; Sun, 27 Nov 2022 12:46:14 +0100 (CET) Message-ID: <47e7548e-0a19-21ef-609a-36b644553c62@quip.cz> Date: Sun, 27 Nov 2022 12:46:13 +0100 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: savecore: operation not permitted To: David Wolfskill , Jonathan Vasquez , void@f-m.fm, freebsd-stable@freebsd.org References: <_nTojcbkVMksWqsbOXlWk4Vktpu7EU7wJRDP3NjXeCTbrs7GCiAt6Ubb34v-3-1vT8vKCqWvPXYlM8iIeeX8pawVT6JwlKfD2jJLsm3TZMg=@xyinn.org> Content-Language: cs-Cestina, en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4NKmyl6nQpz3Dtw X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 27/11/2022 12:23, David Wolfskill wrote: > On Sun, Nov 27, 2022 at 05:48:13AM +0000, Jonathan Vasquez wrote: >> Make sure you aren't using an encrypted swap (i.e if you have the .eli extension for your swap entry in /etc/fstab, then it's being encrypted). That was the issue I had, it makes sense that you can't get the dumped data if the swap is being re-encrypted on every boot. >> .... > > For this use case (desire to be able to get crash dumps while having > swap encrypted), I find that adding the "late" attribute to the > "swap" entry in /etc/fstab is useful, thus: > > g1-51(12.4-S)[1] grep swap /etc/fstab > /dev/ada0s4b.eli none swap sw,late 0 0 Thank you for sharing this tip! When I needed to analyze crash dumps I added another partitions just for the dump but if this can be solved by late option for geli swap it would be really nice. I will try it. Kind regards Miroslav Lachman