From nobody Mon Sep 27 19:54:28 2021 X-Original-To: freebsd-current@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 11EC917E18B9 for ; Mon, 27 Sep 2021 19:54:30 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HJCyY1SyMz4hLq; Mon, 27 Sep 2021 19:54:29 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x72e.google.com with SMTP id q81so34503434qke.5; Mon, 27 Sep 2021 12:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gwd5ulBngkneS2j0AB8Vq4VQ9mIkA+8CvVv6ljMjz1o=; b=Ukv5aTzZt+1pRKjWgMxybq+9rOJdSYh4xg7uEQu9mAxa52lP/+vflOdqOWb6ACN6kN i06vzYQkcueIHJAD8yH2cWtFrwXA3qfQ8LE4VCo093E6PEMgnLeyHFmJRPw1ZIIoQse3 WAocKB/bKm+Mal1HAu6da4FMVOmMLgWYI/oADfxNg3vVw4qyG6X07IDkOCFjvC3yuTSS l8/vc9t+UieSnA85I521fNFmlDExi+mEK40RPAv5bCaaYq3ZwjIZNvCGQeqAds0/HsYG Wx4q+dyl8TapbaXe3ALDTaR5PHp9OG2uBKg+/ZK1Z2NsL5OHaxpuVLNc5b4w6f/vfk4f +2Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=gwd5ulBngkneS2j0AB8Vq4VQ9mIkA+8CvVv6ljMjz1o=; b=XlZ6zqNaWzjDtKCo2p8rRD3QAI+hzbjtdQzunLHdKzCo8GWmJuFDsFyfYPeAUYXGbd YIIpriyLygschAnZzJVDB4/Yh4Ced+b/D/p86efK432qzD404iV3wg8XN2zt5htHolq4 MVK1v37f8Xg4qFEpfjQ01oiiJtZ9sZL+9wRkeVJLmIrdM5CO5oC8Ad3lemtyOLliLluX 1seUWsYJbBucf7E32HdjatufU71dG6M2WZzPhh8UfeaUtEgz8U2Kzxk/iDTBr4VXpi9v PLNun4F+fRw/OJlvdHkF5rWyzqVR1OfArDtkcm0wEh1/NfLwgJ9OKqfvW+8TtmHuMtix uI7g== X-Gm-Message-State: AOAM530u/RL3rls8r5LhnWnpEKs57SwftaTbdaWDI8uBDp6ZM3Jbgvcz oJgea7B8NQWIjs+DmsDqqZHRqWpkV/ea7A== X-Google-Smtp-Source: ABdhPJwgfGlkbi9c0Ypd3caqbcY9L5ZcK88F8MQZU/l3vHvb3Pk7UtG2aszzdCV0juPN2iyD1QkTUQ== X-Received: by 2002:a37:a155:: with SMTP id k82mr1723004qke.349.1632772468570; Mon, 27 Sep 2021 12:54:28 -0700 (PDT) Received: from nuc ([142.126.175.192]) by smtp.gmail.com with ESMTPSA id i67sm13156905qkd.90.2021.09.27.12.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 12:54:28 -0700 (PDT) Date: Mon, 27 Sep 2021 15:54:28 -0400 From: Mark Johnston To: Alan Somers Cc: David Chisnall , freebsd-current Subject: Re: Building ZFS disk images Message-ID: References: <16473d5f-1727-233a-7a95-a21c5b48b9ce@FreeBSD.org> <8ab3d440-889e-25d4-71f9-e7ae2386daeb@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4HJCyY1SyMz4hLq X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ukv5aTzZ; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::72e as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72e:from]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On Thu, Aug 05, 2021 at 10:54:19AM -0500, Alan Somers wrote: > There's this: > https://openzfs.github.io/openzfs-docs/man/8/zpool-reguid.8.html . I > haven't used it myself. Would it be useful to have an rc.d script that can run this, probably just on the root pool? It could be configured to run only upon the first boot, like growfs already does. > On Thu, Aug 5, 2021, 9:29 AM David Chisnall wrote: > > > On 05/08/2021 13:53, Alan Somers wrote: > > > I don't know of any way to do it using the official release scripts > > > either. One problem is that every ZFS pool and file system is supposed > > > to have a unique GUID. So any kind of ZFS release builder would need to > > > re-guid the pool on first boot. > > > > Is there a tool / command to do this? I've hit this problem in the > > past: I have multiple FreeBSD VMs that are all created from the same > > template and if one dies I can't import its zpool into another because > > they have the same UUID. > > > > It doesn't matter for modern deployments where the VM is stateless and > > reimaged periodically but it's annoying for classic deployments where I > > have things I care about on the VM. > > > > David