From owner-freebsd-stable@freebsd.org Thu Apr 26 15:14:44 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB4B7FB0263; Thu, 26 Apr 2018 15:14:44 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::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 1B1387AD67; Thu, 26 Apr 2018 15:14:44 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-lf0-x231.google.com with SMTP id h4-v6so4517190lfc.1; Thu, 26 Apr 2018 08:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=kQtFSmmDhGQuT9AJNRiFWh/sF/yxnJO516WILVhjTyc=; b=RWURpwN3CiYaHLE1odKgd8Ok6xrXcTKRyZ92lf7vfmrGIVq04zcEpZgd0wnsO/CHlt lAJzcxQ1D1B26GUm1GdzPHQz0I736RPn/hV6EfVFKB2U5LTIJ3z14L9kzXTmiPsYfpMo w/tk6OySTp/oHLKpqJGvk1cealqFII2gRSeZk6whTe0G/ZIIIuDWaxMUIdCwxkxW2dKC R4CdQBZCL6ds5Ga85Ens5eBj3naUJMiF+2AodnZMPvSxzgvYVvhPma+buiQh/1wxTgVM PHsvsbwFVsaQnC9OblaImpiAGWOn9WDGpGDGOO6owDn3TbnKbAVdl9VxDXQDlK9A7nTF rg7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=kQtFSmmDhGQuT9AJNRiFWh/sF/yxnJO516WILVhjTyc=; b=M8O8+FVDUAfpDrA3n5CO3U82Nshx5Nu91Q2UtL2p5e0IlwU1d4diDlS72CYMv4IM+a NB0WopGV4gNXSWtTzMo9z6S/Zb6jGg20tOyZnDrif5aDGJhguBKigh/appvhqUgfPIPx nvfcegmF3KtjlLGi1fAwQa8XLvFn+/kwbni+j3ubal8PGg1fLUWtRVIUIkMvubUXCiX7 Iw6Xzwvn3+8BFLdUAUWaNEY0U7pz1J69+iZ70dChNIEt4YlnQl2UCVvSQgyFHmQUCRwh ZeDLC/44IpWXJiC2VREm480yewsAp+C0tCErC7p8Rb2YkYdaf2IiyjucefOwFD2NiQaj Ldow== X-Gm-Message-State: ALQs6tDUklrkPlO4FRHoRtKWoePZd4N9+QkIkXVxgwTwH0aFF1B33rns vHW0VntzPlV6pZruSIt/gTKTBlPS7iF07cJdYRo= X-Google-Smtp-Source: AIpwx49OYhLJB2qzmfNo/7DPGgSU1pldERiZxhxE0HC0/Nhdr2FDL/iHuLsJ7hoSXOlGqYBl3I4lVkr738G9Lq4Z0d0= X-Received: by 10.46.2.90 with SMTP id 87mr23872898ljc.46.1524755682549; Thu, 26 Apr 2018 08:14:42 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.179.6.21 with HTTP; Thu, 26 Apr 2018 08:14:41 -0700 (PDT) In-Reply-To: <5AE1E414.4010408@grosbein.net> References: <92b45b63-48c0-e9fe-c7c8-3ff24f37bf1f@FreeBSD.org> <5AE1E414.4010408@grosbein.net> From: Alan Somers Date: Thu, 26 Apr 2018 09:14:41 -0600 X-Google-Sender-Auth: aff5XLq8b6Zs3Za6jknqFbazjdw Message-ID: Subject: Re: clear old pools remains from active vdevs To: Eugene Grosbein Cc: Andriy Gapon , "Eugene M. Zheganin" , FreeBSD , freebsd-fs Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2018 15:14:45 -0000 On Thu, Apr 26, 2018 at 8:37 AM, Eugene Grosbein wrote: > 26.04.2018 14:50, Andriy Gapon wrote: > > > You can try to use zdb -l to find the stale labels. > > And then zpool labelclear to clear them. > > Our "zpool labelclear" implementation destroys everything (literally). > Have you really tried it? > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > "zpool labelclear" won't help in this case, because you have literally no devices with active labels. The problem is that the pool is still in your /boot/zfs/zpool.cache file. I think that plain "zpool destroy esx" will work in this case.