暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

GreenPlum 6.26新增gpmt排查工具

DB宝 2023-12-20
298

简介

在GP 6.26中的新增工具gpmt,GPMT (Greenplum Magic Tool)提供了一套诊断应用工具来排查和解决常见的可支持性问题,并提供了一种一致的方法来收集VMware支持所需的信息。

gpdb 6.26.1环境

 1docker rm -f gpdb6261
2docker run -itd --name gpdb6261 -h gpdb6261 \
3  -p 5631:5432 -p 26088:28080  \
4  -v /sys/fs/cgroup:/sys/fs/cgroup \
5  --privileged=true lhrbest/greenplum:6.26.1 \
6  /usr/sbin/init
7
8docker exec -it gpdb6261 bash
9
10su - gpadmin
11
12
13gpstart -a
14gpcc start

帮助

 1[gpadmin@gpdb6261 ~]$ gpmt -h
2
3USAGE:
4    gpmt tool [ tool_options... ]
5        [ -hostfile FILE ] [ -help ] [ -verbose ]
6
7TOOLS:
8    GPDB
9        analyze_session          Collect information from a hung GPDB session for remote analysis 
10        catalogbackup            Backup catalog prior to performing catalog repairs
11        gp_log_collector         Basic GPDB log collection utility
12        gpcheckcat               GPDB gpcheckcat log analysis
13        gpcheckup                GPDB Health Check
14        gpstatscheck             Check for missing stats on objects used in a query
15        packcore                 Package core files into single tarball for remote analysis
16        primarymirror_lengths    Check if primary and mirror AO and AOCO relfiles are the correct lengths
17        storage_rca_collector    Storage rca artifacts collection utility
18        tablecollect             Collect data and index files for data corruption RCA
19
20    MISC
21        hostfile                 Generate hostfiles for use with gpmt, gpssh, etc...
22        replcheck                Check if tool is replicated to all hosts
23        replicate                Replicate tool to all hosts
24        version                  Displays GPMT version
25
26GLOBAL OPTIONS:
27    -hostfile       Hostfile
28    -help           Show help
29    -verbose        Verbose
30
31EXAMPLES:
32    Display gpmt version:
33        gpmt version
34
35    Collect a core file:
36        gpmt packcore -cmd collect -core core.1234
37
38    Show help for a specific tool:
39        gpmt gp_log_collector -help
40
41[gpadmin@gpdb6261 ~]$ 

参考

GP 6.26中的新增工具gpmt   https://docs.vmware.com/en/VMware-Greenplum/6/greenplum-database/utility_guide-ref-gpmt.html 


文章转载自DB宝,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论