From owner-freebsd-questions@freebsd.org Tue Feb 14 20:56:08 2017 Return-Path: Delivered-To: freebsd-questions@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 7C2EFCDF649 for ; Tue, 14 Feb 2017 20:56:08 +0000 (UTC) (envelope-from cstankevitz@toyon.com) Received: from mail.toyon.com (mail.toyon.com [209.203.101.84]) by mx1.freebsd.org (Postfix) with ESMTP id 5947E1DA2 for ; Tue, 14 Feb 2017 20:56:07 +0000 (UTC) (envelope-from cstankevitz@toyon.com) Received: from stink.local (172.16.1.179) by mx.toyon.corp (172.17.0.7) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 14 Feb 2017 12:45:29 -0800 To: FreeBSD Questions From: Chris Stankevitz Subject: Stale zpool from a prior life in "zpool import" Message-ID: <3aff436c-4e15-ec41-5b54-532cc036fdc0@toyon.com> Date: Tue, 14 Feb 2017 12:45:28 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms040801060102010207020605" X-Originating-IP: [172.16.1.179] X-ClientProxiedBy: mx.toyon.corp (172.17.0.7) To mx.toyon.corp (172.17.0.7) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2017 20:56:08 -0000 --------------ms040801060102010207020605 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable I have some drives whose "entire disk" was used to create a pool -- then = they were repurposed to create a different pool with the same name on=20 encrypted geli partitions: #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # create zpool using entire disk zpool create tank mirror /dev/da5 /dev/da6 zpool export tank # use same disks to create zpool using geli on a partition gpart create -S GPT /dev/da5 gpart create -S GPT /dev/da6 gpart add -t freebsd-zfs -a 1M -l tank-1 /dev/da5 gpart add -t freebsd-zfs -a 1M -l tank-2 /dev/da6 geli init -e AES-XTS -l 256 -P -s 4096 -K /path/to/key /dev/gpt/tank-1 geli init -e AES-XTS -l 256 -P -s 4096 -K /path/to/key /dev/gpt/tank-2 geli attach -p -k /path/to/key /dev/gpt/tank-1 geli attach -p -k /path/to/key /dev/gpt/tank-2 zpool create tank mirror /dev/gpt/tank-1.eli /dev/gpt/tank-2.eli #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Nowadays "zpool import" shows two pools. One on the encrypted geli=20 paritions (which is available) and another from the remnants of the the=20 unencrypted "full disk" (which are UNAVAIL and corrupted). They both=20 share the same name but of course have different ids. How do I remove the UNAVAIL zpool? Thank you, Chris --------------ms040801060102010207020605 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC Ey8wggVzMIIEW6ADAgECAgEVMA0GCSqGSIb3DQEBBQUAME0xCzAJBgNVBAYTAlVTMRgwFgYD VQQKEw9VLlMuIEdvdmVybm1lbnQxDDAKBgNVBAsTA0VDQTEWMBQGA1UEAxMNRUNBIFJvb3Qg Q0EgMjAeFw0xNDAxMTYxNDM1MzJaFw0yMDAxMTYxNDM1MzJaMHMxCzAJBgNVBAYTAlVTMRgw FgYDVQQKEw9VLlMuIEdvdmVybm1lbnQxDDAKBgNVBAsTA0VDQTEiMCAGA1UECxMZQ2VydGlm aWNhdGlvbiBBdXRob3JpdGllczEYMBYGA1UEAxMPSWRlblRydXN0IEVDQSA0MIIBIjANBgkq hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsedDpAUATJmZdjIcCnWlJpEaujYmflp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