Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

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.

share|improve this answer
1  
IMO, drive-by-drive migration from 250Gb drives to 2Tb is the best way to increase raidz capacity –  SaveTheRbtz Sep 29 '09 at 23:55
add comment

Backing up and restoring is probably the easier way to do it. I think that you can replace the drives one at a time, but that would require three reboots and it's dangerous since you will be running with a degraded array. To back up the data I would recommend using zfs send and zfs receive, which should make the backup and restore process quick and easy.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.