Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2016 22:21:32 +0200
From:      Julien Cigar <julien@perdition.city>
To:        freebsd-questions@freebsd.org
Subject:   shrink zfs root zpool
Message-ID:  <20160803202131.GA3082@mordor.lan>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160803202131.GA3082>