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).
modifydbtableinfo.sh

modifydbtableinfo.sh

Function

The modifydbtableinfo.sh command is used to recover system configuration data.

Format

modifydbtableinfo.sh [r [tablename]| s |q [tablename] [tableid] |e [disklogicid] [dbsrc] |rb |i [filepath] |v]

Parameters

Parameter

Description

Value

r [tablename]

Recovers all information about a specified DB table.

"tablename" indicates the name of an existing DB table.

s

Stores all DB information in memory to DB disks.

-

q [tablename] [tableid]

Queries information about a specified DB table.

"tablename" indicates the name of an existing DB table.

e [disklogicid]

Exports DB data on a specified DB disk.

  • "disklogicid" indicates the logical ID of a specified disk.
  • "dbsrc" indicates the source of the DB data. "0" indicates that the DB data is from the working area. "1" indicates that the DB data is from the backup area.

rb

Restores DB data on a DB backup area to memory.

-

i

Imports a specified DB file to the system.

"filepath" indicates the path for storing the specified DB file on the storage array.

v

Ignores DB verification results during the cluster power-on.

-

Modes

Minisystem mode

Usage Guidelines

This command is used to recover system configuration data. It can be used only when configuration data is abnormal. Incorrect use of this command may damage system configuration data.

Example

  • Recover all information about a specified DB table.
    Storage: minisystem> modifydbtableinfo.sh r DB_LUN_S 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command. 
    I have read and understand the consequences associated with performing this operation. 
    admin:/diagnose>db restoretableallinfo DB_LUN_S 
    ***************** TABLE DB_LUN_S **************** 
    Restore table info success. 
    admin:/diagnose>exit
  • Store all DB information in memory to DB disks.
    Storage: minisystem>  modifydbtableinfo.sh s 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command. 
    I have read and understand the consequences associated with performing this operation. 
    admin:/diagnose>db setsavealldb 
    Set save all db flag. 
    admin:/diagnose>exit
  • Query information about a specified DB table.
    Storage: minisystem> modifydbtableinfo.sh q DB_LUN_S 0 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command. 
    I have read and understand the consequences associated with performing this operation. 
    admin:/diagnose>db showtableinfo DB_LUN_S 0 
    convert table: (DB_LUN_S). 
    (status) =      0 
    (Lun:lunId) = 0 
    (Lun:lunName) =         null 
    (Lun:lunDescription) =  null 
    (Lun:userPoolId) =      0 
    (Lun:diskPoolId) =      0 
    (Lun:allocType) =       0 
    (Lun:sectorSize) =      0 
    (Lun:lunWwn) =  0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0 
    (Lun:owningController) =        0 
    (Lun:ckgOwnerNodeId) =  0       0       0       0       0       0       0       0 
    (Lun:userLunCapacity) =         0 
    (Lun:initialAllocCapacity) = 0 
    (Lun:writePolicy) =     0 
    (Lun:mirrorPolicy) = 0 
    (Lun:prefetchPolicy) =  0 
    (Lun:prefetchValue) = 0 
    (Lun:cacheBufferStg) =  0 
    (Lun:cacheDestageStg) =         0 
    (Lun:cachePartitionId) =        0 
    (Lun:uuid) = 0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0 
    (Lun:dataMigratePolicy) =  0 
    (Lun:initialDistributePolicy) =         0 
    (Lun:retentionState) =  0 
    (Lun:retentionTerm) = 0 
    (Lun:retentionTime) = 0 
    (Lun:retentionSetTime) =        0 
    (Lun:homePairId) =      0 
    (Lun:ioPriority) =      0 
    (Lun:lunTypeByBit) = 0 
    (Lun:virtualGrainSize) =        0 
    (Lun:rssChunkSize) = 0 
    (Lun:faultswitch) =     1 
    (Lun:timePoint) =       1 
    (Lun:externDifStatus) =         0 
    (Lun:reserved) =        0       0       0 
    (Lun:isCheckZeroPage) =         0 
    (Lun:isAdd2LunGroup) =  0 
    (Lun:volUuid) =         0       0       0       0       0       0       0       0       0       0       0       0       0       0       0       0 
    (Lun:volIndex) =        18446744073709551615 
    (Lun:logicDiskId) =     4294967295 
    (Lun:usageType) =       0 
    (Lun:enableCompression) =       0 
    (Lun:enableDedup) =     0 
    (Lun:lunMirrorType) = 0 
    (Lun:lunThresSwitch) =  255 
    (Lun:lunThreshold) = -1 
    (Lun:smartCachePartitionId) = 4294967295 
    Print db table info succeeded. 
    admin:/diagnose>exit
  • Export DB data on a specified DB disk.
    Storage: minisystem> modifydbtableinfo.sh e 264 0 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command. 
    I have read and understand the consequences associated with performing this operation. 
    admin:/diagnose>db exportdiskdb 264 0 
    Export disk(diskId: 264) DB succeeded,the file path is {export_import}. 
    admin:/diagnose>exit
  • Restore DB data on a DB backup area to memory.
    Storage: minisystem>  modifydbtableinfo.sh rb 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command. 
    I have read and understand the consequences associated with performing this operation. 
    admin:/diagnose>db restorebackupdb 
    Restore backup DB succeeded, please manual reboot system. 
    admin:/diagnose>exit
  • Import a specified DB file to the system.
    Storage: minisystem>  modifydbtableinfo.sh i /OSM/export_import/db.dat 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command. 
    I have read and understand the consequences associated with performing this operation. 
    admin:/diagnose>db importdb /OSM/export_import/db.dat 
    Import DB succeeded, please manual reboot system. 
    admin:/diagnose>exit
  • Ignore DB verification results during the cluster power-on.
    Storage: minisystem> modifydbtableinfo.sh v 
    DANGER: You are going to perform a danger command. 
    Suggestion: Before you perform this operation, make sure the operation will not affect working of system. 
    Have you read danger alert message carefully?(y/n) 
    y 
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command. 
    I have read and understand the consequences associated with performing this operation. 
    admin:/diagnose>db ignoredbverify 
    Set Ignore Verify Flag Success.  
    admin:/diagnose>exit 

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138381

Views: 662879

Downloads: 36

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