From nobody Sat Jan 29 11:27:08 2022 X-Original-To: questions@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 174BE197FB55 for ; Sat, 29 Jan 2022 11:27:21 +0000 (UTC) (envelope-from taceant@gmail.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JmBr81HWwz4rRZ for ; Sat, 29 Jan 2022 11:27:20 +0000 (UTC) (envelope-from taceant@gmail.com) Received: by mail-ed1-x533.google.com with SMTP id w25so14833387edt.7 for ; Sat, 29 Jan 2022 03:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IZgT47Vij1AF8j0OnLKCBV2GiVKqEKSxexOwZuyrOjM=; b=CU+B6FQnkYEZgO+/4ZaQbTcnPySniLQJQgPLe3Hf8PRbpYb0tBlUaVQVe9pfTG7sS7 niTK5BhlQF58xCa7Z/LY2917Wf7/kJi9/rvG6yguFbcUySnrsok/M2xnVptEE4tssk8D 9jKdNthHfm8q7pyA7JHaSxgcd652gXxhACu2tfVFE9uwI5DPfOMocdLEFIYEUz/uRhIS uTrQrdDssh9RJwVxC69cCx42B6UCkK9jK/1K23pH/Px26apmWl5YIFwFsRSR1bJrxQNF wDfzp3A6kClEPQyMR8cVvqlhWQ4IUipenPz31UgAuYCFLzde4MnaZPQHrZYQkSDNY24p HK6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IZgT47Vij1AF8j0OnLKCBV2GiVKqEKSxexOwZuyrOjM=; b=eG3DfoASl2oakn6wlsR0ytZ6D80XDT0/NIn6bJ04rSaKh0OMFpVCrroMvmrme97eKn Ft6E06ZU2eu23110vevAWzyeA+dsFRIATtd5q0U97Vthv+j+EUc8LWtW+sG8zq48IxXy 3MxzST1kG1tScyrMXSJWjX7+mHX0zIF5f0IxeKdl/mXsl5IMWCQ9h1Q1vbp7cD4a1B/q uoI0BBflWYeT9A1DZjqCsUOp8JgH2QSPTZzeWcItcaNBc5bcCgi/PdIphK4tTLkCTTql WKC5it8ghSWb1oKrjk/TaF7ujK/YQGH2uCrR0R2RUF4JcZkyS0TuCLDAHWjK3k8VZIgo 0wLg== X-Gm-Message-State: AOAM530R7ff85K4xFRc6Fmch/FgEC2VRzMmf1QVyv7/4UN6KfIafezdc iU6bcQwvcraki/UKdtFhSltaB9TfZb7Kmu/qMXCC5yC8 X-Google-Smtp-Source: ABdhPJwQtq5rqoEN6HYf1e1Usng0bv4y9f2cnwLlbylX1pQ0g8oJpC3JUr+I4dRsXNMeLtimMoe6Q/eOgsCnvjOtEsU= X-Received: by 2002:a05:6402:11d2:: with SMTP id j18mr12344591edw.349.1643455638949; Sat, 29 Jan 2022 03:27:18 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <308caf55-7fad-3b24-0f6c-3d7bb9a9ca1b@netfence.it> In-Reply-To: <308caf55-7fad-3b24-0f6c-3d7bb9a9ca1b@netfence.it> From: Taceant Omnes Date: Sat, 29 Jan 2022 11:27:08 +0000 Message-ID: Subject: Re: [ZFS] file in encrypted dataset disappears on first reboot To: Andrea Venturoli Cc: FreeBSD Questions List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4JmBr81HWwz4rRZ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=CU+B6FQn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of taceant@gmail.com designates 2a00:1450:4864:20::533 as permitted sender) smtp.mailfrom=taceant@gmail.com X-Spamd-Result: default: False [-1.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.68)[-0.678]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::533:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[questions]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On Sat, 29 Jan 2022 at 11:00, Andrea Venturoli wrote: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261543 > > > > You could try: > > zfs load-key -a > zfs mount zroot/enc > > Other things to check: > > zfs list|grep zroot/enc > zfs get mounted zroot/enc > zfs get mountpoint zroot/enc Grazie. I am aware that it does not make sense that a file disappears! Anyway... The dataset is automatically mounted after I create it and after rebooting, so I don't think this is a mount problem. I don't think it is a key problem because a file disappears on the first reboot, but not on the second reboot, and if the key was not loaded on an encrypted set I would guess that I would not be allowed to create a file on it. And finally, using exactly the same steps, the issue does not manfest on Xubuntu 21.10, so I thnk this is something specific to FreeBSD.