From owner-freebsd-fs@FreeBSD.ORG Sun Mar 11 22:50:44 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B3EB1065674 for ; Sun, 11 Mar 2012 22:50:44 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B4C668FC08 for ; Sun, 11 Mar 2012 22:50:43 +0000 (UTC) Received: by iahk25 with SMTP id k25so7644242iah.13 for ; Sun, 11 Mar 2012 15:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=7ZtH+vkWiB0q0pE6486CSZAcICsZJX5xzRttmS1++J8=; b=cJcMttxUpPPJNRx994sBEQojrKsUud9aUr6rU41QifEXEjyAkDJKJeAw/dCT2Cf1rd mhI0GA3V5WkV2T55SZ5aOzYxae2t5rjY7fY8JYzNHfE9lE1IyDthIt+A88e6GbBrtfjO xeUkYF5Ec2BxTbgLEHrgFRWdIU3XEanadrs7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=7ZtH+vkWiB0q0pE6486CSZAcICsZJX5xzRttmS1++J8=; b=TFMHrJ7QtoY5YBnT0k6SVu/HQOB++QW02T7iAhyN+wGmIVcsvA35TQ0jMOUvviSNVq 9fNnkw9eBlN+z8JrD/Yxy6RFlbrfWgQfwLJXcPwLbfoDjVWYbPu3G2XsmFHTq+kRhVJI fNVwJmp1SdLDVmx1DHTn0tO9UrFIVRjVPGhIRUdn4nTOpQKCJf7UBeJU93yN1m9icpfk bj0TDgg8wNVPmS8TrLmYBzYXjTrf+6fzMZEDWf9BaWKiOYSJgR7/96NkMoeyCHBR99hj 7unZ+X8RiU+dTpioQGJCo7GFflXFmJm+mvPyVBzl4GdWi3gi2bjdIkbXwauhDzxsJYTz Yy+w== Received: by 10.50.94.200 with SMTP id de8mr6874326igb.21.1331506237388; Sun, 11 Mar 2012 15:50:37 -0700 (PDT) Received: from DataIX.net ([99.112.214.173]) by mx.google.com with ESMTPS id wp4sm6280909igc.3.2012.03.11.15.50.36 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Mar 2012 15:50:36 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q2BMoXTL036380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Mar 2012 18:50:33 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q2BMoWbj036249; Sun, 11 Mar 2012 18:50:32 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sun, 11 Mar 2012 18:50:32 -0400 From: Jason Hellenthal To: Mark Murawski Message-ID: <20120311225032.GA19883@DataIX.net> References: <4F5C4FF8.7080000@intellasoft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F5C4FF8.7080000@intellasoft.net> X-Gm-Message-State: ALoCoQlYE/92ISJgCt+ysJMmFwqp/WHDf68Wa0PfwJIq//iyVOb/+PZHDoxY9DkkHIF8eYvyTYqU Cc: freebsd-fs@freebsd.org Subject: Re: 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 22:50:44 -0000 Remove the device from the pool and zero the disk out and add it back to the pool... On Sun, Mar 11, 2012 at 03:10:48AM -0400, Mark Murawski wrote: > 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 > > > > > > > > > > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" -- ;s =;