From owner-freebsd-questions@freebsd.org Wed Aug 3 20:45:23 2016 Return-Path: Delivered-To: freebsd-questions@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 5CFBABAEE93 for ; Wed, 3 Aug 2016 20:45:23 +0000 (UTC) (envelope-from julien@perdition.city) Received: from relay-b02.edpnet.be (relay-b02.edpnet.be [212.71.1.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "edpnet.email", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D97916D4 for ; Wed, 3 Aug 2016 20:45:22 +0000 (UTC) (envelope-from julien@perdition.city) X-ASG-Debug-ID: 1470255692-0a7b8d2a6f14cbd60001-jLrpzn Received: from mordor.lan (213.211.139.72.dyn.edpnet.net [213.211.139.72]) by relay-b02.edpnet.be with ESMTP id ykA5q3eo0Tc1jbVu (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 03 Aug 2016 22:21:33 +0200 (CEST) X-Barracuda-Envelope-From: julien@perdition.city X-Barracuda-Effective-Source-IP: 213.211.139.72.dyn.edpnet.net[213.211.139.72] X-Barracuda-Apparent-Source-IP: 213.211.139.72 Date: Wed, 3 Aug 2016 22:21:32 +0200 From: Julien Cigar To: freebsd-questions@freebsd.org Subject: shrink zfs root zpool Message-ID: <20160803202131.GA3082@mordor.lan> X-ASG-Orig-Subj: shrink zfs root zpool MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-Barracuda-Connect: 213.211.139.72.dyn.edpnet.net[213.211.139.72] X-Barracuda-Start-Time: 1470255692 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://212.71.1.222:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 691 X-Virus-Scanned: by bsmtpd at edpnet.be X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5028 1.0000 0.7500 X-Barracuda-Spam-Score: 2.25 X-Barracuda-Spam-Status: No, SCORE=2.25 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.0 tests=BSF_SC0_MV0713, BSF_SC0_MV0713_2 X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.31729 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_SC0_MV0713 Custom rule MV0713 1.00 BSF_SC0_MV0713_2 BSF_SC0_MV0713_2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2016 20:45:23 -0000 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I have a machine with a simple zfs root mirror pool (2 disks) that I'd=20 like to shrink and I wondered what would be the best approach to do=20 this? I was thinking of booting on a usb stick, remove one physical disk from the mirror, gpart resize the partition, create a new zpool, and finally a pair of zfs snapshot / send from the old pool to the new one .. Would that work? Any caveats? Thanks! Julien --=20 Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJXolJIAAoJELK7NxCiBCPAT4cP/3CmXN9bzOPphvxix/8lSqJu AB2zHoxvJZ4q0ldiw8A1gzr/ZQIkfZyu45bXmK4+unNhtK+tmBNh5/7yoNGvDxNh Crx4QIIjJFi7WcOe014MJhLGgsnSi5I8Sa1wpYzBJJecwXbyZ+io/w2wVXvvvQTV qSykAbu1xyDXYEwMnQ6f+d+asPiZSyj+gS5sIy/27JrYAQY4/IZ+jonShyZEwC2f xkSgLj3wzKLiH4zX1lHCxpsVHIzLhpV4hauH+uruvuSX4giGlzdPYk9MbRrGv77O o1BfCCIGyyFeZvSgWrblMQh2np4YyhFsElWG+rhdkcuS4qYsZhIyBvG4WynQJS8d hZ58XWv6bpfdDpeey42kTjYJRftKH3DHupqRfuVfItWvzwqUzNnuAjFah55YG4iA sSoixEhOL2Y0piTbmcvspgqAa5s/ytWdXOckKQr1nRaBbw5ICdK1rco6vUVfZMwi jI+7RogFySjlVYKLduj8OVBw24msg5S+Rr0i0VodzR1wxMXPjgw8Z1A8XKrjooXa GjWE9O8pNYXi0wXJxJenvTsP39iVjYOUjzWZTVUgbEyXuBIwVjbsDF222ITPJ+ok AiQyjL/Bwrgb+WXitIsXe0oMrEJeOxe4vBhLRtS+XlNUvZAOK3PbVSIv5/4Tr9R/ mhE3me3YrBLBU3Uq7XbP =bWud -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--