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 2000, 5000, and 6000 V3 Series V300R006

This document is applicable to OceanStor 2200 V3, 2600 V3 Video Surveillance Edition, 2600 V3, 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3. 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).
logzone.sh

logzone.sh

Function

The logzone.sh command is used to run commands related to the LOGZONE module.

Format

logzone.sh { -h | -q | show [param1] [param2] | batchGetlogByKeyWithVnode [logzonetype] [key] [vnode] [startlogid] | batchGetLog [logzonetype] [key] [startlogid] | getlogByLogId [logid] | getLog [logzonetype] [vnode] [index] | batchHandleLogByKey [logzonetype] [key] | bdm read [ldid] [lba] }

Parameters

Parameter

Description

Value

h

Shows help information.

-

q

Shows functions of each subcommand of the LOGZONE module.

-

show

Shows statistics of the LOGZONE module.

-

batchGetlogByKeyWithVnode

Batch obtains logs by Key and Vnode.

-

batchGetLog

Batch obtains logs by log type.

-

getlogByLogId

Batch obtains logs by log ID.

-

getLog

Batch obtains log contents by log type.

-

batchHandleLogByKey

Batch obtains processed logs by Key.

-

bdm

Reads logs from a specific location on a specific disk.

-

Modes

Minisystem mode

Usage Guidelines

None

