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.

Now that our server is set up, I would like to rename our zpools.

I read somewhere that the way to do this is export & re-import under the new name. But will all my mount points and shares remain intact? Or will I have to set those up again?

share|improve this question
add comment

1 Answer

Actually, you can rename a zpool. Just not live. It is done exactly as you suggested. You can only export & re-import it using the new name. 'man zpool import' explains it:

   zpool import [-o mntopts] [ -o property=value] ... [-d dir | -c cachefile] [-D] [-f] [-R root] pool | id [newpool]

   Imports  a  specific  pool.  A pool can be identified by its name or the numeric identifier. If newpool is specified, the pool is imported using the name newpool.
   Otherwise, it is imported with the same name as its exported name.

It is worth noting that while your mounts will likely survive, they won't be where they used to be, most likely. If you were, for example, importing NFS mounts on a client using 192.168.1.5:/<pool>/<dataset> then the mount would change to 192.168.1.5:/<new-pool-name>/<dataset>. Since you have to export the pool to rename it anyway, this task of renaming a pool IS a downtime event -- so if on re-import you have to reset some mounts or change some mountpoints on the server, I don't see that it's that huge a deal.

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.