From owner-freebsd-current@freebsd.org Fri Mar 31 21:57:26 2017 Return-Path: Delivered-To: freebsd-current@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 896C9D27435 for ; Fri, 31 Mar 2017 21:57:26 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 696E979A for ; Fri, 31 Mar 2017 21:57:25 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id v2VLw9Ra040999 for ; Fri, 31 Mar 2017 14:58:15 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: "FreeBSD CURRENT" From: "Chris H" Subject: GEOM has amnesia Date: Fri, 31 Mar 2017 14:58:15 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <6b1476532d8534c90a48b8353d9f0db2@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2017 21:57:26 -0000 Hi I brought this up earlier, but didn't have as much to go on as I do now. So I'd like to try this again; On a recent(ish) install of CURRENT followed by a new kernel/world. I'm finding I can't depend on geom(8) for anything, but the primary (SATA3) drive, it's installed on (if even that). To the point; Blanking/partitioning/formatting a usb memstick to to dump(8) this system to, works fine *until* I reboot. Where I'm greeted with GEOM: da0: the secondary secondary GPT table is corrupt or invalid .. GEOM: diskid/DISK-... : the secondary GTP table is corrupt or invalid .. using the primary only -- gpart recover returns the status to OK, *until* I reboot. Where I'm greeted by the same BS. OK I can't live with this, so I grab a usb2 external drive off the shelf, and try it again. blank/partition/newfs && fsck mounted the partitions on /mnt and performed a restore. Reboot; && get the corrupt GPT message. So. I spin up an old 11 server I have sitting in the closet, with this external drive attached to it. I do *NOT* get the corrupt GPT message. So I blank/partition/newfs the external drive && mount the partitions individually to /mnt && restore again. When I reboot to the external drive still connected to the old 11 server, I do *NOT* receive the corrupt GPT message. WooHoo! I think. So I re-attach the drive to the new 12 server. Reboot, and can't boot to it && get the corrupt GPT message. GEOM seems to be broken in 12, maybe even (recent) 11. As the 11 server I used for testing is ~9 mos out. What can I do to (help?) fix this mess? --Chris See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218026 Thanks!