Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2017 23:42:52 -0400
From:      Paul Kraus <paul@kraus-haus.org>
To:        Brandon Allbery <allbery.b@gmail.com>
Cc:        Nikos Vassiliadis <nvass@gmx.com>, FreeBSD FS <freebsd-fs@freebsd.org>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: zpool imported twice with different names (was Re: Fwd: ZFS)
Message-ID:  <F5ED69CF-BA8E-4435-8457-2A9462AB8173@kraus-haus.org>
In-Reply-To: <CAKFCL4W_-KGvcFGWihZ4BFYtVQCGf_LzJ9YxUc-5LjNc5iRgqg@mail.gmail.com>
References:  <7c059678-4af4-f0c9-ff3b-c6266e02fb7a@gmx.com> <adf4ab9f-72f1-ed0f-fee2-82caba3af4a4@gmx.com> <ca7b47a7-7512-3cbb-d47b-6ef546dffd74@gmx.com> <20170516170802.71c2a470@fabiankeil.de> <e7657a46-bb4a-d5d7-a61e-5830bf7b82c1@gmx.com> <CAKFCL4W_-KGvcFGWihZ4BFYtVQCGf_LzJ9YxUc-5LjNc5iRgqg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On May 17, 2017, at 2:13 PM, Brandon Allbery <allbery.b@gmail.com> =
wrote:
>=20
> 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.

The assumption at work here is that you have exported the zpool from the =
system that was using it. At that point, zpool import <poolname> with no =
-f will work fine. It is only the special case of a zpool that was NOT =
exported that requires the use of the -f option.

I don=E2=80=99t see this as an unreasonable expectation. You unmount =
non-ZFS (and under the covers ZFS) filesystems before moving them to =
other systems. Why should we not be expected to export a zpool before =
moving it ?

Note that in the case of a crashed or failed or otherwise _unexpected_ =
move of a zpool from one system to another you still need to force the =
import. Just as you are forced to either fsck or replay journals on =
non-ZFS filesystems before you can mount them.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F5ED69CF-BA8E-4435-8457-2A9462AB8173>