From owner-freebsd-fs@freebsd.org Thu May 18 14:18:04 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 11204D73EDB; Thu, 18 May 2017 14:18:04 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (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 C682E13E6; Thu, 18 May 2017 14:18:03 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-pf0-x236.google.com with SMTP id 9so24591390pfj.1; Thu, 18 May 2017 07:18:03 -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=uyiJiCu4ojy7hTBs2BmORXpW3VGO/WrzmJwDIv3Rd4A=; b=PGubdnf1QNCJxrmbXdrdx944WQLfaem2/gOm+IN+ubD6Ke9F+Evc7PoS51TlsqVol1 6+2dcWz9v0eJy8tNOFCllgfjdzTtz13f3q2kOHzKsAIZufqac+BQcPgzMPw3fQszzgDB Yw31KWKndq1WdT0xCBr0wJYRGT+OhJ/39wLyVkD9Q91vblr5uhutJepwAh4vguVbqnyg OtdZRNNUT3gSf9b5DvEdq0wsqEw8GyK9JzNfRWVw50A72hxF6NJh1HuKjeJKTFDypXtJ SQFx6lbPzCAiSRXE7KIwWiP9fuwKQMJr+9RBvCpPS2pYWm4Lu0Upp+8HzbdF2lVLSZGP HZew== 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=uyiJiCu4ojy7hTBs2BmORXpW3VGO/WrzmJwDIv3Rd4A=; b=AmPOgwVJmy8mEMf3geZIe3VF4+XUHuukYTqK6/xX6N07JFWoFCm5NTOedmAND4BaJm p5TeN7DRm1oMr3o1VTtsOk5zd6WVpkT3qOFqWZv/0vvObFJXp6UkLH4X+2lGz0njUQwH HTNPXALr47wRyaVREeaE/4dDfreGFNdXyQQabfQn6GZ11kyP4fZFErLD30OGQKQ1c1iS VNtGCz7OBFPUbvt973eHhUsRCMRHhrNeeSahH3tZHCaGPKTMtgFQwpWiatQOPVK046wQ X+hWqE5pgJyhDH3stm8cku7bMTfvY3zTMtahQaqgZM4jbou7Q3oDpPRRsNUgS3ybN8ZN U4qA== X-Gm-Message-State: AODbwcDVy+4SbWUCMr4qb4L4e7H9ad8m6c16hxLvcr/eVQWH5supYLch lfWHz3TLwKFOY0UDRbOg86aVrAQN0pjy X-Received: by 10.99.186.78 with SMTP id l14mr4775984pgu.182.1495117083279; Thu, 18 May 2017 07:18:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.155.47 with HTTP; Thu, 18 May 2017 07:18:02 -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: Thu, 18 May 2017 09:18:02 -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: Thu, 18 May 2017 14:18:04 -0000 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. - Eric