Go to main content

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

退出打印视图

更新时间: 2018 年 11 月
 
 

导入现有的存储池 (CLI)

通过导入操作,可以导入取消配置的存储池。在发生意外操作、恢复出厂设置或维修操作时,可以取消配置存储池以恢复用户数据。导入存储池需要迭代所有连接的存储设备并搜索所有现有的状态。这可能需要相当长的时间,并且在此期间无法执行任何其他存储配置活动。

开始之前

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

  1. 转到 configuration storage
  2. 输入 import
    hostname:configuration storage (pool0)> 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 (pool0) discover>
    
  3. 输入 done
  4. 输入 show
    hostname:configuration storage (pool0)> show
    Pools:
    
       POOL             OWNER         DATA PROFILE  LOG PROFILE  STATUS   ERRORS
    -> pool0          hostname        mirror        log_stripe   online   0
       pool1          hostname        -             -            exported -
    
    Properties:
                              pool = pool0
                            status = online
                            errors = 0
                             owner = hostname
                           profile = mirror
                       log_profile = log_stripe
                     cache_profile = cache_stripe
                             scrub = none requested
    
  5. 输入 set pool= 和要导入的池的名称。

    注 -  如果只有一个池,则不显示池名称,但会将其选中。
    hostname:configuration storage select> set pool=pool1
                                pool = pool1

    一条消息会提醒您验证存储是否正确连接并正常运行。

  6. 输入 done

相关主题