所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

OceanStor Dorado V3系列 V300R002 高级运维命令参考(块业务)

本产品文档适用于OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3和Dorado18000 V3。本文档针对CLI命令行,介绍如何使用CLI设置和管理存储系统,以及按功能分类详细介 绍各命令的使用方法。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
change metadata repair

change metadata repair

命令功能

change metadata repair命令用于修复元数据。

命令格式

change metadata repair meta_type=? disk_domain_id=? action=? [ force=? ] [ strategy=? ] [ sub_strategy=? ] [ controller=? ] [ fpi_ref_repair=? ] [ speed=? ] [ lun_id_list=? ]

change metadata repair meta_type=? disk_domain_id=? action=? [ force=? ] [ strategy=? ] [ sub_strategy=? ] [ controller=? ] [ fpi_ref_repair=? ] [ speed=? ] [ lun_id=? ] [ lba=? ]

change metadata repair meta_type=? lun_id_list=? action=? [ force=? ]

change metadata repair meta_type=? snapshot_id_list=? action=? [ force=? ]

参数说明

参数

参数说明

取值

disk_domain_id=?

硬盘域ID。

执行“show disk_domain general”命令获取。

meta_type=?

重建的元数据对象类型。

取值范围为“All”、“LUN”、“SNAPSHOT”、“FPI_REF”,表示不同的元数据类型,各取值说明如下:

  • All:所有元数据。
  • LUN:LUN元数据。
  • SNAPSHOT:快照元数据。
  • FPI_REF:指纹引用计数。

action=?

操作类型。

取值为“enter”、“exit”、“start”、“confirm”、“cancel”、“terminate”、“clear”,各取值说明如下:

  • enter:进入修复环境。
  • exit:退出修复环境。
  • start:开始修复。
  • confirm:确认修复。
  • cancel:取消修复。
  • terminate:停止修复。
  • clear:清除修复。

force=?

强制标识。

取值为“no”、“yes”,其中:

  • “no”:非强制修复。
  • “yes”:强制修复。

lun_id_list=?

LUN ID列表。

取值为0~65535的整数,最大支持16个LUN ID。LUN ID以“,”分开,或者是以“-”分开的区间,例如:0,5-8。执行“show lun general”命令获取LUN ID。

controller=?

指定修复指纹表引用计数的控制器。

执行“show controller general”命令获取,默认选择所有控制器。

snapshot_id_list=?

快照ID列表。

取值为0~65535的整数,最大支持16个快照ID。快照ID以“,”分开,或者是以“-”分开的区间,例如:0,5-8。执行“show snapshot general”命令获取快照ID。

strategy=?

修复策略,系统默认值为auto。

参数取值为“auto”、“full_scan”、“online_repair”,其中各取值说明如下:

  • auto:自动选择修复策略,优先选择精细化修复,如果不满足阈值,转全盘扫描元数据修复。
  • full_scan:全盘扫描修复。
  • online_repair:在线修复。

sub_strategy=?

子策略,策略选择full_scan和online_repair时可以继续选择sub_strategy,默认为scan_meta。

参数取值为“scan_meta”、“scan_data”、“isolate”、“isolate_and_repair”、“post_isolate_repair”,其中各取值说明如下:

  • scan_meta:扫描元数据修复。
  • scan_data:扫描用户数据修复。
  • isolate:只隔离不修复。
  • isolate_and_repair:隔离的同时进行修复。
  • post_isolation_repair:全部隔离完了后再修复。

fpi_ref_repair=?

引用计数修复标识。

取值为“no”、“yes”,其中:

  • “no”:不修复引用计数。
  • “yes”:修复引用计数。

lba=?

逻辑地址范围。

单位是扇区,取值为0~9223372036854775807的整数。LBA以“,”分开,或者是以“-”分开的区间,例如:0,5-8。系统一次性最多支持64个区间的处理。

lun_id=?

指定的LUN ID。

取值为0~65535的整数。

speed=?

执行的速度。

取值为“high”、“middle”、“low”,各取值说明如下:

  • high:快速,校验少量元数据。
  • middle:中速,校验大部分元数据。
  • low:低速,校验全部元数据。

视图

研发视图

使用指南

无。