Example

  • Show the functions of each subcommand of the LOGZONE module.
    Storage: minisystem> logzone.sh -q 
    logzone.sh show mgr. 
    logzone.sh show workctrl. 
    logzone.sh show limitQ. 
    logzone.sh show hangmgr. 
    logzone.sh show retrymgr. 
    logzone.sh show count all. 
    logzone.sh show count <logzonetype=?>. 
    logzone.sh batchGetlogByKeyWithVnode <logzonetype=?> <key=0x?> <vnode=?> <startlogid=0xffffffffffffffff|0x?>. 
    logzone.sh batchGetLog <logzonetype=?> <key=0xffffffffffffffff|0x?> <startlogid=0xffffffffffffffff|0x?>. 
    logzone.sh getlogByLogId <logid=0x?>. 
    logzone.sh getLog <logzonetype=?> <vnode=?> <index=?>. 
    logzone.sh batchHandleLogByKey <logzonetype=?> <key=0x?>. 
    logzone.sh bdm read <ldid=?> <lba=?>.
  • Show the returned status of the xnet message on the current node and other nodes.
    Storage: minisystem> logzone.sh show mgr 
    admin:/diagnose>logzone show mgr 
    type  ownerNid  volumeId          isWorkCtrl  status     logSize(Sectors)  totalNum  isDouble  conCurrency 
    ----  --------  --------          ----------  ------     ----------------  --------  --------  -------- 
    head  0 1000000300000000  0        nomanage 8                 16        0         0        
    head  0 1000000300000000  0        nomanage 8                 16        0         0        
    tx 0 1000000300000002  0        nobitmap 64                2048      1         352      
    tx 1 1000000300000103  1        normal     64                2048      1         352      
    null  65535 ffffffffffffffff  0        nobitmap 0                 0         0         0        
    null  65535 ffffffffffffffff  0        nobitmap 0                 0         0         0        
    db 0 1000000300000006  0        nomanage 8                 5120      0         0        
    db 0 1000000300000006  0        nomanage 8                 5120      0         0        
    snap  0 1000000300000008  0        nobitmap 1                 4096      1         256      
    snap  1 1000000300000109  1        normal     1                 4096      1         256      
    spa 0 100000030000000a  0        nobitmap 8                 128       1         32       
    spa 1 100000030000010b  1        normal     8                 128       1         32       
    ckg 0 100000030000000c  0        nobitmap 8                 128       1         32       
    ckg 1 100000030000010d  1        normal     8                 128       1         32       
    lun 0 100000030000000e  0        nobitmap 1                 4416      1         1280     
    lun 1 100000030000010f  1      normal     1                 4416      1         1280     
    rsio  0 1000000300000010  0        nobitmap 1                 8192      1         9216     
    rsio  1 1000000300000111  1        normal     1                 8192      1         9216  
    rm 0 1000000300000012  0        nobitmap 1                 320       1         256      
    rm 1 1000000300000113  1        normal     1                 320       1         256      
    lm 0 1000000300000014  0        nobitmap 1                 1024      1         512      
    lm 1 1000000300000115  1        normal     1                 1024      1         512      
    cln 0 1000000300000016  0        nobitmap 1024              1         1         1        
    cln 1 1000000300000117  1        normal     1024              1         1         1        
    lmir  0 1000000300000018  0        nobitmap 1                 1024      1         128      
    lmir  1 1000000300000119  1        normal     1                 1024      1         128      
    mr 0 100000030000001a  0        nobitmap 1                 2048      1         1        
    mr 1 100000030000011b  1        normal     1                 2048      1         1 
    admin:/diagnose>exit
  • Show information about the working controller of the LOGZONE module.
    Storage: minisystem> logzone.sh show workctrl  
    admin:/diagnose>logzone show workctrl 
    Local Nid : 1. 
    ownerNid  ctrlNid 
    0         0        
    1         1 
    admin:/diagnose>exit
  • Show information in the waiting queue.
    Storage: minisystem> logzone.sh show limitQ 
    admin:/diagnose>logzone show limitQ 
    queue     flyingCnt curQueueCnt 
    -----     --------- ------- 
    0         0            0 
    1         0            0 
    2         0            0 
    admin:/diagnose>exit
  • Show information in the hang queue.
    Storage: minisystem> logzone.sh show hangmgr  
    admin:/diagnose>logzone show hangmgr 
      show Zone      :0 
      wait Number :0 
      mgr Status     :NORMAL 
      flyingCnt      :0 
      forwardFlyingCnt  :0 
      flyingReadCnt  :0 
      ioCount      :0 
      resumeWaitCnt  :0 
      resumeStat     :NORMAL 
      isHangIOFinished:1 
      
      show Zone      :1 
      wait Number :0 
      mgr Status     :NORMAL 
      flyingCnt      :0 
      forwardFlyingCnt  :0 
      flyingReadCnt  :0 
      ioCount        :0 
      resumeWaitCnt  :0 
      resumeStat     :NORMAL 
      isHangIOFinished:1 
    admin:/diagnose>exit
  • Show information in the retry queue.
    Storage: minisystem> logzone.sh show retrymgr 
    admin:/diagnose>logzone show retrymgr  
      show Zone      :0 
      wait Number :0 
      timer id       :24 
      
      show Zone      :1 
      wait Number :0 
      timer id       :0 
    admin:/diagnose>exit
  • Show the internal count of the LOGZONE module.
    Storage: minisystem> logzone.sh show count all 
    admin:/diagnose>logzone show count all 
    show Type: All  
      
      
      Name                           Start        Back Good Back Bad     Not Back     Cache Retry 
      ------------                     ------------ ------------ ------------ ------------ ------------ 
      ALLOC_WRITELOG_PAGE                       331          331         0            0            0 
      FREE_WRITELOG_PAGE                        166          166            0            0            0 
      GEN_VOLIO                                   0            0            0            0            0 
      FREE_VOLREQ                            273          273            0            0            0 
      READ_PAGE_TO_USER                           0            0            0            0            0 
      FREE_READ_PAGE                              0            0            0            0            0 
      GETLOG                                      5            5            0            0            0 
      GETLOG_WITH_NODE                            2            2            0            0            0 
      BATCH_GETLOG                                0            0            0            0            0 
      HANDLELOG_WITH_NODE                         5            5            0            0            0 
      BATCH_HANDLELOG                             1            1            0            0            0 
      WRITELOG_WITH_SGL                         165          165            0            0            0 
      WRITELOG_WITH_BUFF                          0            0            0            0            0 
      UPDATELOG_WITH_SGL                          0            0            0            0            0 
      UPDATELOG_WITH_BUFF                         0            0            0            0            0 
      FREELOG                                   165          165            0            0            0 
      INNER_ALLOC_PAGE                          165          165            0            0            0 
      ADD_LOGID_WAIT_LIST                         0            0            0            0            0 
      RECOVER_META                               11           11            0            0            0 
      CACHE_IO_READ                             273          273            0            0            0 
      CACHE_IO_WRITE                            330          330            0            0            0 
      BDM_READ                                  340          340            0            0            0 
      BDM_WRITE                                   0            0            0            0            0 
      MSG_GET_RQST                                0            0            0            0            0 
      MSG_GET_RSP                                 0            0            0            0            0 
      MSG_GET_RQST_RCV                            0            0            0            0            0 
      MSG_WRITE_RQST                              0            0            0            0            0 
      MSG_WRITE_RSP                               0            0            0            0            0 
      MSG_WRITE_RQST_RCV                          0            0            0            0            0 
      MSG_UPDATE_RQST                             0            0            0            0            0 
      MSG_UPDATE_RSP                              0            0            0            0            0 
      MSG_UPDATE_RQST_RCV                         0            0            0            0            0 
      MSG_FREE_RQST                               0            0            0            0            0 
      MSG_FREE_RSP                                0            0            0            0            0 
      MSG_FREE_RQST_RCV                           0            0            0            0            0 
      MSG_GET_RETRY                               0            0            0            0            0 
      MSG_WRITE_RETRY                             0            0            0            0            0 
      MSG_UPDATE_RETRY                            0            0            0            0            0 
      MSG_FREE_RETRY                              0            0            0            0            0 
      MSG_RECOVER_GET_RETRY                       0            0            0            0            0 
    admin:/diagnose>exit
  • Show statistics of type "7" on the LOGZONE module.
    Storage: minisystem> logzone.sh show count logzonetype=7 
    admin:/diagnose>logzone show count logzonetype=7 
    show Type: lun 
      
      
      Name                             Start        Back Good Back Bad     Not Back     Cache Retry 
      ------------                     ------------ ------------ ------------ ------------ ------------ 
      ALLOC_WRITELOG_PAGE                         0            0            0            0            0 
      FREE_WRITELOG_PAGE                          0            0            0            0            0 
      GEN_VOLIO                                   0            0            0            0            0 
      FREE_VOLREQ                                18           18            0            0            0 
      READ_PAGE_TO_USER                           0            0            0            0            0 
      FREE_READ_PAGE                              0            0            0            0            0 
      GETLOG                                      0            0            0            0            0 
      GETLOG_WITH_NODE                            0            0            0            0            0 
      BATCH_GETLOG                                0            0            0            0            0 
      HANDLELOG_WITH_NODE                         2            2            0            0            0 
      BATCH_HANDLELOG                             1            1            0            0            0 
      WRITELOG_WITH_SGL                           0            0            0            0            0 
      WRITELOG_WITH_BUFF                          0            0            0            0            0 
      UPDATELOG_WITH_SGL                          0            0            0            0            0 
      UPDATELOG_WITH_BUFF                         0            0            0            0            0 
      FREELOG                                     0            0            0            0            0 
      INNER_ALLOC_PAGE                            0            0            0            0            0 
      ADD_LOGID_WAIT_LIST                         0            0            0            0            0 
      RECOVER_META                                1            1            0            0            0 
      CACHE_IO_READ                              18           18            0            0            0 
      CACHE_IO_WRITE                              0            0            0            0            0 
      BDM_READ                                   12           12            0            0            0 
      BDM_WRITE                                   0            0            0            0            0 
      MSG_GET_RQST                                0            0            0            0            0 
      MSG_GET_RSP                                 0            0            0            0            0 
      MSG_GET_RQST_RCV                            0            0            0            0            0 
      MSG_WRITE_RQST                              0            0            0            0            0 
      MSG_WRITE_RSP                               0            0            0            0            0 
      MSG_WRITE_RQST_RCV                          0            0            0            0            0 
      MSG_UPDATE_RQST                             0            0            0            0            0 
      MSG_UPDATE_RSP                              0            0            0            0            0 
      MSG_UPDATE_RQST_RCV                         0            0            0            0            0 
      MSG_FREE_RQST                               0            0            0            0            0 
      MSG_FREE_RSP                                0            0            0            0            0 
      MSG_FREE_RQST_RCV                           0            0            0            0            0 
      MSG_GET_RETRY                               0            0            0            0            0 
      MSG_WRITE_RETRY                             0            0            0            0            0 
      MSG_UPDATE_RETRY                            0            0            0            0            0 
      MSG_FREE_RETRY                              0            0            0            0            0 
      MSG_RECOVER_GET_RETRY                       0            0            0            0            0 
    admin:/diagnose>exit
  • Batch obtain logs of type "7" by Key and Vnode.
    Storage: minisystem> logzone.sh batchGetlogByKeyWithVnode logzonetype=7 key=0x0000000000000001 vnode=0 startlogid=0xffffffffffffffff 
    admin:/diagnose>logzone batchGetlogByKeyWithVnode logzonetype=7 key=0x0000000000000001 vnode=0 startlogid=0xffffffffffffffff 
    Result: OK. 
    LogNum: 0 
    admin:/diagnose>exit 
    Storage: minisystem>
  • Batch obtain logs of type "7" by log type.
    Storage: minisystem> logzone.sh batchGetLog logzonetype=7 key=0xffffffffffffffff startlogid=0xffffffffffffffff 
    admin:/diagnose>logzone batchGetLog logzonetype=7 key=0xffffffffffffffff startlogid=0xffffffffffffffff 
    Result: OK. 
    LogNum: 0. 
    admin:/diagnose>exit 
    Storage: minisystem>
  • Obtain the log whose ID is "0x0500000100000002".
    Storage: minisystem> logzone.sh getlogByLogId logid=0x0500000100000002 
    admin:/diagnose>logzone getlogByLogId logid=0x0500000100000002 
    Read 0x0500000100000002: OK, num: 1. 
    Back 0x0500000100000002: .  
    line0  : 90 78 6f 5e 4d 3c 2b 1a 67 03 c2 ca 00 00 00 00 a4 03 00 00 01 00 00 00 9b 0a c4 52 00 00 00 00  
    line1  : 12 00 00 40 00 00 00 00 00 00 00 40 20 40 00 00 41 84 66 00 06 02 00 00 00 00 00 00 09 02 00 00  
    line2  : 00 00 00 00 1a 02 00 00 00 00 00 00 01 02 00 00 00 00 00 00 ff ff ff ff ff ff ff ff 9e 1b 82 79  
    line3  : ec 56 58 97 87 60 db 85 3c e8 1f ba 06 00 00 40 20 40 00 00 41 84 66 00 03 02 00 00 00 00 00 00  
    line4  : 0e 02 00 00 00 00 00 00 06 02 00 00 c0 00 00 00 0d 02 00 00 40 00 00 00 ff ff ff ff ff ff ff ff  
    line5  : 07 00 00 40 20 40 00 00 41 84 66 00 1c 02 00 00 00 00 00 00 0d 02 00 00 80 00 00 00 16 02 00 00  
    line6  : 00 00 00 00 17 02 00 00 40 00 00 00 ff ff ff ff ff ff ff ff 08 00 00 40 20 40 00 00 41 84 66 00  
    line7  : 11 02 00 00 c0 00 00 00 0d 02 00 00 c0 00 00 00 14 02 00 00 00 00 00 00 00 02 00 00 00 00 00 00  
    line8  : ff ff ff ff ff ff ff ff 09 00 00 40 20 40 00 00 41 84 66 00 1c 02 00 00 40 00 00 00 0d 02 00 00  
    line9  : 00 01 00 00 16 02 00 00 40 00 00 00 0b 02 00 00 40 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00  
    line10 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line11 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line12 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line13 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 bf b2 13 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line14 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line15 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    admin:/diagnose>exit 
    Storage: minisystem>
  • Obtain the contents of logs of type "5".
    Storage: minisystem> logzone.sh getLog logzonetype=5 vnode=0 index=2 
    Read 0x0500000200000000: OK, num: 1. 
    Back 0x0500000200000003:  
    line0  : 69 20 00 90 74 31 a6 1b 30 12 12 20 50 00 00 00 b0 0f 00 00 05 00 00 00 03 00 00 00 00 00 00 00  
    line1  : 06 00 00 00 00 00 00 00 4c 83 c4 52 00 00 00 00 02 00 00 00 00 00 00 00 03 00 00 00 02 00 00 05  
    line2  : 5f 54 52 45 45 5f 30 78 34 30 30 32 34 30 30 30 90 78 6f 5e 4d 3c 2b 1a 0f 6a 03 db 00 00 00 00  
    line3  : a4 03 00 00 01 00 00 00 cc 12 c4 52 00 00 00 00 12 00 00 40 00 00 00 00 00 00 00 40 20 40 00 00  
    line4  : 41 84 66 00 06 02 00 00 00 00 00 00 09 02 00 00 00 00 00 00 1a 02 00 00 00 00 00 00 01 02 00 00  
    line5  : 00 00 00 00 ff ff ff ff ff ff ff ff 79 a1 1f 57 8e e2 76 a7 23 1c b4 4f b4 d7 01 29 06 00 00 40  
    line6  : 20 40 00 00 41 84 66 00 03 02 00 00 00 00 00 00 0e 02 00 00 00 00 00 00 06 02 00 00 c0 00 00 00  
    line7  : 0d 02 00 00 40 00 00 00 ff ff ff ff ff ff ff ff 07 00 00 40 20 40 00 00 41 84 66 00 1c 02 00 00  
    line8  : 00 00 00 00 0d 02 00 00 80 00 00 00 16 02 00 00 00 00 00 00 17 02 00 00 40 00 00 00 ff ff ff ff  
    line9  : ff ff ff ff 08 00 00 40 20 40 00 00 41 84 66 00 11 02 00 00 c0 00 00 00 0d 02 00 00 c0 00 00 00  
    line10 : 14 02 00 00 00 00 00 00 00 02 00 00 00 00 00 00 ff ff ff ff ff ff ff ff 09 00 00 40 20 40 00 00  
    line11 : 41 84 66 00 1c 02 00 00 40 00 00 00 0d 02 00 00 00 01 00 00 16 02 00 00 40 00 00 00 0b 02 00 00  
    line12 : 40 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line13 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line14 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
    line15 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
    admin:/diagnose>exit 
    Storage: minisystem>
  • Batch obtain processed logs based on key "2".
    Storage: minisystem> logzone.sh batchHandleLogByKey logzonetype=5 key=0x0000000000000002 
    admin:/diagnose>logzone batchHandleLogByKey logzonetype=5 key=0x0000000000000002 
    BatchHandleLogByKey: logzoneType(5), key(0x2). 
    Result: OK. 
    LogNum: 1. 
    logId: 0x0500000200000003 
    admin:/diagnose>exit 
    Storage: minisystem>
  • Read logs from the region whose location is "0" on the disk whose logical ID is "8".
    Storage: minisystem> logzone.sh bdm read ldid=8 lba=0 
    admin:/diagnose>logzone bdm read ldid=8 lba=0 
    Start to alloc read page. 
    Alloc read page done. 
    Bdm ld req add startQ. 
    Bdm read: OK. 
    line0  : 13 05 12 20 fe 9c a1 bf 30 12 14 20 00 08 00 00 61 7f c8 57 00 00 00 00 82 00 00 00 00 00 00 00  
    line1  : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line2  : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line3  : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line4  : 30 30 31 32 33 34 35 36 37 38 39 39 38 37 36 35 34 33 32 31 00 00 00 00 00 00 00 00 00 00 00 00  
    line5  : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line6  : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line7  : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line8  : 00 04 00 00 cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line9  : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line10 : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line11 : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line12 : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line13 : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line14 : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd  
    line15 : cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd 
    admin:/diagnose>exit 
    Storage: minisystem>

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138402

Views: 632690

Downloads: 705

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