From owner-freebsd-hackers@freebsd.org Fri Dec 30 16:00:30 2016 Return-Path: Delivered-To: freebsd-hackers@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 6A671C972B3 for ; Fri, 30 Dec 2016 16:00:30 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qt0-x232.google.com (mail-qt0-x232.google.com [IPv6:2607:f8b0:400d:c0d::232]) (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 30EB018C9 for ; Fri, 30 Dec 2016 16:00:29 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qt0-x232.google.com with SMTP id p16so394572821qta.0 for ; Fri, 30 Dec 2016 08:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=bOioGlwKpYc9VVD5I19L1MDcGSIVmCKg+SER7zoZFEc=; b=N3ph/0ktUrTyIOxIRZleOkNxuuNy21zJ0P8/SgqjRUp8MxaWPyDBv0nRuuvkn55Y/b 5I2D1j3UOwhDDuQRLR7S9yMlNmf8U6oFiWjeHfehN3ZLqCWwXKugxe2ChWaS71M47XUu l6WYnyEZEaEqu1IVCEJHnARaMy5eh3hB7fVFlvZ5XZWGpxJDvloJgx78a7eYNYBjjbSM CukaH+7ITTeZl8tRqyVb0PNrlW8Nae0nOzEbDevZYN26thuiXT078T5VvjPWhq9/wIk5 9KEr560THVQ0kZ3KLh9B9BRsYrj8qbKChcjL92rR/y2mPJa6K+FQN3swzKKCdPLiNhMS McdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=bOioGlwKpYc9VVD5I19L1MDcGSIVmCKg+SER7zoZFEc=; b=LIXJ6Uiwfw7smYmXWXLtxh0Rqc7Q77IXM0sUshZGbxAeFx6Hs5CswWNETMPy3iQd1g 24P4J0UOP0rtKCNYru8yMHS1Wh5/Kuec7XOC7U1G4B3K/zpT19B+uyJrOB99K914YWr0 ldjgLe6gTvsuc9hod/rDiDaExGiQwiB4Ibn92y+NxtaGSpX19kbAl3LoAUv9lDiCBeLQ clt0rkAQRc9sGGRI7hMj2fke7XbCpBpQdSYxe6piHTiDFLcnjtm4QTd/L9fPr8XUMUzA N14hbCZIfDA7Qh0U7TPWvt7KnzwS7AzUUajOvCohR1O1nZJ0xsf/1Yi29trut62ipbkU bH8w== X-Gm-Message-State: AIkVDXL5ndjhj9fD4xLLGvGm2y7gWgjTRsH7so4aa0CCx9kHDgbrp4M+ZdrRPd8mLcJTi/FjEtix61z1TQwodw== X-Received: by 10.200.37.221 with SMTP id f29mr47288939qtf.123.1483113628592; Fri, 30 Dec 2016 08:00:28 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.181.208 with HTTP; Fri, 30 Dec 2016 08:00:28 -0800 (PST) In-Reply-To: <20161230124407.GN37118@zxy.spb.ru> References: <20161230124407.GN37118@zxy.spb.ru> From: Alan Somers Date: Fri, 30 Dec 2016 09:00:28 -0700 X-Google-Sender-Auth: pRgpRo_K6MlmYt1SIB9JhVrkYPs Message-ID: Subject: Re: How to safely remove rest of GTP? To: Slawa Olhovchenkov Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2016 16:00:30 -0000 On Fri, Dec 30, 2016 at 5:44 AM, Slawa Olhovchenkov wrote: > How to safely remove rest of GPT? > Disk have actual data (part of ZFS), I am don't need to destroy this > data. > > GEOM: da6: the primary GPT table is corrupt or invalid. > GEOM: da6: using the secondary instead -- recovery strongly advised. > GEOM: da22: the primary GPT table is corrupt or invalid. > GEOM: da22: using the secondary instead -- recovery strongly advised. > GEOM: da6: the primary GPT table is corrupt or invalid. > GEOM: da6: using the secondary instead -- recovery strongly advised. > GEOM: da22: the primary GPT table is corrupt or invalid. > GEOM: da22: using the secondary instead -- recovery strongly advised. It sounds like you created a GPT partition table, then created a ZFS Pool on the raw device, leaving part of the GPT partition table hanging around. If you're very careful, you can use dd to erase the GPT partition table. The following command worked for me. YMMV. dd if=/dev/zero of=/dev/vtbd1 bs=8192 count=2 -Alan