Freebsd – Upgrade FreeBSD ZFS system to larger drives

freebsdraidzzfs

I have a FreeBSD system with a 750GB boot drive (UFS boot, ZFS root) and a second data made from a three drive raidz setup. I'd like to swap the three 250GB drives for a trio of 2TB drives. Assuming that I have enough room on the root drive to make a copy of all the date from the raidz setup, what would be the simplest way to swap out the drives?

Should I just copy out all of the data, destroy the pool, power down the system and install the drives and then boot and recreate the pool and then the file systems. Then restore the data back to where it was?

Is there something that I can do that would be less work?

This is on a 1U rack mount running FreeBSD 7.2 (Built from sources on 20090920).

Best Answer

I found the answer that I was looking for:

zpool offline tank drivename
<Remove drive>
zpool replace tank drivename
zpool export tank
zpool import tank

This way, I will not have to delete and recreate the zpool and all of the file systems. I'm going to have to think about this.