使用实例

  • 进入硬盘域0的修复环境。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=enter 
    DANGER: You are about to enter or exit a repair environment. Entering the repair environment will make the disk domain and LUNs to go offline and you will not be able to perform system configuration operations. Exiting the repair environment will make the disk domain and LUN go online, and you will be able to perform system configuration operations. 
    Suggestion: Before you run this command, 
    1. Ensure that host I/Os have been stopped. 
    2. Ensure that value-added services have been stopped. 
    3. During enter and exit the repair environment, do not restart the system or controller. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 退出硬盘域0的修复环境。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=exit 
    DANGER: You are about to enter or exit a repair environment. Entering the repair environment will make the disk domain and LUNs to go offline and you will not be able to perform system configuration operations. Exiting the repair environment will make the disk domain and LUN go online, and you will be able to perform system configuration operations. 
    Suggestion: Before you run this command,  
    1. Ensure that host I/Os have been stopped. 
    2. Ensure that value-added services have been stopped. 
    3. During enter and exit the repair environment, do not restart the system or controller. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 修复硬盘域0的所有元数据。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=start  
    DANGER: You are about to recover metadata of the disk domain. This operation modifies metadata on disks.  
    Suggestion: Before performing this operation, ensure that the metadata recovery is necessary for the disk domain.  
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 确认修复硬盘域0的所有元数据。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=confirm 
    DANGER: You are about to confirm metadata recovery of the disk domain. This operation makes the metadata recovery effective permanently and unable to be rolled back.  
    Suggestion: Before performing this operation, ensure that the metadata recovery needs to be confirmed for the disk domain.  
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 取消修复硬盘域0的所有元数据。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=cancel 
    DANGER: You are about to cancel metadata recovery of the disk domain. This operation rolls back the metadata recovery, causing data written after the recovery to lose.  
    Suggestion: Before performing this operation, ensure that the metadata recovery needs to be cancelled for the disk domain.  
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 终止修复硬盘域0的所有元数据。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=terminate 
    DANGER: You are about to terminate metadata recovery of the disk domain. This operation will result in the failure of the metadata recovery.  
    Suggestion: Before performing this operation, ensure that the metadata recovery needs to be terminated for the disk domain.  
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 清除硬盘域0的修复状态。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=clear 
    DANGER: You are about to clear the repair status of the disk domain. After this operation, you cannot view the status of the task by running the show command. 
    Suggestion: Before performing this operation, ensure that it is necessary for clearing the repair status of the disk domain. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 修复LUN0的元数据。
    developer:/>change metadata repair meta_type=LUN lun_id_list=0 action=start 
    DANGER: You are about to repair LUN metadata. This operation will modify the LUN and snapshot metadata on the LUN, and make value-added services unavailable. During metadata repair, configurations on the LUN and value-added services are forbidden. 
    Suggestion: Before performing this operation, ensure that the metadata recovery is necessary for the LUN. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 修复快照0的元数据。
    developer:/>change metadata repair meta_type=SNAPSHOT snapshot_id_list=0 action=start 
    DANGER: You are about to repair snapshot metadata. This operation will modify the snapshot metadata, and make value-added services unavailable. During the repair, the snapshot cannot be configured. 
    Suggestion: Before performing this operation, ensure that the metadata recovery is necessary for the snapshot. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 在线修复硬盘域0的指纹表的引用计数。
    developer:/>change metadata repair meta_type=FPI_REF disk_domain_id=0 action=start 
    DANGER: You are repairing the reference count of deduplication data. The repair process affects host service performance. During the repair process, no configuration change operation is allowed. If any hardware exception (including manual operations) occurs in the system, the repair fails automatically. 
    Suggestion: 1. Perform this operation during off-peak hours to reduce the impact on host service performance. 
    2. Do not operate any hardware during the repair. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 确认在线修复硬盘域0的指纹表的引用计数。
    developer:/>change metadata repair meta_type=FPI_REF disk_domain_id=0 action=confirm 
    DANGER: You are about to confirm the repair operation. This operation will end the entire repair process. 
    Suggestion: Before performing this operation, ensure that the repair needs to be confirmed for the disk domain. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 终止在线修复硬盘域0的指纹表的引用计数。
    developer:/>change metadata repair meta_type=FPI_REF disk_domain_id=0 action=terminate 
    DANGER: You are about to terminate the repair operation. This operation will cause the repair failure. 
    Suggestion: Before performing this operation, ensure that you want to terminate the repair for the disk domain. 
    Have you read danger alert message carefully?(y/n)y 
      
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 选择“只隔离不修复”策略,高速修复LUN0和LUN1的元数据。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=start strategy=online_repair sub_strategy=isolate speed=high lun_id_list=0-1 
    DANGER: You are about to recover metadata of the disk domain. This operation modifies metadata on disks.  
    Suggestion: Before performing this operation, ensure that the metadata recovery is necessary for the disk domain.  
    Have you read danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • 选择“只隔离不修复”策略,高速修复LUN0的逻辑地址范围是0-10的元数据。
    developer:/>change metadata repair meta_type=All disk_domain_id=0 action=start strategy=online_repair sub_strategy=isolate speed=high lun_id=0 lba=0-10 
    DANGER: You are about to recover metadata of the disk domain. This operation modifies metadata on disks.  
    Suggestion: Before performing this operation, ensure that the metadata recovery is necessary for the disk domain.  
    Have you read danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.

输出说明

无。

翻译
下载文档
更新时间:2019-07-17

文档编号:EDOC1100049100

浏览量:55164

下载量:73

平均得分:
本文档适用于这些产品
相关文档
相关版本
Share
上一页 下一页