From owner-freebsd-fs@freebsd.org Wed May 17 01:53:20 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 27C8DD70E7E for ; Wed, 17 May 2017 01:53:20 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (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 DA81F70 for ; Wed, 17 May 2017 01:53:19 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: by mail-qk0-x22d.google.com with SMTP id k74so145635609qke.1 for ; Tue, 16 May 2017 18:53:19 -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=r6Sx8VwpKCNpWKCbXsqk4EdY8y42MAWuBYhNw+XcHJWGGlpFeYatUjznJ0sfYElqSN SxNsvzlUafo3RMWQTQjD4WnvoLdtTUEybRGcVtNcbn84t9x2UCq5FqmML0WfxSx9BCoK cwUWXgiotQqG8RfCzEGO/HZdcKi0tAXAnIRK729oRMFp402tQcCS5U012ftxIaQoupGF QjTf1cTAt7O0+N5HUm7r9XxhvG51ApzpFz4J7YvfEiLrAleIVQ7H0L8DeeSh8Mym8klq gU4eZmQ/4Szi9WCuOisfZdpx3tIFq6ST5QFK1RA5BM7EbS7OJsYGqMR536tDVE/WsiD1 sj/w== X-Gm-Message-State: AODbwcDCsPcPJctJghqerSqUsm+ofT7OHIcrUCdwUBQLVA9oA6JZhDQs CRzntJRtubm31RiF 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-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 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.=