From owner-freebsd-fs@freebsd.org Mon May 21 08:37:49 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BC9DEE84C4 for ; Mon, 21 May 2018 08:37:49 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from cu01176b.smtpx.saremail.com (cu01176b.smtpx.saremail.com [195.16.151.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CBC8173E93 for ; Mon, 21 May 2018 08:37:48 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from [172.16.8.141] (unknown [192.148.167.11]) by proxypop01.sare.net (Postfix) with ESMTPA id D160F9DD37D for ; Mon, 21 May 2018 10:37:43 +0200 (CEST) From: Borja Marcos Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Question about zpool remove vdev Message-Id: <130DDCA4-55C6-40DC-A53D-D2E031DCA9B2@sarenet.es> Date: Mon, 21 May 2018 10:37:43 +0200 To: freebsd-fs@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2018 08:37:49 -0000 Hi, I have just noticed a nice new feature: the ability to remove a vdev = from a pool. I am considering to use it to fix a poorly made pool (sins of youth, = created in 2012) which right now has two raidz1 vdevs (yes, stupid!). I would like to recreate new vdevs = with more redundance.=20 Something like: # zpool remove pool raidz1-0 # zpool add pool raidz2 [disks from the former first raidz vdev] # zpool remove pool raidz1-1 # zpool add pool raidz2 [disks from the former second raidz vdev] I have tried the memory estimation, # zpool remove -n pool raidz1-0 Memory that will be used after removing raidz1-0: 711M And now I wonder. Is this memory usage transient or permanent?=20 If I add a new vdev after removing one, what happens? I guess there will = be no=20 automatic rebalancing. In that case I imagine making new copies of = datasets would be the way to do it. Right? Thanks! Borja.