View Single Post
  #1   (View Single Post)  
Old 26th July 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default Moving ZFS partitions/drives between systems

I just had to move a ZFS partition from one machine to another, just thought i'd write a quick howto on this topic:

1. Plug in the drive to the new system
2. Tell ZFS to go searching for all available ZFS partitions
Code:
# zpool import
Your new drive should show up in the import list.
3. Import the partition using it's existing name
Code:
# zpool import <id | pool>
Import with a new pool name
Code:
# zpool import <id | pool > new_pool_name
Import with a new pool name to a different mount point
Code:
# zpool import -R /absolute/path/to/new/root <id | pool > new_pool_name
3. run a scrub to make sure your ZFS partition is consistent
Code:
# zfs scrub <pool>
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote