From owner-freebsd-fs@FreeBSD.ORG Sun Mar 11 07:10:50 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23C311065670 for ; Sun, 11 Mar 2012 07:10:50 +0000 (UTC) (envelope-from markm-lists@intellasoft.net) Received: from mail.mystoragebox.com (mail.mystoragebox.com [64.27.7.19]) by mx1.freebsd.org (Postfix) with ESMTP id 103F08FC19 for ; Sun, 11 Mar 2012 07:10:49 +0000 (UTC) Received: from cpe-67-240-79-210.nycap.res.rr.com ([67.240.79.210] helo=[192.168.35.110]) by mail.mystoragebox.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1S6cbj-0008Uk-LQ for freebsd-fs@freebsd.org; Sun, 11 Mar 2012 01:50:19 -0500 Message-ID: <4F5C4FF8.7080000@intellasoft.net> Date: Sun, 11 Mar 2012 03:10:48 -0400 From: Mark Murawski User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to change a guid of a zfs device? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2012 07:10:50 -0000 How would I go about changing a guid of a zfs physical device? There doesn't seem to be any options in zpool or zdb for doing guid changes. It's a long story, but through a series of drive swaps I've managed to really screw stuff up. Here's my current status NAME STATE READ WRITE CKSUM zstorage UNAVAIL 0 0 0 mirror-0 ONLINE 0 0 0 ada4 ONLINE 0 0 0 ada3 ONLINE 0 0 0 mirror-1 UNAVAIL 0 0 0 14791054479353866913 UNAVAIL 0 0 0 was /dev/ada4s4 5249816505308091368 UNAVAIL 0 0 0 was /dev/ada1 mirror-2 ONLINE 0 0 0 ada5 ONLINE 0 0 0 ada10 ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 ada6 ONLINE 0 0 0 ada8 ONLINE 0 0 0 mirror-4 ONLINE 0 0 0 ada7 ONLINE 0 0 0 ada9 ONLINE 0 0 0 14791054479353866913 is really /dev/ada1s4 now 5249816505308091368 is really /dev/ada0 now the problem is, zdb tells me that /dev/ada1 has a guid of 3184618752700174674 and zdb says /dev/ada0 has a guid of 16592948394566938185 I need to get these to match so that I can reconstruct the pool again