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

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

提示

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

升级

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

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

sys.sh

命令功能

sys.sh命令用于执行SYS模块的相关命令。

命令格式

sys.sh { -h | -a | showxnetref | showrpcref | cleardirtydataflag | clearvnodedirtydataflag [ vnodeid ] | showvnode | showflowtrace [ flowid ] | savememorydata | [ showsyslog ] | [ redoobjflow -i ] | disablebbustatuscheck | showflowstatus | showtrace [ traceid ] | cleanarbdisk | showexpinfo | clearexpinfo | clearnode [ optype ] | resetengine [ optype ] }

参数说明

参数

参数说明

取值

-h

显示帮助信息。

-

-a

显示SYS模块每个子命令的作用。

-

showxnetref

显示本节点和其他节点的xnet消息返回状态。

-

showrpcref

显示本控没有返回的rpc消息。

-

cleardirtydataflag

清除本引擎的脏数据有效标记。

-

clearvnodedirtydataflag [vnodeid]

清除指定虚拟节点的脏数据有效标志。

-

showvnode

查询虚拟节点信息。

-

showflowtrace [flowid]

查询对象的流程信息。

-

showtrace [traceid]

查询集群的流程信息。

-

savememorydata

保存当前节点的内存数据到保险箱。

-

showsyslog

用于查询系统流程日志信息。

-

redoobjflow -i

用于重做系统流程。

-

disablebbustatuscheck

设置系统上电过程中不检查BBU状态。

-

showflowstatus

查询obj状态。

-

cleanarbdisk

1:cleanarbdisk -a:清除所有仲裁盘信息。 2:cleanarbdisk -l:清除本地仲裁盘信息。 3:cleanarbdisk -d [diskID]:清除盘ID为diskID的仲裁盘信息。

-

showexpinfo

查询扩控流程相关信息。

-

clearexpinfo

清理扩控流程相关信息。

-

clearnode

1:clearnode -d:清除本控制器所有数据和配置并回退扩控信息。 2:clearnode -df:清除本控制器所有数据和配置并回退扩控信息(不检查控制器状态)。 3:clearnode -n:清除本控制器所有数据和配置并回退扩控信息(不清理前四盘)。 4:clearnode -nf:清除本控制器所有数据和配置并回退扩控信息(不检查控制器状态、不清理前四盘)。 5:clearnode -b:清除本控制器所有数据和配置(不恢复bay_config配置文件)。 6:clearnode -bf:清除本控制器所有数据和配置(不检查控制器状态、不恢复bay_config配置文件)。

-

resetengine

1:resetengine -n:清除本控制器所在引擎所有控制器。 2:resetengine -nf:清除本控制器所在引擎所有控制器(不检查控制器在位状态)。 3:resetengine -p:清除本控制器和其物理对端控制器。

-

redofailedflow

用于重做系统流程。

-

模式

最小模式

使用指南

sys.sh disablebbustatuscheck :允许用户手动设置不检查BBU状态。执行该命令后,系统上电过程中,再次发生掉电可能会丢失脏数据。该命令须在集群主控上执行。

