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 V3 V300R006

This document is applicable to OceanStor 2800 V3. Based on the CLI, this document describes how to use various commands classified by functionsand 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).
spa counter

spa counter

Function

The spa counter command is used to query the count of system metadata internal operations. This command is used to locate the error when a system I/O error occurs.

Format

spa counter [ -t type ]

Parameters

Parameter

Description

Value

type

Count type to be queried.

The value is an integer from 0 to 3, where:

  • "0": extent allocation.
  • "1": extent object management.
  • "2": extent metadata.
  • "3": count of metadata operations.

Views

Diagnostic view

Usage Guidelines

Run the "spa counter" command to query the counts of all system metadata internal operations.

Run the "spa counter -t type" command to query the count of a specific system metadata internal operation.

Example

Query counts of extent allocation operations.

admin:/diagnose>spa counter -t 0 
Counter Type Step Name                                 Received               Return Ok              Return Bad             Not Return             FirstErrTime         FirstErrCode  LastErrTime          LastErrCode  
  --------------  ----------------------------------------  ---------------------  ---------------------  ---------------------  ---------------------  -------------------  ------------  -------------------  ------------ 
  ExtentIntf      OP_RECLAIM_MIGRATE_EXTENT                                     1                      1                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_RESERVE_ROOT_EXTENT_QUOTA                                  2                      2                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_MOVE_TREE_OBJ_TO_FREE_QUEUE_BATCH                      24002                  24002                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_STOP_VOLUME_BACK_TASK                                      2                      2                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_QUERY_EXTENT_EXIST                                    384000                      0                 384000                      0  2016-11-11 13-55-35  0x80006b81 2016-11-11 13-56-42  0x80006b81 
  ExtentIntf      OP_PRE_ALLOC_EXTENT_BATCH                                 29618                  29618                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_ALLOC_EXTENT_FROM_CKG                                  24009                  24009                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_MOVE_POOL_QUEUE                                        24009                  24009                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_RECLAIM_VOL_QUEUE                                       3063                   3063                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_FREE_POOL_QUEUE_TO_LOCAL                                3017                   3017                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_ALLOC_NODE_EXTENT_BATCH                                    7                      7                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_FREE_NODE_EXTENT_BATCH                                     7                      7                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_RESERVE_ROOT_EXTENT_BATCH                                  2                      2                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_RECLAIM_ROOT_EXTENT_BATCH                                  2                      2                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_ALLOC_DATA_EXTENT_WITH_EXTID_BATCH                     24000                  24000                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_MOVE_ALLOCQ_TO_FREEQ_BATCH                                 3                      3                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_FREE_VOLUME_QUEUE_EXTENT_BATCH                             1                      1                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_ALLOC_EXTENT_FROM_CKG_FIRST                            24009                  24009                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_FREE_VOL_ROOT_META_CNT                                     2                      2                      0                   0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_LOOP_FREE_VOL_META_CNT                                  3017                   3017                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000 
  ExtentIntf      OP_LOOP_FORMAT_FREE_EXTENT                                 3017                   3017                      0                      0  0000-00-00 00-00-00  0x00000000 0000-00-00 00-00-00  0x00000000

System Response

The following table describes the parameter meanings.

Parameter

Meaning

Counter Type

Count type.

Step Name

Operation type.

Received

Counts of received requests.

Return OK

Count of I/Os for which a successful message is returned.

Return Bad

Count of I/Os for which a failure message is returned.

Not Return

Count of I/Os for which no message is returned.

FirstErrTime

Time when the first incorrect I/O occurs.

FirstErrCode

Error code of the first incorrect I/O.

LastErrTime

Time when the last incorrect I/O occurs.

LastErrCode

Error code of the last incorrect I/O.

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138381

Views: 666353

Downloads: 36

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next