From owner-freebsd-questions@freebsd.org Fri Jun 26 00:04:41 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 40FCA98CCEE for ; Fri, 26 Jun 2015 00:04:41 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (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 0CD8610E8 for ; Fri, 26 Jun 2015 00:04:41 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: by igblr2 with SMTP id lr2so3238504igb.0 for ; Thu, 25 Jun 2015 17:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=k7TR6NWQBZN/1TGmttXa54qKSGVtqvZPw+YYhCHyShg=; b=W9Tv3VoDwiOHs6LZZr14bGii+I15oh8eZC8LZItgF9sKMTsFLONEB0P7b9Hm7ZX/L9 8d39vFYMvFWtF7OjczuYJIBpKYh/oXmtFhN3990c+geKqq6T0WsiqIFSqBuGMw1VQUUW xjoOs6cgN1Nsg6vAWynRmsFsLIFaWY9K2w8S+Myz4eKnXLZroNoHlIEZozwz4AwjQnBK egTiOb1d1Unqbmd9p1GU4yUFEvp0/kddCl+NElj2+S6rLCojyqbDrlZGSXoWTDBCvvcG A9pa3VgPYePIUcB9+pHxyOn+QEJVRiUmviHWwoA8InV04UhampPNB/apJi8x0lHN6lEg KXqw== MIME-Version: 1.0 X-Received: by 10.50.109.138 with SMTP id hs10mr299762igb.48.1435277080437; Thu, 25 Jun 2015 17:04:40 -0700 (PDT) Received: by 10.50.30.202 with HTTP; Thu, 25 Jun 2015 17:04:40 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Jun 2015 20:04:40 -0400 Message-ID: Subject: Re: how to fix "CORRUPT" partition table in mirrored drive From: William Dudley To: Warren Block Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Fri, 26 Jun 2015 00:04:41 -0000 Warren, Again, thanks for the reply. Does the fact that gpart show -l reports this: => 63 3907029104 mirror/gm0 MBR (1.8T) [CORRUPT] Mean that I'm screwed and must copy all the data to a new drive and create the mirror anew? Can I remove the second drive from the mirror and still have the data on it accessible? the gmirror man page doesn't say what the disks that are removed from the mirror "look like", i.e. are they in some wierd format or can they be read like a normal disk. Thanks, Bill Dudley This email is free of malware because I run Linux. On Thu, Jun 25, 2015 at 7:57 PM, Warren Block wrote: > On Thu, 25 Jun 2015, William Dudley wrote: > > I have a mirrored drive: >> >> gpart show -l >> => 63 78156225 ad0 MBR (37G) >> 63 78156162 1 (null) [active] (37G) >> 78156225 63 - free - (31k) >> >> => 0 78156162 ad0s1 BSD (37G) >> 0 41943040 1 (null) (20G) >> 41943040 2097152 2 (null) (1.0G) >> 44040192 34115970 4 (null) (16G) >> >> => 63 3907029104 mirror/gm0 MBR (1.8T) [CORRUPT] >> 63 3907029105 1 (null) [active] (1.8T) >> >> => 0 3907029105 mirror/gm0s1 BSD (1.8T) >> 0 335544320 4 (null) (160G) >> 335544320 209715200 5 (null) (100G) >> 545259520 209715200 6 (null) (100G) >> 754974720 3152054385 7 (null) (1.5T) >> >> I tried to fix the corrupt partition table like this: >> >> gpart recover mirror/gm0 >> gpart: recovering 'mirror/gm0' failed: Function not implemented >> >> So how do I fix the corrupt partition table? Can I un-mirror the two >> drives >> and then do the gpart recover and then re-mirror them? >> > > gpart recover only works with some partitioning schemes. GPT has a backup > copy of the partition table that can be used to recover the primary one. > MBR and BSD partitioning schemes do not have redundant metadata for recover > to use. >