From owner-freebsd-stable@freebsd.org Wed May 17 01:53:20 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 5B39AD70E82 for ; Wed, 17 May 2017 01:53:20 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (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 119EA71 for ; Wed, 17 May 2017 01:53:20 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: by mail-qk0-x231.google.com with SMTP id y201so145506430qka.0 for ; Tue, 16 May 2017 18:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kraus-haus-org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GlC4JnHfrxhB3lQjx8DxInRgZvb1VWgaojDPo2L7yZc=; b=Yr/UBJPUb5yEGRXvCoYntmsPmRwoTYjVnL6lvaBzbi6cArynQSb+z3PqUTX7xK0ko6 Qs+JAR8cytpqlV45au2V2IV4WoPBuPnvDx7dCOtk7tHFPxptqhlh+6pD3A8sjC2Naa0a Z+Fv5YR23VYyB4tLahL8NmbYyW/mhNeoqE6LvtUEXmEDuqoWqcD68lIdNYpZftnmbtPy vbVmTIq+rPvGP3QU+45ccCn1b4x4wRkQBlBn11M+cyswfanYR5cRs6IiaXXXeiXpKnhx ZJivw8uhaZuJ2sKKB/HukkUKvq4kmSeE7O5TQNCsUFtN5lvSd3ozA77dFcyTeiNKAJYr JmeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GlC4JnHfrxhB3lQjx8DxInRgZvb1VWgaojDPo2L7yZc=; b=No2fvUOpzVDjJKQLuVk8o3rvple4jw0PkTZ1jmrF04mvCRFne80kIxN1vWGBjiiywy b7OB6ysY76pHTHIDsH93GM8vPlurS/y1uhRMUbtGgTM5sEVvhYm5M26y3PDinpUUV6Ae EcXB8nq1clFuPlibSoTCIhzxtlZXE92K0l8L2Hwq6OatDH2eSaNSe4gT5Ahtu1rhwoxC xkQLLWaVpIhDmVN0wKUNeLhtc+aqsJlFSrv7u+Qb9bNGs6v+ekgVLhpI/JPTz9r1hm+e jWjMsvLhWwxE+iAVbyFd6UKwivDKu+a/bKVJZui19E7eObSc7WNu6jtthlql9O48C9oO x7ew== X-Gm-Message-State: AODbwcCUw9I161hKQuaNfi2zE4RQPPyXYu3BTv04/mtT1xcUC2T5ryzG +5fAbqLGUZQFW/T3 X-Received: by 10.55.215.219 with SMTP id t88mr834946qkt.45.1494985998916; Tue, 16 May 2017 18:53:18 -0700 (PDT) Received: from [192.168.2.65] (pool-74-109-188-83.albyny.fios.verizon.net. [74.109.188.83]) by smtp.gmail.com with ESMTPSA id j4sm429128qkd.19.2017.05.16.18.53.18 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 May 2017 18:53:18 -0700 (PDT) Subject: Re: zpool imported twice with different names (was Re: Fwd: ZFS) Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 From: Paul Kraus In-Reply-To: Date: Tue, 16 May 2017 21:53:17 -0400 Cc: =?utf-8?Q?Trond_Endrest=C3=B8l?= , FreeBSD Stable Content-Transfer-Encoding: quoted-printable Message-Id: <2318D9EB-4271-42C8-AEDB-4BB86607BB3D@kraus-haus.org> References: <7c059678-4af4-f0c9-ff3b-c6266e02fb7a@gmx.com> To: "Eric A. Borisch" , "freebsd-fs@freebsd.org" X-Mailer: Apple Mail (2.3124) 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 01:53:20 -0000 > On May 16, 2017, at 10:26 AM, Eric A. Borisch = 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.=