virtualbox 安装greenplum
安装步骤总结:
1.准备安装环境
下载virtualbox 和 centos 5.5
安装centos,然后利用导出,导入虚拟出三台主机(1台master 两台segment),此过程注意网络设置中更改mac地址
2.在master主机上配置ntp协议。
3.用root用户拷贝安装介质并解压
4.利用gpssh-exkeys 工具交换密钥(在此步骤,使用centos6.0时报错)
5.配置master环境变量主要包括(/etc/sysctl.conf,/etc/security/limits.conf,/etc/hosts)
6.编辑seg_hosts和all_hosts文件
7.使用gpshh工具同步配置,同步安装介质。
8.编辑gpinitsystem_config文件。
9.初始化系统。
10.配置pg_hba.conf postgresql.conf 文件
安装中注意事项
1.关闭不必要的服务
2.在配置虚拟机的时候需采用centos 5.5 操作系统。
工具介绍
gpssh 系列工具可以同时在多个主机上执行命令,复制命令。。。
chkconfig --level 345 iptables off 关闭iptables 更改启动服务
service iptables stop|start|restart 停止|启动|重启 iptables 服务
mount 可以加载网络共享文件夹
详细安装过程
备注:对于环境的搭建,可以采用先安装好一台主机后利用虚拟机导入,导出功能,虚拟其他主机(此过程中需要注意IP设置)
配置IP
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="08:00:27:BF:91:4F"
NM_CONTROLLED="yes"
ONBOOT="yes"
BOOTPROTO=static
IPADDR=136.5.66.32
NETMASK=255.255.255.0
GATEWAY=136.5.66.9
注意 HWADDR 一定要与虚拟机上一致
配置dns
vi /etc/resolv.conf
nameserver 61.128.128.68
--重启
/etc/init.d/network restart
配置操作系统名称(更改配置文件名称)
vi /etc/sysconfig/network
环境:centos 5.5 (在用centos 6.0 时执行gpssh-extkeys 时报错问题始终无法解决所以就更改为centos 5.5)
配置:1024G 内存 1 cpu 8G 硬盘
IP设置
gmaster 136.5.66.32
gseg1 136.5.66.33
gseg2 136.5.66.34
宿主机 136.5.66.29
系统准备:
1 在master 上安装 ntp服务(保证所有节点与master时间同步)
yum install ntp
vi /etc/ntp.conf
#server 127.127.1.0 # local clock
server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10
fudge 127.127.1.0 stratum 10
添加 日志目录
statsdir /var/log/ntp
logfile /var/log/ntp/ntp.log
启动NTPD
为了使NTP服务可以在系统引导的时候自动启动,执行:
chkconfig --level 345 ntpd on
启动ntpd:
service ntpd start
关闭防火墙
chkconfig --level 345 iptables off
service iptables stop
在客户机上编辑同步脚本(注意执行 chmod 777 /usr/local/bin/ntprsync.sh)
[root@seg2 ~]# cat /usr/local/bin/ntprsync.sh
#!/bin/sh
/usr/sbin/ntpdate 136.5.66.32
/sbin/hwclock -w
每日同步
[root@seg2 ~]# crontab -l
#rsync time
0 0 1 * * /usr/local/bin/ntprsync.sh
2 安装unzip 工具
yum install unzip
安装步骤:
1.传送安装介质
1) 在宿主机上共享安装介质,其共享目录为share
2) 以root用户登录master
3) mkdir -p /mnt/share
4) mount -t cifs -o username=liuhb,password=liuhb520 //136.5.66.29/share /mnt/share
2.建立安装用户(此步骤可以在使用gpssh统一建立)
以root用户登录master
useradd gpadmin (创建用户)
passwd gpadmin (设置密码)
3.拷贝介质
以gpadmin登录master
cp /mnt/share/* ./ (拷贝到本用户下)
chmod u+x greenplum-db-4.1.1.1-build-1-RHEL5-i386.bin (更改执行权限)
4.解压文件
以root 登录master
./greenplum-db-4.1.1.1-build-1-RHEL5-i386.bin (根据提示直接输入默认值)
cd /usr/local
chown -R gpadmin:gpadmin greenplum* (赋予gpadmin 权限)
su - gpadmin
chmod +x /usr/local/greenplum-db/greenplum_path.sh
vi ~/.bashrc (添加 source /usr/local/greenplum-db/greenplum_path.sh)
. ~/.bashrc
5.配置ssh等效性(用root用户登录)
1)编辑/etc/hosts
[root@master greenplum-db]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
136.5.66.32 gmaster
136.5.66.33 gseg1
136.5.66.34 gseg2
2)导入gp工具环境变量 source /usr/local/greenplum-db/greenplum_path.sh
3)编辑all_hosts
[root@master allssh]# cat all_hosts
gmaster
gseg1
gseg2
编辑seg_hosts
[root@master allssh]# cat seg_hosts
gseg1
gseg2
4)gpssh-exkeys -f all_hosts
6.设置系统变量
In /etc/sysctl.conf:
kernel.sem = 250 64000 100 512
kernel.shmmax = 500000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 250 64000 100 512
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_max_syn_backlog=4096
net.ipv4.conf.all.arp_filter = 1
net.ipv4.conf.default.arp_filter = 1
net.core.netdev_max_backlog=10000
vm.overcommit_memory=2
In /etc/security/limits.conf:
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072
sysctl -p
定义hosts并拷贝到其他主机
gpscp -f seg_hosts /etc/hosts =:/etc
gpscp -f seg_hosts /etc/security/limits.conf =:/etc/security
gpscp -f seg_hosts /etc/sysctl.conf =:/etc
gpssh -f seg_hosts
=>sysctl -p
5.批量设置用户
gpssh -f all_hosts
groupadd -g 3030 gpadmin
useradd -u 3030 -g gpadmin -d /home/gpadmin -s /bin/bash -m gpadmin
passwd gpadmin
chown -R gpadmin:gpadmin /usr/local/greenplum-db
关掉不必要的服务
echo 'console=ttyS0 9600' >> /boot/grub/grub.conf
echo 'S1:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt102' >> /etc/inittab
echo 'ttyS1' >> /etc/securetty
service ipmi start
chkconfig ipmi on
service iptables save
service iptables stop
chkconfig iptables off
service ip6tables save
service ip6tables stop
chkconfig ip6tables off
chkconfig avahi-daemon off
chkconfig avahi-dnsconfd off
chkconfig conman off
chkconfig bluetooth off
chkconfig cpuspeed off
chkconfig setroubleshoot off
chkconfig hidd off
chkconfig hplip off
chkconfig isdn off
chkconfig kudzu off
chkconfig yum-updatesd
7.初始化系统
用gpadmin 登录
mkdir gpconfigs
cd gpconfigs
cp $GPHOME/docs/cli_help/gpconfigs/gpinitsystem_config ./
更改配置文件
gpinitsystem -c gpinitsystem_config -h hostfile_gpinitsystem
[root@gmaster gp]# gpssh -f all_hosts
=> mkdir -p /data1/primary
[ gseg2]
[ gseg1]
[gmaster]
=> mkdir -p /data2/primary
[ gseg2]
[ gseg1]
[gmaster]
=> chown -R gpadmin:gpadmin /data2/primary
[ gseg2]
[ gseg1]
[gmaster]
=> chown -R gpadmin:gpadmin /data1/primary
[ gseg2]
[ gseg1]
[gmaster]
=>
8.系统正式安装
gpinitsystem -c gpinitsystem_config -h hostfile_gpinitsystem (如果出现输入密码,需要交换密钥 gpssh-exkeys -f all_hosts )
[gpadmin@gmaster gpconfigs]$ gpssh-exkeys -f all_hosts
[STEP 1 of 5] create local ID and authorize on local host
[STEP 2 of 5] keyscan all hosts and update known_hosts file
[STEP 3 of 5] authorize current user on remote hosts
... send to gseg1
***
*** Enter password for gseg1:
... send to gseg2
[STEP 4 of 5] determine common authentication file content
[STEP 5 of 5] copy authentication files to all remote hosts
... finished key exchange with gseg1
... finished key exchange with gseg2
[INFO] completed successfully
[gpadmin@gmaster gpconfigs]$ gpinitsystem -c gpinitsystem_config -h all_hosts
20110928:17:33:28:gpinitsystem:gmaster:gpadmin-[INFO]:-Checking configuration parameters, please wait...
20110928:17:33:28:gpinitsystem:gmaster:gpadmin-[INFO]:-Reading Greenplum configuration file gpinitsystem_config
20110928:17:33:28:gpinitsystem:gmaster:gpadmin-[INFO]:-Locale has not been set in gpinitsystem_config, will set to default value
20110928:17:33:28:gpinitsystem:gmaster:gpadmin-[INFO]:-Locale set to en_US.utf8
20110928:17:33:29:gpinitsystem:gmaster:gpadmin-[INFO]:-No DATABASE_NAME set, will exit following template1 updates
20110928:17:33:29:gpinitsystem:gmaster:gpadmin-[INFO]:-MASTER_MAX_CONNECT not set, will set to default value 25
20110928:17:33:30:gpinitsystem:gmaster:gpadmin-[INFO]:-Checking configuration parameters, Completed
20110928:17:33:30:gpinitsystem:gmaster:gpadmin-[INFO]:-Commencing multi-home checks, please wait...
...
20110928:17:33:32:gpinitsystem:gmaster:gpadmin-[INFO]:-Configuring build for standard array
20110928:17:33:32:gpinitsystem:gmaster:gpadmin-[INFO]:-Commencing multi-home checks, Completed
20110928:17:33:32:gpinitsystem:gmaster:gpadmin-[INFO]:-Building primary segment instance array, please wait...
............
20110928:17:33:47:gpinitsystem:gmaster:gpadmin-[INFO]:-Checking Master host
20110928:17:33:48:gpinitsystem:gmaster:gpadmin-[INFO]:-Checking new segment hosts, please wait...
............
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Checking new segment hosts, Completed
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Greenplum Database Creation Parameters
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:---------------------------------------
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Master Configuration
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:---------------------------------------
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Master instance name = EMC Greenplum DW
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Master hostname = gmaster
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Master port = 5432
20110928:17:34:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Master instance dir = /data/master/gpseg-1
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Master LOCALE = en_US.utf8
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Greenplum segment prefix = gpseg
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Master Database =
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Master connections = 25
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Master buffers = 128000kB
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Segment connections = 125
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Segment buffers = 128000kB
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Checkpoint segments = 8
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Encoding = UNICODE
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Postgres param file = Off
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Initdb to be used = /usr/local/greenplum-db/./bin/initdb
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-GP_LIBRARY_PATH is = /usr/local/greenplum-db/./lib
20110928:17:34:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Ulimit check = Passed
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Array host connect type = Single hostname per node
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Master IP address [1] = 136.5.66.32
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Standby Master = Not Configured
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Primary segment # = 4
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Total Database segments = 12
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Trusted shell = ssh
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Number segment hosts = 3
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Mirroring config = OFF
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:----------------------------------------
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Greenplum Primary Segment Configuration
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:----------------------------------------
20110928:17:34:19:gpinitsystem:gmaster:gpadmin-[INFO]:-gmaster /data1/primary/gpseg0 40000 2 0
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gmaster /data1/primary/gpseg1 40001 3 1
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gmaster /data2/primary/gpseg2 40002 4 2
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gmaster /data2/primary/gpseg3 40003 5 3
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg1 /data1/primary/gpseg4 40000 6 4
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg1 /data1/primary/gpseg5 40001 7 5
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg1 /data2/primary/gpseg6 40002 8 6
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg1 /data2/primary/gpseg7 40003 9 7
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg2 /data1/primary/gpseg8 40000 10 8
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg2 /data1/primary/gpseg9 40001 11 9
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg2 /data2/primary/gpseg10 40002 12 10
20110928:17:34:20:gpinitsystem:gmaster:gpadmin-[INFO]:-gseg2 /data2/primary/gpseg11 40003 13 11
Continue with Greenplum creation Yy/Nn>
y
20110928:17:34:52:gpinitsystem:gmaster:gpadmin-[INFO]:-Building the Master instance database, please wait...
20110928:17:35:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Starting the Master in admin mode
20110928:17:35:47:gpinitsystem:gmaster:gpadmin-[INFO]:-Commencing parallel build of primary segment instances
20110928:17:35:47:gpinitsystem:gmaster:gpadmin-[INFO]:-Spawning parallel processes batch [1], please wait...
............
20110928:17:36:13:gpinitsystem:gmaster:gpadmin-[INFO]:-Waiting for parallel processes batch [1], please wait...
...................................................................................................................................................................................................
20110928:17:40:19:gpinitsystem:gmaster:gpadmin-[INFO]:------------------------------------------------
20110928:17:40:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Parallel process exit status
20110928:17:40:19:gpinitsystem:gmaster:gpadmin-[INFO]:------------------------------------------------
20110928:17:40:20:gpinitsystem:gmaster:gpadmin-[INFO]:-Total processes marked as completed = 12
20110928:17:40:20:gpinitsystem:gmaster:gpadmin-[INFO]:-Total processes marked as killed = 0
20110928:17:40:20:gpinitsystem:gmaster:gpadmin-[INFO]:-Total processes marked as failed = 0
20110928:17:40:20:gpinitsystem:gmaster:gpadmin-[INFO]:------------------------------------------------
20110928:17:40:21:gpinitsystem:gmaster:gpadmin-[INFO]:-Deleting distributed backout files
20110928:17:40:21:gpinitsystem:gmaster:gpadmin-[INFO]:-Removing back out file
20110928:17:40:21:gpinitsystem:gmaster:gpadmin-[INFO]:-No errors generated from parallel processes
20110928:17:40:22:gpinitsystem:gmaster:gpadmin-[INFO]:-Restarting the Greenplum instance in production mode
20110928:17:40:22:gpstop:gmaster:gpadmin-[INFO]:-Starting gpstop with args: -a -i -m -d /data/master/gpseg-1
20110928:17:40:22:gpstop:gmaster:gpadmin-[INFO]:-Gathering information and validating the environment...
20110928:17:40:23:gpstop:gmaster:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20110928:17:40:23:gpstop:gmaster:gpadmin-[INFO]:-Obtaining Segment details from master...
20110928:17:40:24:gpstop:gmaster:gpadmin-[INFO]:-Greenplum Version: 'postgres (Greenplum Database) 4.1.1.1 build 1'
20110928:17:40:24:gpstop:gmaster:gpadmin-[INFO]:-There are 0 connections to the database
20110928:17:40:24:gpstop:gmaster:gpadmin-[INFO]:-Commencing Master instance shutdown with mode='immediate'
20110928:17:40:24:gpstop:gmaster:gpadmin-[INFO]:-Master host=gmaster
20110928:17:40:24:gpstop:gmaster:gpadmin-[INFO]:-Commencing Master instance shutdown with mode=immediate
20110928:17:40:24:gpstop:gmaster:gpadmin-[INFO]:-Master segment instance directory=/data/master/gpseg-1
20110928:17:40:25:gpstart:gmaster:gpadmin-[INFO]:-Starting gpstart with args: -a -d /data/master/gpseg-1
20110928:17:40:25:gpstart:gmaster:gpadmin-[INFO]:-Gathering information and validating the environment...
20110928:17:40:25:gpstart:gmaster:gpadmin-[INFO]:-Greenplum Binary Version: 'postgres (Greenplum Database) 4.1.1.1 build 1'
20110928:17:40:25:gpstart:gmaster:gpadmin-[INFO]:-Greenplum Catalog Version: '201101130'
20110928:17:40:25:gpstart:gmaster:gpadmin-[INFO]:-Starting Master instance in admin mode
20110928:17:40:28:gpstart:gmaster:gpadmin-[INFO]:-Obtaining Greenplum Master catalog information
20110928:17:40:28:gpstart:gmaster:gpadmin-[INFO]:-Obtaining Segment details from master...
20110928:17:40:29:gpstart:gmaster:gpadmin-[INFO]:-Master Started...
20110928:17:40:29:gpstart:gmaster:gpadmin-[INFO]:-Shutting down master
20110928:17:40:33:gpstart:gmaster:gpadmin-[INFO]:-No standby master configured. skipping...
20110928:17:40:34:gpstart:gmaster:gpadmin-[INFO]:-Commencing parallel segment instance startup, please wait...
................
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:-Process results...
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:-----------------------------------------------------
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:- Successful segment starts = 12
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:- Failed segment starts = 0
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:- Skipped segment starts (segments are marked down in configuration) = 0
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:-----------------------------------------------------
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:-
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:-Successfully started 12 of 12 segment instances
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:-----------------------------------------------------
20110928:17:40:51:gpstart:gmaster:gpadmin-[INFO]:-Starting Master instance gmaster directory /data/master/gpseg-1
20110928:17:40:55:gpstart:gmaster:gpadmin-[INFO]:-Command pg_ctl reports Master gmaster instance active
20110928:17:40:56:gpstart:gmaster:gpadmin-[INFO]:-Database successfully started with no errors reported
20110928:17:40:57:gpinitsystem:gmaster:gpadmin-[INFO]:-Completed restart of Greenplum instance in production mode
20110928:17:40:57:gpinitsystem:gmaster:gpadmin-[INFO]:-Loading gp_toolkit...
20110928:17:41:14:gpinitsystem:gmaster:gpadmin-[INFO]:-Scanning utility log file for any warning messages
20110928:17:41:15:gpinitsystem:gmaster:gpadmin-[WARN]:-*******************************************************
20110928:17:41:15:gpinitsystem:gmaster:gpadmin-[WARN]:-Scan of log file indicates that some warnings or errors
20110928:17:41:15:gpinitsystem:gmaster:gpadmin-[WARN]:-were generated during the array creation
20110928:17:41:15:gpinitsystem:gmaster:gpadmin-[INFO]:-Please review contents of log file
20110928:17:41:15:gpinitsystem:gmaster:gpadmin-[INFO]:-/home/gpadmin/gpAdminLogs/gpinitsystem_20110928.log
20110928:17:41:16:gpinitsystem:gmaster:gpadmin-[INFO]:-To determine level of criticality
20110928:17:41:16:gpinitsystem:gmaster:gpadmin-[INFO]:-These messages could be from a previous run of the utility
20110928:17:41:16:gpinitsystem:gmaster:gpadmin-[INFO]:-that was called today!
20110928:17:41:16:gpinitsystem:gmaster:gpadmin-[WARN]:-*******************************************************
20110928:17:41:17:gpinitsystem:gmaster:gpadmin-[INFO]:-Greenplum Database instance successfully created
20110928:17:41:17:gpinitsystem:gmaster:gpadmin-[INFO]:-------------------------------------------------------
20110928:17:41:17:gpinitsystem:gmaster:gpadmin-[INFO]:-To complete the environment configuration, please
20110928:17:41:17:gpinitsystem:gmaster:gpadmin-[INFO]:-update gpadmin .bashrc file with the following
20110928:17:41:17:gpinitsystem:gmaster:gpadmin-[INFO]:-1. Ensure that the greenplum_path.sh file is sourced
20110928:17:41:18:gpinitsystem:gmaster:gpadmin-[INFO]:-2. Add "export MASTER_DATA_DIRECTORY=/data/master/gpseg-1"
20110928:17:41:18:gpinitsystem:gmaster:gpadmin-[INFO]:- to access the Greenplum scripts for this instance:
20110928:17:41:18:gpinitsystem:gmaster:gpadmin-[INFO]:- or, use -d /data/master/gpseg-1 option for the Greenplum scripts
20110928:17:41:18:gpinitsystem:gmaster:gpadmin-[INFO]:- Example gpstate -d /data/master/gpseg-1
20110928:17:41:18:gpinitsystem:gmaster:gpadmin-[INFO]:-Script log file = /home/gpadmin/gpAdminLogs/gpinitsystem_20110928.log
20110928:17:41:19:gpinitsystem:gmaster:gpadmin-[INFO]:-To remove instance, run gpdeletesystem utility
20110928:17:41:19:gpinitsystem:gmaster:gpadmin-[INFO]:-To initialize a Standby Master Segment for this Greenplum instance
20110928:17:41:19:gpinitsystem:gmaster:gpadmin-[INFO]:-Review options for gpinitstandby
20110928:17:41:19:gpinitsystem:gmaster:gpadmin-[INFO]:-------------------------------------------------------
20110928:17:41:19:gpinitsystem:gmaster:gpadmin-[INFO]:-The Master /data/master/gpseg-1/pg_hba.conf post gpinitsystem
20110928:17:41:20:gpinitsystem:gmaster:gpadmin-[INFO]:-has been configured to allow all hosts within this new
20110928:17:41:20:gpinitsystem:gmaster:gpadmin-[INFO]:-array to intercommunicate. Any hosts external to this
20110928:17:41:20:gpinitsystem:gmaster:gpadmin-[INFO]:-new array must be explicitly added to this file
20110928:17:41:20:gpinitsystem:gmaster:gpadmin-[INFO]:-Refer to the Greenplum Admin support guide which is
20110928:17:41:20:gpinitsystem:gmaster:gpadmin-[INFO]:-located in the /usr/local/greenplum-db/./docs directory
20110928:17:41:21:gpinitsystem:gmaster:gpadmin-[INFO]:-------------------------------------------------------
[gpadmin@gmaster gpconfigs]$
附录:
1.安装过程中出现的错误以及解决 (在用centos 6.0时始终报错,最后 使用centos 5.5问题得到解决)
执行 gpssh-exkeys -f all_hosts 时报错
[root@master allssh]# gpssh-exkeys -f all_hosts
[STEP 1 of 5] create local ID and authorize on local host
... /root/.ssh/id_rsa file exists ... key generation skipped
[ERROR master] authentication check failed:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[ERROR] cannot establish ssh access into the local host
直接安装 yum install openssh*