From owner-freebsd-fs@freebsd.org Wed May 17 18:17:38 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 BAE01D71655; Wed, 17 May 2017 18:17:38 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1906B1B9C; Wed, 17 May 2017 18:17:37 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from iris.berlin.strato.de ([192.166.200.216]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MRSeC-1dZMhJ1L4a-00SiiA; Wed, 17 May 2017 20:16:05 +0200 Subject: Re: zpool imported twice with different names (was Re: Fwd: ZFS) To: "Eric A. Borisch" , =?UTF-8?Q?Trond_Endrest=c3=b8l?= Cc: "freebsd-fs@freebsd.org" , FreeBSD Stable References: <7c059678-4af4-f0c9-ff3b-c6266e02fb7a@gmx.com> From: Nikos Vassiliadis Message-ID: <2bab15ae-9683-d9f3-9d5e-d8f66bc14cac@gmx.com> Date: Wed, 17 May 2017 20:15:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:G/hBLmD7MgVNB+aIa2NU9Xa494eigFoI3QCYrdY0VtYuO7dgP30 9nZ+fiqvQv4Z2cXA874fv0M/GF10GPoKKDvPPQ7CpIvhUyNlM3ZH5qlqlFDp5qxuMfEZcKn Oe65odg6RO+JB65mE/1waARtCNVnLlcABWhtrOfUF/W8LILkBaUMb2EqPglZCgywb82nv1A YrEBFyILMQRZFtlHsbZxg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Y5ymDjdWGY4=:t90FUQQ28kydicGzgKNw83 l0GxYaXYLBDhFCrdsdwDfEabwvGkiWFO+/6sRkYRTaYW8aPbxU9fM/xmqUuH3aVSt7HHBRt6Q 6cTcX+BY2Hxv6OeZiocdkzn6Myf4Ea0uEdLxm5GeRHOdzc9AIyg+rDl+HdZaGWK5mpvirYhZ9 HWB4xnOqJZVgNWu/zagMD1X38HVTVOkMmAT5crpjelRiaRgVXWVp01kvakrwEstHkVmojsgo4 WJ5h5hXBsWEDoLUYcaFSV/KFOKXzuNIiKaIVsBNEj/Nd9YI2IDUh3WJsZwlOLdU3HzdEpC4to cjX79c00A2fb9iS0vO4rw8b8sTRpShmsAI80gVSofml/XJXj33Htue9SQpM/m8HpLuL6xgwZW xlTShB8VilYRFQA0IvjccRVqeIoMtwWJb/Zf1jhF4tIGBGRaKfkcWFRUDQdcVCs5Z8Xs5bZ0p RisnaBHu6rU1Xc+xg2UHKXcMxtfaoVOGc6PVygoEfd9BO0E1KUxyxj3r6gXe3Gjwu4N+OSt9K 9u8k3WQHB2ltgqrS5tdtcfqcSFC2W9HWVNeJB2NT4gX/9h6pv91gFArjxHIMUWBWJX7X50J1J rIV9LDPJ/mU/BcmhcQMFycI26WH2OyMOb3+5yKLLpPnKMKI8yhxoUTspXB/E8zDnt17GdYoUK oYfFhe5L8AXWmsfCZ4SVKTr9N8Tho61U5/qZqjDznGdkNWlnsm22+PEnr9jo/g3icgcV/Amjp 950vzeNayhz/YKTy5bBfEgjfqwXInKigN/9RljqWByWGMybIAnmr/a+iPgvdg9/WHqVVUT9r5 m2rewvp 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: Wed, 17 May 2017 18:17:38 -0000 On 05/16/2017 04:26 PM, Eric A. Borisch wrote: > On Tue, May 16, 2017 at 1:31 AM, Trond Endrestøl < > Trond.Endrestol@fagskolen.gjovik.no> wrote: > >> I guess you had a /boot/zfs/zpool.cache file referring to the original >> zroot pool. Next, the kernel found the vega pool and didn't realise >> these two pools are the very same. >> > > Assuming this is the case, shouldn't it be fixed? A check while importing > that the guid of the pool targeted for import is not in the set of > currently active guids would be worthwhile, but it -- apparently, if this > is reproducible -- doesn't exist? > > Again, assuming this is reproducible. > It is reproducible. Except for a check in ZFS, I would also expect that the device cannot be opened twice for writing, that is, protected by GEOM. Nikos