Centos7安裝greenplum遇到的問題

weixin_33766168發表於2018-07-26

Centos7安裝greenplum遇到的問題

問題1:gpcheck的時候xfs檔案系統報錯

20180725:09:02:10:002498 gpcheck:bigdata-3-22:hahahahah-[INFO]:-dedupe hostnames

20180725:09:02:10:002498 gpcheck:bigdata-3-22:hahahahah-[INFO]:-Detected platform: Generic Linux Cluster

20180725:09:02:10:002498 gpcheck:bigdata-3-22:hahahahah-[INFO]:-generate data on servers

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[INFO]:-copy data files from servers

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[INFO]:-delete remote tmp files

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[INFO]:-Using gpcheck config file: /home/hahahahah/greenplum-db/./etc/gpcheck.cnf

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-24): XFS filesystem on device /dev/mapper/cl-root has 6 XFS mount options and 4 are expected

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-24): XFS filesystem on device /dev/mapper/cl-root is missing the recommended mount option 'allocsize=16m'

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-24): XFS filesystem on device /dev/mapper/cl-home has 7 XFS mount options and 4 are expected

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-24): XFS filesystem on device /dev/mapper/cl-home is missing the recommended mount option 'allocsize=16m'

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-24): XFS filesystem on device /dev/sda1 has 7 XFS mount options and 4 are expected

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-24): XFS filesystem on device /dev/sda1 is missing the recommended mount option 'allocsize=16m'

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-24): potential NTPD issue.  gpcheck end time (Wed Jul 25 09:02:10 2018) time on machine (Wed Jul 25 09:02:13 2018)

20180725:09:02:11:002498 gpcheck:bigdata-3-22:hahahahah-[ERROR]:-GPCHECK_ERROR host(bigdata-3-23): XFS filesystem on device /dev/mappe

 

網路解決方法:修改/etc/fstab的配置如下:

/dev/mapper/cl-root     /                       xfs     nodev,noatime,nobarrier,inode64,allocsize=16m      0 0

UUID=2d2cd8de-8d11-4cf0-8780-070a806a0fbb /boot                   xfs     nodev,noatime,nobarrier,inode64,allocsize=16m      0 0

/dev/mapper/cl-home     /home                   xfs     nodev,noatime,nobarrier,inode64,allocsize=16m      0 0

/dev/mapper/cl-swap     swap                    swap    nodev,noatime,inode64,nobarrier,allocsize=16m      0 0

重啟不生效!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

解決辦法:修改gpcheck的程式碼:註釋掉一行,繞過XFS mounts檢查。

 

 

問題2:gp初始化segment節點啟動失敗,檢視日誌,問題如下:

20180725:14:15:18:013574 gpcreateseg.sh:bigdata-3-22:iflytek-[WARN]:-Failed to insert port=40000 in /home/iflytek/greenplum/data/primary/gpseg1/postgresql.conf on bigdata-3-24

20180725:14:15:18:013574 gpcreateseg.sh:bigdata-3-22:iflytek-[INFO]:-End Function ED_PG_CONF

20180725:14:15:19:013574 gpcreateseg.sh:bigdata-3-22:iflytek-[FATAL][1]:-Failed Update port number to 40000

主節點操作不了從節點的檔案,因為沒有安裝ed編輯器ed-1.1-3.3.el6.x86_64。安裝完之後,初始化成功。

相關文章