greenplum节点添加
1.修改内存参数,修改io调度,参考gp官方文档
2. 挂载新磁盘,添加fstab
3.root用户配置互信:
1 $ su - 2 # source /usr/local/greenplum-db/greenplum_path.sh 3 # gpssh-exkeys -e /home/gpadmin/existing_hosts_file -x /home/gpadmin/new_hosts_file 4 # gpssh -f new_hosts_file '/usr/sbin/useradd gpadmin -d /home/gpadmin -s /bin/bash' 5 # gpssh -f new_hosts_file ls -l /home 6 7 gpadmin用户检查互信: 8 su - gpadmin 9 $ gpcheck -f new_hosts_file 10 $ gpcheckperf -f new_hosts_file -d /data1 -d /data2 -v 11 12
4.gpextend节点初始化:
1 $ gpexpand -f /home/gpadmin/new_hosts_file
交互设置,根据提示选择需要的模式进行导下一步,等几分钟会生成一个配置文件,类似gpexpand_inputfile_yyyymmdd_145134
gpexpand -i gpexpand_inputfile_20210118_165025 ##等几分钟,新节点加入集群成功,检查mirror状态
$gpstate -m
5.执行表的充分布
gpexpand -i gpexpand_inputfile_20210118_165025 等几分钟,新节点加入集群成功,检查mirror状态 $gpstate -m
业余经济爱好者