Gbase8a安装时常见问题

1.     Gcinstall.py(line 2669) -- SetSusEnv.py must be executed before cluster is installed, not executed nodes ...

需要在所有安装节点上都执行下这个脚本SetSysEnv.py,以root用户执行

# python SetSysEnv.py --dbaUser=gbase --installPrefix=/opt

/opt为gbase8a安装目录

2.     缺少依赖包compat-db47

yum install compat-db47

3.     没有权限,Permission denied

# chmod 777 /opt

4.     Gbase8a集群服务无法启动时,查看防火墙状态

# systemctl stop firewalld         (关闭防火墙)

# systemctl disable firewalld

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

# vim /etc/selinux/config      (编辑配置文件)

SELINUX=disabled

5.     ssh服务找不到Unit ssh.service could not be found.

$ sudo service ssh status

Unit ssh.service could not be found.

$ sudo ps -e|grep ssh

$ sudo apt install openssh-server

$ sudo service ssh status

● ssh.service - OpenBSD Secure Shell server

   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)

   Active: active (running) since Thu 2021-04-15 13:28:06 CST; 42s ago

     Docs: man:sshd(8)

           man:sshd_config(5)

 Main PID: 21169 (sshd)

    Tasks: 1 (limit: 4915)

   CGroup: /system.slice/ssh.service

           └─21169 /usr/sbin/sshd –D

$ sudo /etc/init.d/ssh start

[ ok ] Starting ssh (via systemctl): ssh.service.    

6.     升级过程中报错

刷新快照,刷新快照操作可多执行几次。

$ cd /opt/gcware/data/gcware

$ python

Python 2.7.5 (default, Nov 16 2020, 22:23:17)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import gcware

>>> gcware.flush_statemachine()

1

>>> quit()

posted on 2025-06-08 17:20  数据派  阅读(98)  评论(0)    收藏  举报