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

This document is applicable to OceanStor 18500 V3 and 18800 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).
grain showGrainReq

grain showGrainReq

Function

The grain showGrainReq command is used to view space statistics on the grain module.

Format

grain showGrainReq file_system_id

Parameters

Parameter

Description

Value

file_system_id

File system ID.

To obtain the value, run the "show file_system general" command.

Views

Diagnostic view

Usage Guidelines

This command is applicable only to the local controller.

Example

View space statistics on the grain module of file system "0".

admin:/diagnose>grain showGrainReq 0 
============================= Grain Space Details ============================ 
------------------------------ QueueCtrl -------------------------------- 
Total allocate meta extent num:                 128 
Total allocate data extent num:               11748 
------------------------ Allocctrl Summary ----------------------------- 
Total allocated meta:                      39952384(Bytes) 
Total allocated node:                      78225408(Bytes) 
Total allocated data:                   48365043712(Bytes) 
Total meta self used:                      23805952(Bytes) 
Total data self used:                             0(Bytes) 
Defree used meta:                          23068672(Bytes) 
Gang used meta:                                   0(Bytes) 
------------------------------ AllocAlg -------------------------------- 
Meta alloc tree extent num:                      14 
Meta alloc tree left size:                 37998592(Bytes) 
Data alloc tree extent num:                       5 
Data alloc tree left size:                 38273024(Bytes) 
------------------------------ NodeAlg --------------------------------- 
Remain node num:                                 80 
Total alloc node num:                          2096 
------------------------------ DeferFree -------------------------------- 
Deferfree left total size:               1183174656(Bytes) 
Deferfree left total meta size:             4050944(Bytes) 
Deferfree left total data size:          1179123712(Bytes) 
Deferfree current txNo:                         446 
------------------------------ GrainAlloc(Bytes)------------------------- 
grainUsed(data/meta):                       12582912/          40644608 
grainAlloc(data/meta):                   47198502912/         153972736 
grainReserve(data/meta):                   897056768/         110411776 
------------------------------ MergeTree(Bytes)-------------------------- 
mergeIn(data/meta):                       2480930816/          93057024 
mergeOut(data/meta):                      2461007872/          29360128 
InMergeTree(data/meta):                     19922944/          63696896 
------------------------------ AllocTree(Bytes)-------------------------- 
allocIn(data/meta):                      96650919936/      249561088 
allocOut(data/meta):                     96612646912/         211562496 
InKVDBTree(data/meta):                      38273024/          37998592 
InAVLTree(data/meta):                       38273024/          37998592 
------------------------------ Queue(Bytes)------------------------------ 
FreeQueue(data/meta):                       12582912/                 0 
AllocQueue(data/meta):                     838860800/          25165824 
------------------------------ Policy(Bytes)----------------------------- 
curr fill policy(data/meta):                       1/                 2 
last fill policy(data/meta):                       1/                 2 
curr through flag(data/meta):                      0/                 0 
last through flag(data/meta):                      0/                 0 
first load(data/meta):                             0/                 0 
last alg out(data/meta):                 96612646912/         211562496 
last tx used(data/meta):                   144179200/            503808 
last max alloc(data/meta):                      4096/              4096 
alloc from spa flag(data/meta):                    0/                 0 
------------------------------ AllocCtrl -------------------------------- 
Type                        TotalAllocNum TotalAllocSize(B)         TotalFreeNum     TotalFreeSize(B) 
Data Grain                         775144          50858557440                37859           2493513728 
Meta Grain                          19221            104132608                 9621             64180224 
Node Grain                          26148            107102208                 7050             28876800 
============================= Grain Space Details =======================

System Response

The following table describes the parameter meanings.

Parameter

Meaning

Total allocate meta extent num

Total number of metadata extents obtained by the grain module from the SPA module.

Total allocate data extent num

Total number of data extents obtained by the grain module from the SPA module.

Total allocated meta

Total size of meta resource used by the grain module.

Total allocated node

Total size of node resource used by the grain module.

Total allocated data

Total size of data resource used by the grain module.

Total meta self used

Total amount of metadata used by the grain module.

Total data self used

Total amount of data used by the grain module.

Defree used meta

Total amount of metadata used by the defree submodule of the grain module.

Gang used meta

Total amount of metadata used by the gang submodule of the grain module.

Meta alloc tree extent num

Number of complete blocks in the metadata allocator.

Meta alloc tree left size

Total capacity of the metadata allocator.

Data alloc tree extent num

Number of complete blocks in the data allocator.

Data alloc tree left size

Total capacity of the data allocator.

Remain node num

Total number of nodes.

Total alloc node num

Number of allocated nodes.

Deferfree left total size

Capacity used in defree.

Deferfree left total meta size

Metadata space used in defree.

Deferfree left total data size

Data space used in defree.

Deferfree current txNo

Task number of the current node in defree.

grainUsed

Space used by the grain module.

grainAlloc

Space allocated by the grain module.

grainReserve

Space reserved in the grain module.

mergeIn

Space returned to Merge Tree.

mergeOut

Space of Merge Tree returned to the allocation tree.

InMergeTree

Space owned by Merge Tree.

allocIn

Space returned to the allocation tree.

allocOut

Space allocated by the allocation tree.

InKVDBTree

Space owned by the allocation tree in disks.

InAVLTree

Space owned by the allocation tree in memory.

FreeQueue

Space owned by Free Queue.

AllocQueue

Space owned by Alloc Queue.

curFillPolicy

Allocation policy of the current transaction.

lastFillPolicy

Allocation policy of the last transaction.

curIsThroughFlag

Write through flag of the current transaction. "true" indicates write through.

lastIsThroughFlag

Write through flag of the last transaction. "true" indicates write through.

isFirstLoad

First load or not. "true" indicates the first load.

lastAlgOutUsed

Space used by the allocation tree of the last transaction.

lastTxSpaceUsed

Space used by the last transaction.

lastMaxAllocSize

Space returned by the last transaction.

isAllocFromSpa

Whether space is allocated from spa. "true" indicates that space is allocated from spa.

TotalAllocNum

Count of resource applications by the grain module.

TotalAllocSize(B)

Size of resources obtained by the grain module.

TotalFreeNum

Count of resource releases by the grain module.

TotalFreeSize(B)

Size of resources released by the grain module.

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138389

Views: 487495

Downloads: 85

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