Notes to Self

Alex Sokolsky's Notes on Computers and Programming

HOWTO Shrink a (mirror) Pool

Problem Statement

I have a mirror pool based on 2x 6GB HDs. I want to migrate it to a 2x 4GB SSDs.

zpool status man page

zpool status tank

zpool list man page

zpool list tank



Add a smaller mirror to the existing pool

zpool add man page

zpool add tank mirror dev1 dev2

Wait for the resilver to complete

Remove the old mirror

zpool remove man page

zpool remove tank mirror-0