PostgreSQL和Greenplum 数据库故障排查
pg_ctl: server is running (PID: 3642) /usr/pgsql-11/bin/postgres "-D" "/var/lib/pgsql/11/data" 2018年PostgreSQL中国技术大会 -bash-4.1$ cd /var/lib/pgsql/11/data -bash-4.1$ ll total 128 drwx------ 5 postgres postgres 11:16:27.035 EST [3642] LOG: database system is ready to accept connections -bash-4.1$ -bash-4.1$ cd /var/lib/pgsql/9.4/data -bash-4.1$ ll total 120 drwx------ 5 postgres postgres 4096 Dec 8 11:22 base 2018年PostgreSQL中国技术大会 微信号:laohouzi999 如果看不到日志,直接前台运行 /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf 2018年PostgreSQL中国技术大会0 码力 | 84 页 | 12.61 MB | 1 年前3VMware Greenplum 6 Documentation
gpupgrade logs. In addition, this tool has been enhanced to collect system initialization timestamps, /var/log/dmesg content, and output from top and sar commands. The PgBouncer distributed with Greenplum directory in /etc/: $ mkdir -p /etc/gpv 2. Create the service log directory: $ mkdir -p /var/log/gpv $ chmod a+rwx /var/log/gpv 3. Create a service file /etc/gpv/gpdb-service and paste in the following contents: -l -c "/etc/gpv/gpdb-service start 2>&1 | tee -a /var/log/g pv/gpdb-service.log" ExecStop=/bin/bash -l -c "/etc/gpv/gpdb-service stop 2>&1 | tee -a /var/log/gpv /gpdb-service.log" TimeoutStartSec=120 Restart=always0 码力 | 2374 页 | 44.90 MB | 1 年前3VMware Tanzu Greenplum v6.23 Documentation
gpupgrade logs. In addition, this tool has been enhanced to collect system initialization timestamps, /var/log/dmesg content, and output from top and sar commands. The PgBouncer distributed with Greenplum directory in /etc/: $ mkdir -p /etc/gpv 2. Create the service log directory: $ mkdir -p /var/log/gpv $ chmod a+rwx /var/log/gpv 3. Create a service file /etc/gpv/gpdb-service and paste in the following contents: ExecStart=/bin/bash -l -c "/etc/gpv/gpdb-service start | tee -a /var/log/gpv/gp db-service.log" ExecStop=/bin/bash -l -c "/etc/gpv/gpdb-service stop | tee -a /var/log/gpv/gpdb -service.log" TimeoutStartSec=120 Restart=on-failure0 码力 | 2298 页 | 40.94 MB | 1 年前3VMware Greenplum v6.25 Documentation
gpupgrade logs. In addition, this tool has been enhanced to collect system initialization timestamps, /var/log/dmesg content, and output from top and sar commands. The PgBouncer distributed with Greenplum Documentation VMware, Inc. 373 gpssh -f ~gpadmin/hosts-all "mkdir -p /var/log/gpv" gpssh -f ~gpadmin/hosts-all "chown gpadmin:gpadmin /var/log/gpv" 5. Create the service file /etc/gpv/gpdb-service on mdw "/etc/gpv/gpdb-service start %i 2>&1 | tee -a /var/lo g/gpv/gpdb-service@%i.log" ExecStop=/bin/bash -l -c "/etc/gpv/gpdb-service stop %i 2>&1 | tee -a /var/log/ gpv/gpdb-service@%i.log" TimeoutStartSec=1200 码力 | 2400 页 | 18.02 MB | 1 年前3VMware Greenplum 6 Documentation
gpupgrade logs. In addition, this tool has been enhanced to collect system initialization timestamps, /var/log/dmesg content, and output from top and sar commands. The PgBouncer distributed with Greenplum generation to a known location by adding the following line to /etc/sysctl.conf: kernel.core_pattern=/var/core/core.%h.%t Add the following line to /etc/security/limits.conf: * soft core unlimited To apply should be adjusted for your configuration. For example: After enabling iptables, this error in the /var/log/messages file indicates that the setting for the iptables table is too low and needs to be increased0 码力 | 2445 页 | 18.05 MB | 1 年前3VMware Tanzu Greenplum 6 Documentation
gpupgrade logs. In addition, this tool has been enhanced to collect system initialization timestamps, /var/log/dmesg content, and output from top and sar commands. The PgBouncer distributed with Greenplum directory in /etc/: $ mkdir -p /etc/gpv 2. Create the service log directory: $ mkdir -p /var/log/gpv $ chmod a+rwx /var/log/gpv 3. Create a service file /etc/gpv/gpdb-service and paste in the following contents: -l -c "/etc/gpv/gpdb-service start 2>&1 | tee -a /var/log/g pv/gpdb-service.log" ExecStop=/bin/bash -l -c "/etc/gpv/gpdb-service stop 2>&1 | tee -a /var/log/gp v/gpdb-service.log" TimeoutStartSec=1200 码力 | 2311 页 | 17.58 MB | 1 年前3VMware Greenplum 7 Documentation
generation to a known location by adding the following line to /etc/sysctl.conf: kernel.core_pattern=/var/core/core.%h.%t Add the following line to /etc/security/limits.conf: * soft core unlimited To apply should be adjusted for your configuration. For example: After enabling iptables, this error in the /var/log/messages file indicates that the setting for the iptables table is too low and needs to be increased process. =# CREATE EXTERNAL WEB TABLE log_output (linenum int, message text) EXECUTE '/var/load_scripts/get_log_data.sh' ON HOST FORMAT 'TEXT' (DELIMITER '|'); URL-based External Web0 码力 | 2221 页 | 14.19 MB | 1 年前3VMware Tanzu Greenplum v6.21 Documentation
gpupgrade logs. In addition, this tool has been enhanced to collect system initialization timestamps, /var/log/dmesg content, and output from top and sar commands. The PgBouncer distributed with Greenplum generation to a known location by adding the following line to /etc/sysctl.conf: kernel.core_pattern=/var/core/core.%h.%t Add the following line to /etc/security/limits.conf: * soft core unlimited To apply to start Greenplum Database: $ gpstart -a Warning: After enabling iptables, this error in the /var/log/messages file indicates that the setting for the iptables table is too low and needs to be increased0 码力 | 2025 页 | 33.54 MB | 1 年前3VMware Greenplum v6.18 Documentation
generation to a known location by adding the following line to /etc/sysctl.conf: kernel.core_pattern=/var/core/core.%h.%t Add the following line to /etc/security/limits.conf: * soft core unlimited To apply enabled to ensure that performance is acceptable. Warning: After enabling iptables, this error in the /var/log/messages file indicates that the setting for the iptables table is too low and needs to be increased segment database logs $GPDATA_DIR/primary/segprefixN /pg_log/*.csv primary segment database logs /var/log/messages Global Linux system messages Use gplogfilter -t (--trouble) first to search the master0 码力 | 1959 页 | 19.73 MB | 1 年前3VMware Greenplum v6.19 Documentation
generation to a known location by adding the following line to /etc/sysctl.conf: kernel.core_pattern=/var/core/core.%h.%t Add the following line to /etc/security/limits.conf: * soft core unlimited To apply segment hosts. The rules should be added to the Warning: After enabling iptables, this error in the /var/log/messages file indicates that the setting for the iptables table is too low and needs to be increased segment database logs $GPDATA_DIR/primary/segprefixN /pg_log/*.csv primary segment database logs /var/log/messages Global Linux system messages Use gplogfilter -t (--trouble) first to search the master0 码力 | 1972 页 | 20.05 MB | 1 年前3
共 17 条
- 1
- 2