From owner-freebsd-current@FreeBSD.ORG Sun Jan 27 19:05:16 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4E43998F for ; Sun, 27 Jan 2013 19:05:16 +0000 (UTC) (envelope-from konfer@mikulas.com) Received: from parez.praha12.net (parez.6.praha12.net [IPv6:2a01:490:16:2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 13984F2 for ; Sun, 27 Jan 2013 19:05:16 +0000 (UTC) Received: from mech.mikulas.com (mech.platan.praha12.czf [10.27.66.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by parez.praha12.net (Postfix) with ESMTPS id EDFA8C6001 for ; Sun, 27 Jan 2013 20:05:12 +0100 (CET) Message-ID: <51057A68.7000106@mikulas.com> Date: Sun, 27 Jan 2013 20:05:12 +0100 From: Jiri Mikulas User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120619 Thunderbird/13.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Zpool surgery References: <20130127103612.GB38645@acme.spoerlein.net> <1F0546C4D94D4CCE9F6BB4C8FA19FFF2@multiplay.co.uk> In-Reply-To: <1F0546C4D94D4CCE9F6BB4C8FA19FFF2@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 19:05:16 -0000 On 2013/01/27 15:31, Steven Hartland wrote: > ----- Original Message ----- From: "Ulrich Spörlein" > >> I have a slight problem with transplanting a zpool, maybe this is not >> possible the way I like to do it, maybe I need to fuzz some >> identifiers... >> >> I want to transplant my old zpool tank from a 1TB drive to a new 2TB >> drive, but *not* use dd(1) or any other cloning mechanism, as the pool >> was very full very often and is surely severely fragmented. >> > > Cant you just drop the disk in the original machine, set it as a mirror > then once the mirror process has completed break the mirror and remove > the 1TB disk. > > If this is a boot disk don't forget to set the boot block as well. > > Regards > Steve Hello before you start rebuilding mirror this way, don't forget zpool set autoexpand=on tank after you drop old 1TB disc from config, space will be expanded to new disc size. Regards Jiri