From owner-freebsd-questions@FreeBSD.ORG Tue Sep 27 21:58:54 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 103C4106566B for ; Tue, 27 Sep 2011 21:58:54 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9932D8FC14 for ; Tue, 27 Sep 2011 21:58:53 +0000 (UTC) Received: by eyg7 with SMTP id 7so7077781eyg.13 for ; Tue, 27 Sep 2011 14:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=elZmorUZWh/31Q25yU1nDaK6bN6dyhrnMk6QGJo55MU=; b=m0a3NfojXE9XEgICxxFaGnxWrwpZNJivxJ2EtiY0s/z/v1QCSpFF+MnXlJTyz2EnXW NIUnGmabwoGUKM/4bKd/wohuFo3t2t2n7deh+TLkzvxK5Cxo4vw1WppQY6ZqsyEUm/gO D7Wer3UQCQt3QrknQkKxdGuQjyYcgNDznIqQw= Received: by 10.213.36.9 with SMTP id r9mr717590ebd.8.1317160732315; Tue, 27 Sep 2011 14:58:52 -0700 (PDT) Received: from [192.168.1.13] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPS id f16sm35394067eec.8.2011.09.27.14.58.50 (version=SSLv3 cipher=OTHER); Tue, 27 Sep 2011 14:58:50 -0700 (PDT) Message-ID: <4E824719.8090102@gmail.com> Date: Tue, 27 Sep 2011 23:58:49 +0200 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: peter harrison References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: GEOM_MIRROR GPT table corrupt or invalid X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 21:58:54 -0000 peter harrison schreef: > Hello list, > > I have a problem with a software RAID1. This was created under Freenas 0.7.2 > (using the web interface - FreeBSD 7.3 under the hood) which as I understand > it uses GPT and GEOM_MIRROR. This Freenas is running on AMD64 on an ESXi 4.1 > host with the 2 drives for the mirror passed through as raw disks to the > Freenas guest - if that makes a difference. > > This mirror now fails to mount on boot. Checking the boot messages I see > this straight after the drives are detected: > > GEOM: da1: the secondary GPT table is corrupt or invalid. > GEOM: da1: using the primary only -- recovery suggested > > Further on I see: > > GEOM_MIRROR: Force device data start due to timeout > GEOM_MIRROR: Device mirror/data launched (1/2) > > The mirror is not mounted when booting is completed - no further messages > during boot - mount says: > > freenas:~# mount > /dev/da0s1a on / (ufs, local, soft-updates) > devfs on /dev (devfs, local) > procfs on /proc (procfs, local) > > When I try to mount it manually I get a continually scrolling g_vfs error: > > g_vfs_done():mirror/datap1[READ(offset=-636932692096956416, length =16384)] > error = 5 > > and the guest becomes unresponsive. > > GEOM isn't something I'm really familiar with - so any insight on how this > happened would be interesting. But the main question is, is there anyway of > getting the data off this disk? (I have some backups, but they're not > complete). > > Thanks for any help. > > > > Peter Harrison. > You can not use gmirror and GPT at the same time on the whole disk. Both use the same diskspace to write there meta data. What you can do is to mirror the partitions seperately. A nice howto you can find here http://www.unix-heaven.org/node/20 You can recover the GPT, but then the mirror can not load. if you recreate the mirror after that, the gpt label gets corrupt. regards, Johan