From owner-freebsd-fs@freebsd.org Sat May 20 03:57:16 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83EFCD737D2; Sat, 20 May 2017 03:57:16 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-pg0-x232.google.com (mail-pg0-x232.google.com [IPv6:2607:f8b0:400e:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50A3F1EDF; Sat, 20 May 2017 03:57:16 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-pg0-x232.google.com with SMTP id q125so45957016pgq.2; Fri, 19 May 2017 20:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=a8HugRkNVhu8TZDJKzEycTrdIK2ZIJE0bSPCn1yzX70=; b=tGx/JQhRrCcK8CAO53ZtXIEtxxY7WA/Q8WdnercY7u/JmD+FBn3bAPstu4KEHiwLqb iuR8/SEsxDVVuLx3FLYBBniYjAYmJSbUUJZOpejR1g2FlNfG1xDw5Q6MkSeXtO04pXXo 345vMmg0QKv+Bra19QQ3uq8TL3gcXHQ5/r9yIECI4+RcHmKL6Pj2hqSEkcdwwKYfyCt7 mRTFUPCAMCGZ6QW1VcVw3DMeIN6IVzaqmfr2UnhMpbD0JBVHEHu5/clZ9thv4T205YAO gRerkWYwSlZVzVa1YefHR84GkYmvXZVtbAD+PyNKDirtMgBxXz2ibjhLvhjjDLlxvzXg jtaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=a8HugRkNVhu8TZDJKzEycTrdIK2ZIJE0bSPCn1yzX70=; b=PcbX2TYDSv4ow+vvKTG7ME+Lnf4uGqAHy+ly1ukyq8oUqGYPrgsqGozuKcyozBx8MM gOVta4Z5HFaBNOQUbWZfXpYYpmU3OaXDALUPeOCTo77YkpQXnJ1Svj2ZxdXN4oGG596q Ty9zwhDKHYA7f+E4133UdiUNlPiovFZPiCRQvhTdzgQk+kL+XnCe4nhOk/cBusndEccT aL1Zr+mdBxjzuaRL3DwIoUF1XLxAefIE1A6ELoej90XbqHguFNXIkr0rVk5oby1ZzOnC nQzbIoYkFy5Yth5hDqWJoFgx04W3tmgW5sLjo4vV28jwMOs/fJghdFPkwuGlUyxzGgMM 5Elg== X-Gm-Message-State: AODbwcBlgFfb/KZwoLmtR0bkbSH0exom+hD+A9UQybm5MQMDGnFe1eCW MkrGeE0CwILOhNEwYAU6epduIXuPyRQFXHQ= X-Received: by 10.99.181.11 with SMTP id y11mr13420912pge.54.1495252635882; Fri, 19 May 2017 20:57:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.155.47 with HTTP; Fri, 19 May 2017 20:57:15 -0700 (PDT) In-Reply-To: References: <7c059678-4af4-f0c9-ff3b-c6266e02fb7a@gmx.com> <2318D9EB-4271-42C8-AEDB-4BB86607BB3D@kraus-haus.org> <81774CB0-9E06-43AF-B58B-259234111D61@kraus-haus.org> From: "Eric A. Borisch" Date: Fri, 19 May 2017 22:57:15 -0500 Message-ID: Subject: Re: zpool imported twice with different names (was Re: Fwd: ZFS) To: Paul Kraus Cc: FreeBSD Stable , =?UTF-8?Q?Trond_Endrest=C3=B8l?= , "freebsd-fs@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2017 03:57:16 -0000 On Thu, May 18, 2017 at 9:18 AM, Eric A. Borisch wrote: > On Wed, May 17, 2017 at 9:38 PM, Eric A. Borisch > wrote: > >> 4) zpool import -f alpha beta succeeds without any complaints. >> >> IV. Alpha no longer exists, Beta exists (with the same GUID as Alpha) AND >> is active. This is an 'atomic' operation from user's point of view, and at >> no point does zpool list show more than one pool >> >> 5) zpool list shows only beta; scrubs fine, life is good.. >> >> V. Beta exists on disk and is active and healthy. Alpha is no more. >> (Except as a ghost in a cache file) >> > > A quick test revealed one other tidbit this morning; if I 'zpool export > beta' at this point in the process (still in live CD OS), everything is OK > on reboot into the installed OS. > > For whoever wants to investigate handling/hand-off between > bootloader/kernel/fully booted, the problem appears when a: > > 1) root pool is renamed, but not 'zpool export'-ed after rename via an > 'external' OS (live CD) > ** and ** > 2) A stale zpool.cache file exists on the pool referring to the original > name. > bug report created: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219411