This tool collects Greenplum and system log files, along with the relevant configuration parameters, and generates a file which can be provided to VMware Customer Support for diagnosis of errors or system failures.
gpsupport gp_log_collector [-failed-segs | -c <ID1,ID2,...>| -hostfile <file> | -h <host1, host2,...>]
[ -start <YYYY-MM-DD> ] [ -end <YYYY-MM-DD> ]
[ -dir <path> ] [ -segdir <path> ] [ -a ] [-skip-coordinator] [-with-gpbackup] [-with-gptext] [-with-gptext-only] [-with-gpss] [-gpss_logdir <gpss_log_directory>] [-with-pxf] [-with-pxf-only] [-with-gpupgrade] [-with-gpdr-primary] [-with-gpdr-recovery]
gp_configuration_history
to identify when a segment fails over to their mirrors or simply fails without explanation. The relevant content ID logs will be collected.
gp_log_collector
, the generated tarball can be very large. Use this option to skip Greenplum Coordinator log collection when only Greenplum Segment logs are required.
With this option, gpsupport
collects these log files from $GPADMIN_HOME/gpAdminLogs
:
gpbackup_.log
gpbackup_helper_.log
gpbackup_ plugin .log
gprestore_.log
These are collected from the provided --backup-dir
or default backup directory:
gpbackup__config.yaml
gpbackup__metadata.sql
gpbackup__report
gpbackup__toc.yaml
gprestore___report
gpbackup___report
Also, the pg_log
file is collected from the coordinator and segment hosts.
-with-gpss : Collect log files related to Greenplum Streaming Server. If you do not specify a directory with the -gpsslogdir
option, gpsupport collects logs from the gpAdminLogs
directory. Log files are of the format gpss_<date>.log
.
gpupgrade
logs along with Greenplum logs.
-with-gpdr-recovery : Collect all logs relevant for a Greenplum Disaster Recovery recovery cluster, along with Greenplum logs.
Note: Hostnames provided through
-hostfile
or-h
must match the hostname column ingp_segment_configuration
.
The tool also collects the following information:
Source | Files and outputs |
---|---|
Database parameters |
|
Segment server parameters |
|
System files from all hosts |
|
Database-related files from all hosts |
|
GPText files |
|
PXF files |
|
gpupgrade files |
|
Greenplum Disaster Recovery files |
|
Note: Some commands might not be able to be run if user does not have the correct permissions.
Collect Greenplum coordinator and segment logs listed in a hostfile from today:
gpsupport gp_log_collector -hostfile ~/gpconfig/hostfile
Collect logs for any segments marked down from 21-03-2016 until today:
gpsupport gp_log_collector -failed-segs -start 2016-03-21
Collect logs from host sdw2.gpdb.local
between 2016-03-21 and 2016-03-23:
gpsupport gp_log_collector -failed-segs -start 2016-03-21 -end 2016-03-21
Collect logs from host sdw2.gpdb.local
between 2023-06-07 07:21 and 2023-06-07 07:24:
gpsupport gp_log_collector -start 2023-06-07 07:21 -end 2023-06-07 07:24
Collect only GPText logs for all segments, without any Greenplum logs:
gpsupport gp_log_collector -with-gptext-only