From nobody Wed Mar 30 23:09:40 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 B18651A524B2 for ; Wed, 30 Mar 2022 23:09:55 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) (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 4KTMb66mSJz3p1s for ; Wed, 30 Mar 2022 23:09:54 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oo1-xc2f.google.com with SMTP id w20-20020a4ae9f4000000b003243aa2c71aso3869227ooc.0 for ; Wed, 30 Mar 2022 16:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EciXDOIkbOhcxTLyNO7XWf2KzqrZXYpfmA+OVk942yw=; b=NQNlgu/LAHBiGLb9g7eNuqVQ7PzQAkBQyXyx3iZS1mnGi3XPvCv2wep1fGa7e+oU4g LHdoDn1qAaSRVGUMOBUfV8p+uRJu+z8D6eN7FN3U4fJEsGOfSBVrJBaMBp5bBwd4vlSA I5xsMW9uFyfGgru1BjjMNEWHIr1DCwuUHdMRGb+/+NrlZ76kvAxWTd8rPgUszcPZJVIr zpa0P8El8wtLj4CHwez2WeSFS7PORYsj6mSZbovFwohjtM+NkDp3eGzwl4otCTlLaekv qRyo4m77SL5GtyvblBvrZtOA+r69d8xr7ZRi9EZFSjXtlKwOJoOEIyEG3oEgkohlvQVu p3Yw== 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=EciXDOIkbOhcxTLyNO7XWf2KzqrZXYpfmA+OVk942yw=; b=I8jAPlDZ7V/KPb+9EGcSNC1LhKA0aJGFEr/jzBF2q3FxfEnpD2Iy3PszBxoXFqYRW/ w+DQuZEcTKF3O949dTOtDl4qhidYm2xR0G38BXJ4qrBnYIkvh1W435angaNIBblGrmpc EPEe8GjzwxjQPGIq/Ee+aQn/a+0Yubn3KC8Bfgm8N+AZfSbjWOlZVtkqDzXfVXp6OMoV nCiwVcmEOgEC7Dv+KzmCeLm6GFNRKUlY0gmWO+ifmD7FPrIL+3TD20RV6iTGsjMamhI9 1EmSlZ+Rl3S1YAl/EJMmuz7A9ytps0raqtmppY7Kawu6OcrpIUPMf0xsytBzZtYBaXet Wc6Q== X-Gm-Message-State: AOAM533LodluuaRzrOEDftsCP6YsTawEs/ti+CQr+99jiU4eHiB83occ twbDR+pX2Kqj4STSduSngf149bhMZ8mW/lBvEb6ijoqxGheWsQ== X-Google-Smtp-Source: ABdhPJyBxVzERjBiTmQ3bZodDzeZrT3ANBI9KhOMXk8NaR5Kh7HCig1sUjw1LOg055GW98mpLhNgFQzPVp454OYdW6A= X-Received: by 2002:a4a:d687:0:b0:321:1b4e:60b8 with SMTP id i7-20020a4ad687000000b003211b4e60b8mr4074438oot.78.1648681793794; Wed, 30 Mar 2022 16:09:53 -0700 (PDT) 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: <899c1dd2-30f5-5e3d-f4bb-91d29011c8be@pinyon.org> In-Reply-To: From: Tomasz CEDRO Date: Thu, 31 Mar 2022 01:09:40 +0200 Message-ID: Subject: Re: difficulties replacing a ZFS installer zroot pool with a new zroot pool on a new disk To: "Russell L. Carter" Cc: FreeBSD Questions List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KTMb66mSJz3p1s X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b="NQNlgu/L"; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::c2f) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [0.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.61)[-0.613]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.87)[0.871]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c2f:from]; NEURAL_SPAM_LONG(0.75)[0.745]; MLMMJ_DEST(0.00)[questions]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Mar 31, 2022 at 12:48 AM Russell L. Carter wrote: > I installed the new NVMe SSD drive and I was able to boot the USB > install image and install a new FreeBSD system on it. On reboot I > first tried keeping the old SATA drive as it was. However the > motherboard BIOS (CSM enabled, legacy, ASUS Prime X570-PRO) refused > all of my efforts to set the boot drive to the new SSD. I finally > resorted to disconnecting the data cable of the old SATA drive, and > the new SSD booted fine. I then powered down the motherboard, > reattached the old SATA data cable, and booted. The motherboard again > refused to boot the new NVMe SSD. After about an hour of fighting the > BIOS, I gave up, set the SATA drive as "hot pluggable" in the BIOS, > and rebooted with the SATA data cable disconnected. Once the NVMe SSD > was booted, I reattached the SATA data cable and it showed up in the > 'zpool import' list. 'zpool import zroot' was not a happy solution as > it collided with the new SSD zroot pool. > > I eventually worked out that I should rename the old pool zroot.old on > import. That was also not a happy solution as it continued to > automatically mount itself on top of the new SSD zroot pool. I then > worked out that I need to specify an altroot: * I had a similar situation. * I exported old pool and disconnected all old disks. * I have connected only nvm disk and did clean install on it using `znvd` in place of `zroot`. * When new install on a new disk was working fine, power off, connect old disks, import `zroot`, change mountpoint with `zfs set mountpoint=/zroot/something zroot/something`. * Remember not to use different pools with the same name (i.e. `zroot`). * You can also rename pool of the old disks and name new disk pool to zroot to avoid boot problems. * You can use shell from installer drive to manipulate pools easily as the are not /. Hope that helps :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info