No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Advanced O&M Command Reference

OceanStor 2800 V5 V500R007

This document is applicable to OceanStor 2800 V5. Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change disk_domain repair_pool_meta

change disk_domain repair_pool_meta

Function

The change disk_domain repair_pool_meta command is used repair pool metadata.

Format

change disk_domain repair_pool_meta repair_type=? disk_domain_id=? [ engine_id=? ] [ meta_type=? ] [ app_type=? ] [ tier_type=? ] [ action=? ] [ pool_id=? ] [ bak_ckg_id=? ] [ is_old_disklog=? ] [ root_ckg_info=? ] [ disklog_ckg_info=? ] [ disklog_type=? ] [ disklog_info=? ] [ force_type=? ] [ zone_id=? ] [ disk_id=? ]

Parameters

Parameter

Description

Value

repair_type=? Type of the metadata to be repaired.

The value can be "POOL_META", "POOL_ROOT", "INSTANCE", "INNER_NODE", "DISKLOG", or "POOL_QUEUE", where:

  • "POOL_META": Pool metadata will be repaired.
  • "POOL_ROOT": Pool super blocks will be repaired.
  • "INSTANCE": Tree instances will be repaired.
  • "INNER_NODE": Internal nodes will be repaired.
  • "DISKLOG": Disk logs will be repaired.
  • "POOL_QUEUE": Pool queue will be repaired.
disk_domain_id=? Disk domain ID.

To obtain the value, run the "show disk_domain general" command in guest mode.

engine_id=? Engine ID.

To obtain the value, run the "show controller general" command in guest mode.

meta_type=? Type of the metadata object to be reconstructed.

The value can be "ZONE_CKG", "CKG_FREE_EXTENT", or "SPARE_CK", where:

  • ZONE_CKG: ckg info tree.
  • CKG_FREE_EXTENT: free extent tree.
  • SPARE_CK: spare ck tree.
app_type=? Application type.

The value can be "meta" or "data", where:

  • "meta": metadata.
  • "data": user data.
tier_type=? Tier type.

The value can be "SSD", "SAS", or "NearLine_SAS ", where:

  • SSD: tier 0, SSD.
  • SAS: tier 1, SAS.
  • NearLine_SAS: tier 2, NL-SAS.
action=? Operation. This parameter is mandatory when "repair_type" is set to "POOL_META", "INSTANCE", or "INNER_NODE".

The value can be "repair", "repair_confirm", "repair_cancel", or "clear_state", where:

  • "repair": repair.
  • "repair_confirm": repair confirmation.
  • "repair_cancel": repair canceling.
  • "clear_state": to clear the repair state.
pool_id=? Storage pool ID. When the value of "repair_type" is "INSTANCE" or "INNER_NODE", the value of "app_type" is "data", and no value is entered for "zone_id", a value needs to be entered for the parameter.

To obtain the value, run the "show storage_pool general" command in guest mode.

bak_ckg_id=? ID of the backup super block. This parameter is mandatory when "repair_type" is set to "POOL_ROOT".

To obtain the value, search for RaBx_BAKCKG0 in the operation logs.

is_old_disklog=? Indicates whether the disk log is old. This parameter is mandatory when "repair_type" is set to "POOL_ROOT".

The value can be "no" or "yes", where:

  • "no": The logs are not old ones.
  • "yes": The logs are old ones.
root_ckg_info=? Information about the metadata super block. This parameter is mandatory when "repair_type" is set to "POOL_ROOT".

To obtain the value, search for RaBx_CKG0 in the operation logs.

disklog_ckg_info=? Information about the disklog super block. This parameter is mandatory when "repair_type" is set to "POOL_ROOT".

To obtain the value, search for RaBx_LOGCKG in the operation logs.

disklog_type=? Information about the disk log.

The value can be "ROOT_DISKLOG", "FORMAT_DISKLOG", or "OTHER_DISKLOG", where:

  • "ROOT_DISKLOG": Disk logs in the log zone are restored.
  • "FORMAT_DISKLOG": Formatted disk logs will be repaired.
  • "OTHER_DISKLOG": Other disk logs will be repaired.
disklog_info=? Information about the disk log.
  • Disk logs are from log zones, obtained by searching for RaBx_RCKGLOG in operation logs.
  • In the target version, the value of disklog is the tree ID.
force_type=? Forcible repair type. This parameter is available when "repair_type" is set to "POOL_META".

The value can be "ZONE", "DISK", or "ZONE_DISK" where:

  • ZONE: forcibly repairs the ckg info tree.
  • DISK: forcibly repairs the ck smo tree.
  • ZONE_DISK: forcibly repairs the ck smo tree and ckg info tree.
zone_id=? Zone ID. The parameter is displayed when the value of "repair_type" is "POOL_META", and the value of "force_type" is "ZONE" or "ZONE_DISK"; or the value of "repair_type" is "INSTANCE" or "INNER_NODE", the value of "app_type" is "data", and no values are entered for "pool_id", a value needs to be entered for the parameter.

ID of the zone that needs to be repaired.

disk_id=? Disk ID. The parameter is displayed when the value of "repair_type" is "POOL_META", and the value of "force_type" is "ZONE_DISK"; or when the value of "repair_type" is "DISKLOG" and the value of "disklog_type" is "FORMAT_DISKLOG".

ID of the disk that needs to be repaired.

Views

Developer view

Usage Guidelines

None

Example

Repair the internal node whose engine ID is "0", disk domain ID is "0", metadata object type is "CKG_FREE_EXTEN", application type is "meta", and tier is "SAS".

developer:/>change disk_domain repair_pool_meta repair_type=POOL_META disk_domain_id=0 action=repair_confirm
DANGER: You are going to repair the metadata on the disk domain. This operation will change the metadata on the disk domain and cause part of the space to lose.
Suggestion: Before you run this command, check that you want to reconstruct this 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.

System Response

None

Translation
Download
Updated: 2020-01-17

Document ID: EDOC1000181575

Views: 727850

Downloads: 32

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next