From owner-freebsd-current@FreeBSD.ORG Thu Jun 25 16:41:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C8921065679; Thu, 25 Jun 2009 16:41:40 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by mx1.freebsd.org (Postfix) with ESMTP id 654948FC1B; Thu, 25 Jun 2009 16:41:40 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KLS007ZJZORF370@asmtp023.mac.com>; Thu, 25 Jun 2009 09:41:18 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <20090625110253.GA31443@mech-cluster238.men.bris.ac.uk> Date: Thu, 25 Jun 2009 09:41:13 -0700 Message-id: <10FCC74D-6D46-4112-AD89-BBB4C5933957@mac.com> References: <20090625110253.GA31443@mech-cluster238.men.bris.ac.uk> To: Anton Shterenlikht X-Mailer: Apple Mail (2.1067.4) Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org, freebsd-ia64@freebsd.org Subject: Re: gmirror gm0 destroyed on shutdown; GPT corrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 25 Jun 2009 16:41:40 -0000 On Jun 25, 2009, at 4:02 AM, Anton Shterenlikht wrote: > dev_taste(DEV,mirror/gm0) > g_part_taste(PART,mirror/gm0) > > GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid. > GEOM: mirror/gm0: using the primary only -- recovery suggested. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You created the mirror after the GPT, which means you destroyed the GPT backup header. gmirror uses the last sector on the disk for metadata and that by itself is a cause for various problems. It's better to use gmirror per partition. > > #echo 'geom_mirror_load="YES"' >> /boot/loader.conf Is /boot a symlink for /efi/boot? > GEOM_MIRROR: Device gm0 destroyed. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is normal. > > And when the system is rebooted, there is no /dev/mirror anymore. You could run into a race condition between GPT and gmirror and GPT winning (again the result of gmirror using the last sector on a disk for metadata). Alternatively, make sure gmirror got loaded at boot. FYI, -- Marcel Moolenaar xcllnt@mac.com