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 an EasyStore NAS running Ubuntu, and I want to replace the disks. I want to add the ZFS kernel modules and create a ZFS RAIDZ pool. Due to space constraints, I have to move the data to the new pool right away. Can I create the new pool on another computer and move it to the EasyStore after the files are moved? Will ZFS have problems recognizing the disks, or anything else?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

No problems... You can create a pool and use the zpool export option on the system you create the pool on.

Once the disks are attached to the final destination host, you can use the zpool import command to import the dataset.

See: Migrating ZFS Storage Pools

share|improve this answer
    
Fantastic, thank you very much. –  Stavros Korokithakis Dec 12 '12 at 2:28
    
For what it's worth, zpool export seem to be, at least sometimes, not absolutely necessary. I migrated a pool without exporting it (doh!, too used to md), and it imported without issue. I did do the migration when everything was off, though. –  Fake Name Oct 23 at 5:11

No problems... unless the OS receiving the pool

  • has an older pool version support than the pool you want to send
  • has an older zfs version support than any file system in the pool
  • doesn't support the partitioning scheme used to store the pool devices

As you are using ubuntu, the third requirement is a non issue (both BIOS and EFI are supported and you won't have Solaris on SPARC labels).

If you aren't running the same ZFS implementation on both side, run zpool upgrade -v and zfs upgrade -v on each of them to make sure their versions match.

In any case, there is no risk losing data if one of these conditions is not met, zpool will just refuse to import the pool.

share|improve this answer
    
They're both running zfsonlinux, so the versions should match, thank you for the heads up! Still, there shouldn't be any loss of data, right? It just won't "see" the array, at most. –  Stavros Korokithakis Dec 13 '12 at 9:31
    
Yes, answer updated. –  jlliagre Dec 13 '12 at 9:39
    
Great, thank you. –  Stavros Korokithakis Dec 13 '12 at 13:30

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.