From owner-freebsd-stable@freebsd.org Wed May 17 18:13:13 2017 Return-Path: Delivered-To: freebsd-stable@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 4571FD7150D; Wed, 17 May 2017 18:13:13 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: from mail-vk0-x22b.google.com (mail-vk0-x22b.google.com [IPv6:2607:f8b0:400c:c05::22b]) (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 F1D781965; Wed, 17 May 2017 18:13:12 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: by mail-vk0-x22b.google.com with SMTP id x71so11328761vkd.0; Wed, 17 May 2017 11:13:12 -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=hYUUuMPJBB2gudUqoGc2lMp+p9y8838zDdhxLOvEDfs=; b=nSzD+EWdCvGB4MsVCiFsp5k9rDq8qNlDijNLqkC7E0looUs0APwj80K0YEHGN3rAuM JeryQRhU40aayalIDRUQ+facUoXiEdKPZ3CSMr+e/1DGbYYCTKQtk3DCLcbp14GcKrf/ xdqP4EBlpToSxreQNbWS26qrcfhSKGWfM7HAYXuP9Z/AT5d6ssYXdI0flTS+RqNWCUOr 5A693BelBA1NJcI2AgncIZSjqvYTX7tAXwtI7lhI+LRoYZqRaF0mHr2umo7UyJb+ZU1W 0m4xQUF5SEX01A3Ve5Sg0XR+uHORRxYE9dtlsPql3FkXKqHOWP6hu/k2JQ5xj9FGH5y5 zUfg== 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=hYUUuMPJBB2gudUqoGc2lMp+p9y8838zDdhxLOvEDfs=; b=qPvDhgOwWWr7hbwJVUFcokqjqKCMF5xfhwZA9LEMJ2gZV1EWbiFlVF1FofCPgVvew6 jqbqpWbdbHVMmX1gMnu+IdIzXfBfv1A4c6jNPthVpUJTHj63Gq2aX/nHliOmdEEOUA5+ Gw96A+HQdviijEjChNNONtUJw8jj4dz7oIr6mLzEXfkZHZFn+1KYbcodzSTWqpOreIOj 6AWf5+cvAgZJYsCTYjA/cqXKj2WrH5VQm15irFUNnFW1jpkxakndScn9HFicLY6T/Qo0 Xs6UWyZ9zfxaaU1zk4yPLBHsrSnCOxZzfcUdTbgwkF8PuiENInZwFb1v+nOAafLd7tL3 AgwQ== X-Gm-Message-State: AODbwcCSpHcRpeWTuG5XRGxR/bHi/+ck4EoQk++yrIGayGihdB2glosZ ZoUs2Mj1LoesEkQ6gi6muRBxHsmWsg== X-Received: by 10.31.197.5 with SMTP id v5mr28020vkf.119.1495044791867; Wed, 17 May 2017 11:13:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.169.135 with HTTP; Wed, 17 May 2017 11:13:11 -0700 (PDT) In-Reply-To: References: <7c059678-4af4-f0c9-ff3b-c6266e02fb7a@gmx.com> <20170516170802.71c2a470@fabiankeil.de> From: Brandon Allbery Date: Wed, 17 May 2017 14:13:11 -0400 Message-ID: Subject: Re: zpool imported twice with different names (was Re: Fwd: ZFS) To: Nikos Vassiliadis Cc: freebsd-fs@freebsd.org, freebsd-stable Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2017 18:13:13 -0000 On Wed, May 17, 2017 at 2:04 PM, Nikos Vassiliadis wrote: > If you boot from another system, there is no other way to > import a pool than using "import -f". So, I guess it is > part of normal administrative tasks. You can read more here: > > http://docs.oracle.com/cd/E19253-01/819-5461/gazuf/index.html >> > > This works and always have worked as documented. > Renaming a pool also works as documented, that is, > doing "zpool import oldnamepool newnamepool". Except > for this corner-case. IMHO this is a very serious bug. > Sorry, no, that's not a bug. The bug is that, if importing on another system is a common administrative operation, it should not require you to disable *all* checking. I'd rather prefer specific support for that, e.g. "import -F expectedhostname" to import a zpool on a different host from expectedhostname --- now you have sanity checking for a potentially dangerous operation as well as not turning off *all* error/sanity checking. Sadly, this seems to not have occurred to either Sun or Oracle, despite having documented it. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net