Home > zfs > FreeNAS: Renaming a zpool

FreeNAS: Renaming a zpool

December 12Hits:1

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?


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<pool>/<dataset> then the mount would change to<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.

Tags:zfs, freenas, zpool

Related Articles

  • FreeNAS: Renaming a zpoolDecember 12

    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? --------

  • Need to identify disk in zpool - how?April 4

    I need to replace a bad disk in a zpool on FreeNAS. zpool status shows gptid/5fe33556-3ff2-11e2-9437-f46d049aaeca UNAVAIL 0 0 0 cannot open How do I find the serial # of that disk? More: glabel status gives: Name Status Components ufs/FreeNASs3 N/A d

  • Need to replace disk in zpool - confusedApril 5

    I need to replace a bad disk in a zpool on FreeNAS. zpool status shows pool: raid-5x3 state: ONLINE scrub: scrub completed after 15h52m with 0 errors on Sun Mar 30 13:52:46 2014 config: NAME STATE READ WRITE CKSUM raid-5x3 ONLINE 0 0 0 raidz1 ONLINE

  • FreeNAS zpool not found

    FreeNAS zpool not foundJanuary 12

    We had a disk failure on our FreeNAS 8.3. After rebuilding and replacing one disk on the RAID we are unable to access the data. There are 8 X 3TB HDDs on the FreeNAS Server and there is a zpool of 16 TB which we are unable to access. The output is be

  • Is FreeNAS reliable?July 28

    FreeNAS seems like a great product with a full checklist of features, even iSCSI. But how reliable is it? There are a few scary stories about lost data, for example here. Here is another example. If you have used freeNAS for a longer period of time o

  • ZFS Hard Drive Configuration in FreeNASOctober 30

    I've been messing around with FreeNAS installed on a USB Flash Drive for a week or so, just testing all the services and possible hard drive configurations utilizing ZFS. It's a pretty neat setup but it's finally time to create a permanent zpool. My

  • FreeNAS: single-disk ZFS?October 1

    I have an older PC being re-purposed as a FreeNAS box for the household LAN. So far I've got FreeNAS installed to a USB thumb drive and a 500GB SATA drive for storage. I went and unmounted the hard drive and re-formatted it for ZFS. What I had in min

  • How to determine which disk failed in a FreeNAS / ZFS setupApril 20

    I'm building out a FreeNAS based server in a Supermicro X6DHE-XB 3U enclosure with 4G of RAM, 16 SATA hot-swap bays. It comes with 2x8 port 3Ware RAID cards, but I'm planning on just using the ZFS capabilities instead of the hardware RAID. My initial

  • Converting from OpenSolaris (EON) to FreeNASMay 20

    I have a 6TB RaidZ ZFS array configured on my nv129 based OpenSolaris filer, and I want to upgrade to FreeNAS as painlessly as possible. I remember betas had warnings that they did not support existing ZFS pools - has this changed? I can't seem to fi

  • Can't figure out HD replacement in FreeNAS 8June 6

    So I'm testing this out in VirtualBox, and I've got two 10GB drives as a test (mirror of ada1 and ada2, ZFS). I create a zpool/volume called "tank" with the two drives, no problem. Then I power off, remove one drive (ada2) and boot back up. It s

  • How do I rename devices when using ZFS fuse on linuxSeptember 18

    I've just started using ZFS on linux and have already run into problems. I connected my old data drive to my server to copy my data to my new ZFS volume. However, when I removed this drive and rebooted Linux, I found that my devices had been renumber

  • "zpool replace" hangs and locks up the poolDecember 30

    Given my four disk RAIDZ1, one disk has become physically noisy, not producing errors yet, but not sounding healthy either. So I've chosen to pre-emptively replace it. I have done: zpool offline tank0 ad6 Shutdown, remove and replace disk zpool repla

  • In ZFS, what is the difference between the various zpool versions?March 6

    According to this wiki article http://en.wikipedia.org/wiki/ZFS there are a number of zpool implementations out there. For example, OpenSolaris and derivatives are at 28. While FreeBSD 8 appears to be at version 15. Solaris 11 is at 33 etc. The table

  • Are there any PCIe SSD cards compatable with OpenIndianna (OpenSolaris) and/or FreeNAS (freebsd) 8+?April 2

    Has anyone had any success at all with any PCIx SSD cards around the 200GB+ mark under FreeNAS 8 or OpenIndiana? Specifically either of these platforms because of ZFS support for which we'd be using it as a L2ARC cache. I can confirm with FreeNAS tha

  • FreeNAS confusion: not sure what happened. raidz1 "DEGRADED", disk "FAULTED"August 18

    Sorry for the long narrative, but I'm thoroughly confused. I'm using FreeNAS-8.0.4-RELEASE-p2-x64 (11367) on a box with 5x3TB SATA disks configured as a raidz volume. A few days ago, the console gave me this alert: CRITICAL: The volume raid-5x3 (ZFS)

  • Understanding the concept: Bare-metal VMware ESXi 5.0 with FreeNAS guest VM and iSCSIAugust 27

    I have a test setup (HP Microserver) with just a single disk at the moment and have ESXi 5.0 bare-metal installed on a USB flash drive and a FreeNAS 8 VM created as a 2GB install, but now I'm at a loss... In my mind what I want to do is to share the

  • Why did my zpool replace never finish and what should I do now?October 9

    I have a ZFS zpool with two disks in a mirror configuration, da0 and da1. da1 failed, and so I replaced it with da2 using zpool replace BearCow da1 da2 This ran for a few hours, during which zpool status showed that the array was being resilvered. Wh

  • zfs rename/move root filesystem into childOctober 21

    Similar question exists but the solution (using mv) is awful because in this case it works as "copy, then remove" rather than pure "move". So, I created a pool: zpool create tank /dev/loop0 and rsynced my data from another storage in t

  • Too much free space on FreeNAS - ZFSOctober 28

    I have a FreeNAS server with 3 x 2 To disks in raidz1. I would expect to have about 4 To of space available. When I run zpool list I get: [[email protected]] ~# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT main_volume 5.44T 3.95T 1.49T 72% ONLINE /m

  • Freenas ZFS creation errorDecember 24

    I'm using a fresh installation of FreeNAS-8.3.0-RELEASE-p1-x64 (r12825) and I've got a problem with the zfs setup. For example: When I create a new ZFS volume using the GUI with my 2TB harddrive the GUI says Status "UNKNOWN". So I started over a

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.357 s.