Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Thread Tools Display Modes
  #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
# zpool import
Your new drive should show up in the import list.
3. Import the partition using it's existing name
# zpool import <id | pool>
Import with a new pool name
# zpool import <id | pool > new_pool_name
Import with a new pool name to a different mount point
# 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
# 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
  #2   (View Single Post)  
Old 4th August 2008
roundkat roundkat is offline
Shell Scout
Join Date: May 2008
Posts: 115

Very Helpful

All posts sent on ReCycled Electrons...
Reply With Quote
  #3   (View Single Post)  
Old 6th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
Join Date: May 2008
Posts: 696

To make things run smoothly, you should run # zpool export on the original system. That will make it easier to import on the new system.

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving ZFS to a other pool? amscotti Solaris 1 28th July 2009 11:49 PM
Moving linux partitions out of the BSD disklabel/slice fbsduser NetBSD Installation and Upgrading 5 4th March 2009 07:07 AM
Best web browser for *BSD systems JMJ_coder Other BSD and UNIX/UNIX-like 92 2nd January 2009 09:27 PM
Moving to ZFS Business_woman FreeBSD General 6 20th October 2008 03:28 PM

All times are GMT. The time now is 07:16 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick