Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2017 21:53:17 -0400
From:      Paul Kraus <paul@kraus-haus.org>
To:        "Eric A. Borisch" <eborisch@gmail.com>, "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Cc:        =?utf-8?Q?Trond_Endrest=C3=B8l?= <Trond.Endrestol@fagskolen.gjovik.no>, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: zpool imported twice with different names (was Re: Fwd: ZFS)
Message-ID:  <2318D9EB-4271-42C8-AEDB-4BB86607BB3D@kraus-haus.org>
In-Reply-To: <CAASnNnrwTuJkMG2p%2BcXoKVfRQKnA5NccRGodwNUdCyG5j-L_LA@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> <alpine.BSF.2.21.1705160825130.40966@mail.fig.ol.no> <CAASnNnrwTuJkMG2p%2BcXoKVfRQKnA5NccRGodwNUdCyG5j-L_LA@mail.gmail.com>

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

> On May 16, 2017, at 10:26 AM, Eric A. Borisch <eborisch@gmail.com> =
wrote:
>=20
> On Tue, May 16, 2017 at 1:31 AM, Trond Endrest=C3=B8l <
> Trond.Endrestol@fagskolen.gjovik.no> wrote:
>=20
>> 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.
>>=20
>=20
> 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?

When you use the -f (force) flag all bets are off. The assumption is =
that you _know_ it is safe to import the zpool as commanded. In this =
case, it was not.

Many sysadmins I know have gotten into the sloppy (in my opinion) habit =
of using the force option (for various things) all the time. The force =
flag, whether it be on a zpool import or a kill -9 should be the last =
resort when the non-forced command fails.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2318D9EB-4271-42C8-AEDB-4BB86607BB3D>