FreeNAS:重命名一个zpool

现在,我们的服务器已经build立,我想重新命名我们的zpools。

我在某个地方读到,做这个的方法是用新名称导出和重新导入。 但是,我所有的login点和分享都会保持不变吗? 或者我将不得不重新设置这些?

其实,你可以重命名一个zpool。 只是没有生活。 完全按照您的build议完成。 您只能使用新名称导出并重新导入。 “man zpool import”解释说:

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. 

值得注意的是,虽然你的坐骑可能会存活下来,但他们很可能不会成为他们以前的地方。 例如,如果您使用192.168.1.5:/<pool>/<dataset>在客户机上导入NFS挂载,那么挂载将更改为192.168.1.5:/<new-pool-name>/<dataset> 。 由于您必须导出池来重命名它,因此重命名池的这个任务是一个停机事件 – 所以如果在重新导入时必须重置某些坐标或更改服务器上的一些挂载点,我不会看到这是一个巨大的交易。