From owner-freebsd-questions@freebsd.org Sun Jun 28 23:06:22 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 6B7FA98FF2B for ; Sun, 28 Jun 2015 23:06:22 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D93A1C0A for ; Sun, 28 Jun 2015 23:06:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id t5SN6KF2063065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 28 Jun 2015 17:06:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id t5SN6KKV063062; Sun, 28 Jun 2015 17:06:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 28 Jun 2015 17:06:20 -0600 (MDT) From: Warren Block To: Chris Stankevitz cc: freebsd-questions Subject: Re: Corrupt GPT on ZFS full-disks that shouldn't be using GPT In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 28 Jun 2015 17:06:20 -0600 (MDT) 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 23:06:22 -0000 On Sun, 28 Jun 2015, Chris Stankevitz wrote: > On Sat, Jun 27, 2015 at 11:26 PM, Warren Block wrote: >> Erasing just the last block would probably be enough. Still, the only >> reason to be afraid of it is if you do not have a full backup. And if you >> don't have a full backup, that is the first thing to do. > > Warren, > > Thank you. I do indeed have backups so perhaps I shouldn't be afraid > to just experiment... especially if I experiment only on one of my > raidz3 drives. Do I need to export the pool before using dd on the > raw device? It depends on how confident you are in those backups. Remember, ZFS leaves space unused at the end of a disk to allow for variations in nominal disk size. Overwriting even just the last block will destroy the backup GPT header without touching any ZFS data. In theory, anyway, which is why you have backups. ZFS ought to notice if there was any problem during the next zpool scrub. So do one drive, do a scrub, and if red lights don't start flashing and an urgent resilver does not start... it's good. But still, keep good backups.