From owner-freebsd-questions@freebsd.org Sun Jun 28 04:34:36 2015 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 154D798E552 for ; Sun, 28 Jun 2015 04:34:36 +0000 (UTC) (envelope-from chrisstankevitz@gmail.com) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::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 A0FF9199A for ; Sun, 28 Jun 2015 04:34:35 +0000 (UTC) (envelope-from chrisstankevitz@gmail.com) Received: by laar3 with SMTP id r3so31011887laa.0 for ; Sat, 27 Jun 2015 21:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=cK4V22pMYrUK4cyMAlgzNWlYoEct5APA/7KKOAsV7Gk=; b=OqcaNzpv2pIOtGXAOPaENrKCsel8FqpCXUgRoO0ZexTks0+GBnqyuFf2TJPyKWpdkL OcJNxwiTCPi9nGBPWQWhu9VFgZVOqFrMItHVGlDSt9z++zdfynS+tZdw5xGPJokevYbr kKRlWNVAovO51TxbhG2EVA4d7lK0S9afgGs+TRBh3ZuSLHqx3EVPGvPpBKFZ2mthd38K 8vYhJ1Zuygkg/Oyb2AT51W6GXMbFPLt/F6t7VGfa3f8xpq9qfL1E/LPnV3QzrDcPXEFI 5HjGCx9KuoS0g1zDvgSEqd6JMfrQPK/PxBDJjr8Ny4CCc2vzZc49qr2qlmAuE3Ypy1uK AnqA== MIME-Version: 1.0 X-Received: by 10.152.204.7 with SMTP id ku7mr8413367lac.38.1435466073126; Sat, 27 Jun 2015 21:34:33 -0700 (PDT) Received: by 10.25.42.146 with HTTP; Sat, 27 Jun 2015 21:34:33 -0700 (PDT) Date: Sat, 27 Jun 2015 21:34:33 -0700 Message-ID: Subject: Corrupt GPT on ZFS full-disks that shouldn't be using GPT From: Chris Stankevitz To: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 04:34:36 -0000 Hi, I have 11 drives in a zpools. The zpool is using the drives. i.e. I used "zpool create da1 da2 da3 ... daN". The zpools are running well. In a former life, each of these these drives held two gpart partitions. Apparently I did not "gpart destroy" these drives before creating a zpool out of them. Now when my computer boots, 1. the zpool comes up and is healthy 2. ls /dev/daX* does not show any of the "old" partitions. 3. dmesg reports "the primary GPT table is corrupt or invalid" and "using the secondary instead -- recovery strongly advised." Q: Am I in danger of GPT wrestling control of the drive away from ZFS Q: How can I remove the secondary GPT table from each of the drives that are participating in the zpool? I suppose I could offline and resilver each of them. I'm afraid to dd the secondary GPT header at the last 512 bytes of the drive. Perhaps there is a way I can ask ZFS to do that for me? Thank you, Chris