3) 重启greenplum 数据库
gpadmin@linux116:~> gpstop -r
4) 查看gpmon进程,是否已经启用
gpadmin@linux116:~> ps -ef | grep gpmmon |grep -v grep
gpadmin 27036 27027 0 16:18 ? 00:00:00/usr/local/greenplum-db/bin/gpmmon -D /data/master/gpseg-1/gpperfmon/conf/gpperfmon.conf-p 5432
5) 查看数据收集进程是否正常(需要等大约30s左右才可以查看到)
gpadmin@linux116:~> psql gpperfmon -c 'SELECT* FROM system_now;'
ctime | hostname | mem_total | mem_used | mem_actual_used | mem_actual_free |swap_total | swap_used | swap_page_in |swap_page_out | cpu_user | cpu_sys | cpu
_idle | load0 | load1 | load2 | quantum | disk_ro_rate | disk_wo_rate |disk_rb_rate | disk_wb_rate | net_rp_rate | net_wp_rate | net_rb_rate |net_wb_rate
---------------------+----------+-------------+-------------+-----------------+-----------------+-------------+-----------+--------------+---------------+----------+---------+----
------+-------+-------+-------+---------+--------------+--------------+--------------+--------------+-------------+-------------+-------------+-------------
2014-05-19 16:21:30 | linux113| 25202618368 | 21777362944 | 7865163776 | 17337454592| 2154979328 | 23846912 | 0 | 0 | 1.68 | 1.89 |
96.18 | 0.07 | 0.08 | 0.09 | 15 | 0 | 13 | 0 | 135518 | 13 | 15 | 1776 | 2110
2014-05-19 16:21:30 | linux116| 25202618368 | 17788657664 | 2744700928 | 22457917440| 2154979328 | 22982656 | 0 | 0 | 0.71 | 0.22 |
98.56 | 0.1 | 0.16 | 0.06 | 15 | 0 | 7 | 0 | 84269 | 51 | 54 | 11435 | 32212
2014-05-19 16:21:30 | NOAS252 | 50609725440 | 40639737856 | 9263038464 | 41346686976 | 25777983488 | 0 | 0 | 0 | 1.61 | 1.84 |
96.32 | 0.39 | 0.42 | 0.36 | 15 | 0 | 46 | 0 | 454920 | 80 | 75 | 204981 | 183732
(3 rows)
下面配置GreenplumStandby Master节点:
在primarymaster上面执行:
1) 将primary master上面的$MASTER_DATA_DIRECTORY/pg_hba.conf拷贝到standby master的$MASTER_DATA_DIRECTORY/pg_hba.conf
gpadmin@linux116:~> scp $MASTER_DATA_DIRECTORY/pg_hba.confgpadmin@linux113:$MASTER_DATA_DIRECTORY/pg_hba.conf
2) 将primary master上面的~/.pgpass拷贝到standby master的~/.pgpass,并且文件权限修改为0600
gpadmin@linux116:~> scp ~/.pgpass gpadmin@linux113:~/.pgpass
gpadmin@linux116:~> ssh gpadmin@linux113 -C "chmod 0600~/.pgpass"
3、使环境变量生效,执行source:
$ source /usr/local/greenplum-cc-web/gpcc_path.sh
4 添加 GPPERFMONHOME 环境变量到gpadmin的~/.bashrc:
GPPERFMONHOME=/usr/local/greenplum-cc-web-2.0.0-build-32
source $GPPERFMONHOME/gpcc_path.sh
5.生效:
source ./bashrc
6.执行 gpccinstall 命令安装 Command Center 到所有的主机上:
[root@RZ-PROD-DB-G7-02 dbbak]# gpccinstall -f all_hosts
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29096438/viewspace-2144641/ ,如需转载,请注明出处,否则将追究法律责任。