10bet网址
NDB集群内部
下载本手册

2.120转储7021.

代码

7021.

象征

---

内核块

DBDIH.

描述。为单个写表片段状态信息NDB.表到群集日志。转储7015.这一命令也是如此转储7015.记录多个(或全部)的信息NDB.表。

获取信息的表由表ID指定。您可以在输出中找到给定表的IDndb_show_tables,如下所示:

shell> ndb_show_tables身份证型状态日志数据库模式名称29 OrderedIndex Online no sys def主机1 indextrigger在线 -  ndb $ index_11_custom 3 indextrigger在线 -  ndb $ index_15_custom 8 usertable在线yes mysql def ndb $ blob_7_3 5 indextrigger在线 -  ndb $ index_28_custom 13 OrderedIndex在线订购没有sys def primary10 UserTable Online Yes test def n127 Usertable在线是C DEF T1 ...

样本调用/输出。使用表ID for表格n1中发现的ndb_show_tables前面显示的示例输出(其中突出显示),在运行时对该命令的调用可能与下面所示类似ndb_mgm在系统shell中:

shell> ndb_mgm -e 'ALL DUMP 7021 10' Connected to Management Server at: localhost:1186 Sending DUMP signal with data: 0x00001b67 0x0000000a Sending DUMP signal with data: 0x00001b67 0x0000000a . shell> ndb_mgm -e 'ALL DUMP 7021 10' Connected to Management Server at: localhost:1186 Sending DUMP signal with data: 0x00001b67 0x0000000a

这将以下输出写入群集日志:

2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 5: Fragment 0: noLcpReplicas==0 0(on 5)=59(Idle) 1(on 6)=59(Idle) 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 5: Fragment 1:noLcpReplicas==0 0(on 6)=59(Idle) 1(on 5)=59(Idle) 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 6: Table 10: TabCopyStatus: 0 TabUpdateStatus: 0 tabcpstatus: 3 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 6: Fragment 0: noLcpReplicas==0 0(on 5)=59(Idle) 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 6: Fragment 1:noLcpReplicas==0 0(on 6)=59(Idle) 1(on 5)=59(Idle) 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 7: Table 10: TabCopyStatus: 0 TabUpdateStatus: 0 tabcpstatus: 3 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 7: Fragment 0: noLcpReplicas==0 0(on 5)=59(Idle)noLcpReplicas==0 0(on 6)=59(Idle) 1(on 5)=59(Idle) 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 8: Table 10: TabCopyStatus: 0 TabUpdateStatus: 0 tabcpstatus: 3 2016-07-21 12:12:11 [MgmtSrvr] INFO——Node 8: Fragment 0: noLcpReplicas==0 0(on 5)=59(Idle)noLcpReplicas==0 0(6)=59(Idle) 1(5)=59(Idle)

附加信息。有关由此编写的每个字段的更多信息转储7021.进入群集日志在接下来的几段中显示。枚举被定义为结构的属性Tabrecord.存储/ ndb / src /内核/块/ dbdih / Dbdih.hpp

tabcopystatus.(表副本状态)采用以下值之一:0:cs_idle.,1:CS_SR_PHASE1_READ_PAGES,2:cs_sr_phase2_read_table,3:cs_sr_phase3_copy_table,4:cs_remove_node.,5:cs_lcp_read_table.,6:cs_copy_tab_req.,7:cs_copy_node_state.,8:cs_add_table_master.9:CS_ADD_TABLE_SLAVE,10:cs_invalidate_node_lcp.11:CS_ALTER_TABLE,12:cs_copy_to_save.,13:cs_get_tabinfo.

tabupdatestatus.(表更新状态)取以下值之一:0:US_IDLE,1:US_LOCAL_CHECKPOINT.,2:US_LOCAL_CHECKPOINT_QUEUED.,3:US_REMOVE_NODE.,4:US_COPY_TAB_REQ.,5:US_ADD_TABLE_MASTER.,6:us_add_table_slave.,7:us_invalidate_node_lcp.,8:us_callback.

tablcpstatus.(表本地检查点状态)取以下值之一:1:tls_active.,2:tls_writing_to_file.,3:tls_completed

还为每个节点提供表片段信息。这类似于这里显示的内容:

节点5:片段0:nolcpreplicas == 0 0(on 5)= 59(空闲)1(在6)= 59(空闲)

节点和片段由它们的id标识。noLcpReplicas表示任何正在进行的LCP需要检查的片段副本的数量。该行其余部分的格式如下所示:

replica_id.(上node_id.)=lcp_id.地位

replica_id.node_id.,lcp_id.是分别,片段副本,节点和本地检查点的ID。地位总是一个闲置正在进行的