Server:CentOS Linux release 7.3.1611 (Core) (3.10.0-514.el7.x86_64)
GBase8a MPP Cluster:9.5.2.39-redhat7.3-x86_64
GBaseDataStudio:9.5.1.0_build2_Windows_x86_64
查看gcadmin的版本
[gbase@localhost gcinstall]$ gcadmin -V gcadmin 9.5 build 126693
查看help
[gbase@localhost gcinstall]$ gcadmin --help
Usage: gcadmin <command> [arg1[, arg2...]]
......
仅显示管理节点
[gbase@localhost gcinstall]$ gcadmin showcluster c CLUSTER STATE: ACTIVE CLUSTER MODE: NORMAL ================================================================ | GBASE COORDINATOR CLUSTER INFORMATION | ================================================================ | NodeName | IpAddress | gcware | gcluster | DataState | ---------------------------------------------------------------- | coordinator1 | 192.168.3.136 | OPEN | OPEN | 0 | ---------------------------------------------------------------- | coordinator2 | 192.168.3.137 | OPEN | OPEN | 0 | ----------------------------------------------------------------
- CLUSTER STATE 集群状态
- CLUSTER MODE 集群模式:normal readonly recovery
- 模组进程状态:open offline close
仅显示数据节点
[gbase@localhost gcinstall]$ gcadmin showcluster d CLUSTER STATE: ACTIVE VIRTUAL CLUSTER MODE: NORMAL ========================================================================================================= | GBASE DATA CLUSTER INFORMATION | ========================================================================================================= | NodeName | IpAddress | DistributionId | gnode | syncserver | DataState | --------------------------------------------------------------------------------------------------------- | node1 | 192.168.3.136 | 1 | OPEN | OPEN | 0 | --------------------------------------------------------------------------------------------------------- | node2 | 192.168.3.137 | 1 | OPEN | OPEN | 0 | --------------------------------------------------------------------------------------------------------- | node3 | 192.168.3.138 | 1 | OPEN | OPEN | 0 | ---------------------------------------------------------------------------------------------------------
xml格式的信息
[gbase@localhost gcinstall]$ gcadmin showcluster f
<?xml version='1.0' encoding="utf-8"?>
<ClusterInfo>
<CoordinatorClusterState>ACTIVE</CoordinatorClusterState>
<VirtualClusterMode>NORMAL</VirtualClusterMode>
<CoordinatorNodes>
<CoordinatorNode>
<NodeName>coordinator1</NodeName>
<IpAddress>192.168.3.136</IpAddress>
<gcware>OPEN</gcware>
<gcluster>OPEN</gcluster>
<DataState>0</DataState>
</CoordinatorNode>
<CoordinatorNode>
<NodeName>coordinator2</NodeName>
<IpAddress>192.168.3.137</IpAddress>
<gcware>OPEN</gcware>
<gcluster>OPEN</gcluster>
<DataState>0</DataState>
</CoordinatorNode>
</CoordinatorNodes>
<DataserverNodes>
<DataServerNode>
<NodeName>node1</NodeName>
<IpAddress>192.168.3.136</IpAddress>
<DistributionId>1</DistributionId>
<gnode>OPEN</gnode>
<syncserver>OPEN</syncserver>
<DataState>0</DataState>
</DataServerNode>
<DataServerNode>
<NodeName>node2</NodeName>
<IpAddress>192.168.3.137</IpAddress>
<DistributionId>1</DistributionId>
<gnode>OPEN</gnode>
<syncserver>OPEN</syncserver>
<DataState>0</DataState>
</DataServerNode>
<DataServerNode>
<NodeName>node3</NodeName>
<IpAddress>192.168.3.138</IpAddress>
<DistributionId>1</DistributionId>
<gnode>OPEN</gnode>
<syncserver>OPEN</syncserver>
<DataState>0</DataState>
</DataServerNode>
</DataserverNodes>
</ClusterInfo>
[gbase@localhost gcinstall]$
相关链接
欢迎各位同学一起来交流学习心得!
最后修改时间:2021-12-16 18:13:31
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。