Go to main content

Oracle® ZFS Storage Appliance 管理指南,发行版 OS8.8.0

退出打印视图

更新时间: 2018 年 11 月
 
 

重命名存储池 (CLI)

要重命名存储池,则必须将其取消配置,然后立即使用新名称将其导入。在取消配置存储的过程中,数据将不可访问,并且可能会丢失数据。导入存储池可能会需要相当长的时间。

开始之前

  • 在磁盘固件升级期间请勿执行池配置操作。要检查是否正在升级,请导航至 maintenance system updates

  • 在对等控制器已关闭或无法访问时请勿重命名池。

  1. 转到 configuration storage
  2. 如果有多个池,则将选中并显示默认池。如果这不是要重命名的池,请输入 set pool= 并指定其他联机池。

    注 -  如果只有一个池,则不显示池名称,但会将其选中。
    hostname:configuration storage (pool0)> set pool=pool1
                              pool = pool1
  3. 输入 unconfig
    hostname:configuration storage (pool1)> unconfig
  4. 输入 done
  5. 输入 import
    hostname:configuration storage> import
    
    Search for storage. Begin the process of searching for existing storage pools.
    
    Subcommands that are valid in this context:
    
       help [topic]         => Get context-sensitive help. If [topic] is specified,
                               it must be one of "builtins", "commands", "general",
                               "help" or "script".
    
       show                 => Show information pertinent to the current context
    
       abort                => Abort this task (potentially resulting in a
                               misconfigured system)
    
       done                 => Finish operating on "discover"
    
    hostname:configuration storage> discover>
    
  6. 输入 done
  7. 要选择您刚取消配置的存储池,请输入 set pool= 和池名称。
    hostname:configuration storage select> set pool=pool1
                              pool = pool1
  8. 要重命名存储池,请输入 set name= 和新名称。
    hostname:configuration storage (pool1)> set name=NewPool
                              pool = NewPool
  9. 输入 done

相关主题