0.Ready
rhel6.4;
greenplum-db-5.1.0-rhel6-x86_64.rpm, 其他版本下载地址>> |
对应版本官方文档>> | 官方教程>> | 入门学习>> |
硬件需求:Master需要较高的CPU(2核+)和内存,Segment配置相同;
节点名称 | IP地址(*改为自己虚拟机的网段) | 内存 | 硬盘容量 | 角色 |
---|---|---|---|---|
gp-mst | 192.168.*. 199 | 16G | segment,master | |
gp-sgm1 | 192.168.*. 201 | 32G | segment,standby | |
gp-sgm2 | 192.168.*. 202 | 32G | segment | |
gp-sgm 3 | 192.168.*. 203 | 32G | segment |
[root@gp-mst ~]# echo root用户/root操作:
1.系统基本设置
1.1 添加所有节点到host
~]# vi /etc/hosts
192.168.1.199 gp-mst
192.168.1.201 gp-sgm1
192.168.1.202 gp-sgm2
192.168.1.203 gp-sgm3
1.2 主机系统必须禁用SELinux和防火墙
~]# sestatus
SELinuxstatus: disabled
#else 需要更改SELINUX参数中的配置文件并重新启动系统(可最后重启重新验证)
~]# vi /etc/selinux/config
SELINUX=disabled
~
~]# /sbin/chkconfig --list iptables
#else 关闭,然后重启系统
~]# /sbin/chkconfig iptables off
~]# systemctl status firewalld #// 检查防火墙状态
...Active: inactive (dead)
~]# systemctl stop firewalld.service #// 禁止启动
~]# systemctl disable firewalld.service #// 禁止开机启动防火墙
1.3 内核参数设置
~]# vi /etc/sysctl.conf
[root@gp-mst ~]# vi /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
#
# Use '/sbin/sysctl -a' to list all possible parameters.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do no