使用实例

  • 显示SYS模块每个子命令的作用。
    Storage: minisystem> sys.sh -a 
    sys.sh showxnetref                                     : show xnet messages response information. 
    sys.sh showrpcref                                      : show RPC messages without response. 
    sys.sh cleardirtydataflag                              : clear local-engine dirty data flag. 
    sys.sh clearvnodedirtydataflag [vnodeid]               : clear vnode dirty data flag. 
    sys.sh showvnode                                       : show vnode information. 
    sys.sh showflowtrace [flowid]                          : show flow call trace info. 
    sys.sh savememorydata                                  : save memory data when system power on failed. 
    sys.sh showsyslog                                      : show system failed flow. 
    sys.sh redoobjflow                                     : redo system failed flow,usage: sys.sh redoobjflow -i logId. 
    sys.sh disablebbustatuscheck                           : ignore BBU state when system power on. 
    sys.sh showflowstatus                                  : show flow status. 
    sys.sh showtrace [traceid]                             : show trace call trace info. 
    sys.sh cleanarbdisk                                    : clear arb disk. 
    sys.sh showexpinfo                                     : show expand-bay info. 
    sys.sh clearexpinfo                                    : clear expand-bay info. 
    sys.sh clearnode [optype]                              : clear all data of this node. 
    sys.sh resetengine [optype]                            : reset all controllers of this engine. 
    sys.sh redofailedflow [flowType] [nodeId|flowphase]    : redo the specified failed flow.
  • 显示本节点和其他节点的xnet消息返回状态。
    Storage: minisystem> sys.sh showxnetref 
    admin:/diagnose>c_xnet showxnetref 
    DstNid: 0, ref: 0 
    DstNid: 1, ref: 0 
    DstNid: 2, ref: 0 
    DstNid: 3, ref: 0 
    DstNid: 4, ref: 0 
    DstNid: 5, ref: 0 
    DstNid: 6, ref: 0 
    DstNid: 7, ref: 0 
    DstNid: 8, ref: 0 
    DstNid: 9, ref: 0 
    DstNid: 10, ref: 0 
    DstNid: 11, ref: 0 
    DstNid: 12, ref: 0 
    DstNid: 13, ref: 0 
    DstNid: 14, ref: 0 
    DstNid: 15, ref: 0 
    admin:/diagnose>exit 
    exit
  • 显示本控没有返回的rpc消息。
    Storage: minisystem> sys.sh showrpcref  
    admin:/diagnose>rpc showproc 
    admin:/diagnose>exit 
    exit
  • 清除本引擎的脏数据有效标记。
    Storage: minisystem> sys.sh cleardirtydataflag 
    You are about to clear the dirty data flag. 
    1.This operation will cause service data loss. Do you know the severity and still want to continue? (y/n) 
    y 
    2.This command brings irreversible results. The system cannot be restored to the original status after this command is executed. Do you know the severity and still want to continue? (y/n) 
    y 
    admin:/diagnose>sys cleardirtydataflag 
    Clear dirty data flag succeeded. 
    admin:/diagnose>exit
  • 清除指定虚拟节点的脏数据有效标志。
    Storage: minisystem> sys.sh clearvnodedirtydataflag 0 
    You are about to clear the dirty data flag. 
    1.This operation will cause service data loss. Do you know the severity and still want to continue? (y/n) 
    y 
    2.This command brings irreversible results. The system cannot be restored to the original status after this command is executed. Do you know the severity and still want to continue? (y/n) 
    y 
    admin:/diagnose>sys clearvnodedirtydataflag 0 
    admin:/diagnose>exit
  • 查询虚拟节点信息。
    Storage: minisystem> sys.sh showvnode  
    admin:/diagnose>sys showvnode 
    VnodeId WorkNode MirrorNode HomeNode PairStatus VnodeStatus  
    -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- 
    0 0 1 0 double clean  
    1 1 0 1 double clean  
    admin:/diagnose>exit 
    exit
  • 查询对象的流程信息。
    Storage: minisystem> sys.sh showflowtrace 
    admin:/diagnose>sys showflowtrace 
    Date Time FlowId FlowName RunCnt FailCnt Status  
    ------------------- ------ ------------------------------ ------ ------- ------  
    2015-08-03 11:23:10 3 FLOW_OBJ_CLS_PWR_ON 1 0 Success  
    2015-08-03 11:23:26 57 FLOW_DISK_EVENT_IN 9 0 Success  
    admin:/diagnose>exit 
    exit
  • 查询流程号是“57”的流程的详细信息。
    Storage: minisystem> sys.sh showflowtrace 57 
    admin:/diagnose>sys showflowtrace 57 
    FLOW_DISK_EVENT_IN :  
    TotalRunCnt TotalFailCnt CurStatus  
    ----------- ------------ ---------  
    9 0 Success 
    id date time phase current step  
    ---- ------------------- ----- -------------------------------------------- 
    0000 2015-08-03 11:23:26 0 disk event handle  
    2015-08-03 11:23:26 DiskIn-1 GetDiskInfo  
    2015-08-03 11:23:26 DiskIn-2 DiskInHandle  
    2015-08-03 11:23:26 DiskEvent SetHandleEventTime  
    2015-08-03 11:23:26 DiskEvent TaskOver  
    admin:/diagnose>exit 
    exit
  • 保存当前节点的内存数据到保险箱。
    Storage: minisystem> sys.sh savememorydata 
    admin:/diagnose>sys savememorydata 
    Create save memory data flow succeeded. 
    admin:/diagnose>exit 
    exit
  • 查询系统流程日志信息。
    Storage: minisystem> sys.sh showsyslog 
    admin:/diagnose>redolog showalllog 
         LogId        FlowType           LogInfo 
        -------    ---------------    --------------- 
        0          NodeFaultPreLog    ProcFaultNodeId: 0. 
    admin:/diagnose>exit
  • 重做系统流程。
    Storage: minisystem> sys.sh redoobjflow -i 0 
    admin:/diagnose>sys redoobjflow -i 0 
    admin:/diagnose>exit
  • 设置系统上电过程中不检查BBU。
    Storage: minisystem> sys.sh disablebbustatuscheck 
    admin:/diagnose>sys disablebbustatuscheck 
    Set power on not check BBU status succeeded. 
    admin:/diagnose>exit 
    exit
  • 查询obj状态。
    Storage: minisystem> sys.sh showflowstatus 
    admin:/diagnose>sys showflowstatus 
    sequenceNumber             :    33 
    FlowClusterServiceStatus   :    Normal 
    FlowNodeServiceStatus(id 0):    Normal 
    FlowNodeServiceStatus(id 1):    Normal 
    FlowNodeServiceStatus(id 2):    Normal 
    FlowNodeServiceStatus(id 3):    Normal 
    admin:/diagnose>exit 
    exit
  • 显示集群的流程信息。
    Storage: minisystem> sys.sh showtrace 
    admin:/diagnose>sys showtrace  
    sys showtrace 
    Date Time FlowId Setup RunCnt FailCnt Status  
    -------------------  ------ ------------------------------  ------ ------- ------  
    2017-06-20 12:11:46 5 CLS_LINK_CHECK 3 0 Success  
    2017-06-20 12:11:36 8 NODE_POWER_ON 1 0 Success  
    2017-06-20 12:11:42 9 VOTE_OVER 1 0 Success  
    2017-06-20 12:14:02 15 NODE_FRU_FAULT 2 0 Success  
    2017-06-20 12:11:59 22 CLS_SYNC_EXTENT 1 0 Success  
    2017-06-20 12:14:00 154 NODE_SERVICE_CHANGE_HANDLE 1 0 Success  
    2017-06-20 12:11:43 192 CLS_SPLIT_FENCING 1 0 Success  
    2017-06-20 12:11:36 193 LOCAL_SPLIT_FENCING 1 0 Success  
    admin:/diagnose>exit 
    exit
  • 查询流程号是“22”的流程的详细信息。
    Storage: minisystem> sys.sh showtrace 22 
    admin:/diagnose>sys showtrace 22 
    sys showtrace 22 
    CLS_SYNC_EXTENT :  
    TotalRunCnt TotalFailCnt CurStatus  
    ----------- ------------ ---------  
    1 0 Success 
    id date time current trace                
    ---- ------------------- ----------------------------------------  
    0000 2017-06-20 12:11:59 CfgSync: GetTimestamp                    
    0001 2017-06-20 12:11:59 CfgSync: SyncStart                       
    0002 2017-06-20 12:11:59 CfgSync: TaskOver                        
    admin:/diagnose>exit 
    exit
  • 清除所有仲裁盘信息。
    Storage: minisystem> sys.sh cleanarbdisk -a 
    admin:/diagnose>sys cleanarbdisk -a  
    Clean ArbDisk: Clean arbdisk: return result(0) 
    admin:/diagnose>exit
  • 查询扩控流程相关信息。
    Storage: minisystem> sys.sh showexpinfo 
    ibc_os_hs:/diagnose>sys showexpinfo 
    Local node(0) expand bay info: 
    Expand bay state        :(0) [0:INIT,1:EXPANDING,2:PAUSE,3:ROLLBACK,4:ROLLBACK FAIL]. 
    Node num before expand  :(0). 
    Total node num          :(0). 
    Current step            :(0) [0:INIT,1:PARA_CHECK,2:NEW_CTRL_HANDLE,3:MODIFY_BAY,4:SYNC_VERSION,5:ORI_CTRL_HANDLE,6:REBOOT_NEW_CTRL,7:WAIT_POWER_ON]. 
    Current step result     :(0) [0:INIT,1:SUCCESS,2:FAIL]. 
    Current step remain time:(0S). 
    New ctrl base ip 0      :(). 
    New ctrl base ip 1      :().
  • 清理扩控流程相关信息。
    Storage: minisystem> sys.sh clearexpinfo 
    Are you sure to clear all the expand-bay info of this engine? (y/n) 
    y 
    ibc_os_hs:/diagnose>sys clearexpinfo 
    Clear expand bay info finish.
  • 扩控失败回退后清理待扩控控制器。
    Storage: minisystem> sys.sh clearnode 
    You are about to clear all data of this node. 
    1.This operation will cause service data loss and roll back cluster configurations. Do you know the severity and still want to continue? (y/n) 
    y 
    2.This command brings irreversible results. The system cannot be restored to the original status after this command is executed. Do you know the severity and still want to continue? (y/n) 
    y 
    admin:/diagnose>sys clearnode 
    WARNING: Parameter error! The operation cannot be performed. 
             All parameters must be correct and maximum 1 parameter. 
             Please input: sys.sh clearnode [optype] 
             Parameter interpretation:    -d   - clear node with first four disk, check node status 
                                          -df  - clear node with first four disk, ignore node status 
                                          -n   - clear node check node status 
                                          -nf  - clear node ignore node status 
                                          -b   - clear node without restore bay-config, check node status 
                                          -bf  - clear node without restore bay-config, ignore node status 
    admin:/diagnose>exit 
      
    Storage: minisystem> sys.sh clearnode -df 
    You are about to clear all data of this node. 
    1.This operation will cause service data loss and roll back cluster configurations. Do you know the severity and still want to continue? (y/n) 
    y 
    2.This command brings irreversible results. The system cannot be restored to the original status after this command is executed. Do you know the severity and still want to continue? (y/n) 
    y 
    admin:/diagnose>sys clearnode -df 
    Start clear, local nid(Id: 1), wait ............................................................................................................ 
      
    *******************  Clear Node info:  ****************** 
    Proc: Clear Mem Recovery,    Result:       PASS 
    Proc:         Clear CCDB,    Result:       PASS  
    Proc:          Clear OMM,    Result:       PASS 
    Proc:         Clear Disk,    Result:       PASS 
    Proc:       Clear Coffer,    Result:       PASS 
    Proc:   Clear Bay-Config,    Result:       PASS 
    Clear node succeeded. 
    admin:/diagnose>exit 
    Storage: minisystem>
  • 复位控制框。
    Storage: minisystem> sys.sh resetengine 
    Are you sure to restart all the controllers of this engine? (y/n) 
    y 
    admin:/diagnose>sys resetengine 
    WARNING: Parameter error! The operation cannot be performed. 
             All parameters must be correct and maximum 1 parameters. 
             Please input: sys.sh resetengine [optype] 
             Parameter interpretation:     -n    - reset engine, check engine all node alive 
                                           -nf   - reset engine force, ignore node not alive 
                                           -p    - reset pair control, check pair node alive 
    admin:/diagnose>exit 
    Storage: minisystem> 
      
    Storage: minisystem> sys.sh resetengine -n 
    Are you sure to restart all the controllers of this engine? (y/n) 
    y 
    admin:/diagnose>sys resetengine -n 
    ..
  • 重做指定的失败流程。
    Storage: minisystem> sys.sh redofailedflow 5 
    You are about to manual redo failed system flow. 
    DANGER: You are going to perform a danger command. This operation may cause all services on the storage system interrupted. 
    Suggestion: Before performing this operation, contract R&D engineers, perform all procedures under their guidance. 
    Have you read danger alert message carefully? (y/n). 
    y 
    Are you sure you really want to perform the operation? (y/n). 
    y 
    admin:/diagnose>sys redofailedflow 5 
    admin:/diagnose>exit

输出说明

无。

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

文档编号:EDOC1100049100

浏览量:50804

下载量:66

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