openGauss 3.1.1安装

在centos7.6上安装openGauss 3.1.1时遇到内存不足的问题,官方推荐至少32G内存,但系统只有4G。尝试使用极简版安装成功,数据库已启动并查询状态正常。
摘要由CSDN通过智能技术生成

OS是centos7.6

一切都很正常,直到执行gs_install进行安装。。。

[omm@hecs-1 ~]$ gs_install -X /opt/software/openGauss/cluster_config.xml
Parsing the configuration file.
Check preinstall on every node.
Successfully checked preinstall on every node.
Creating the backup directory.
Last time end with Start cluster.
Continue this step.
Successfully created the backup directory.
begin deploy..
Using omm:dbgrp to install database.
Using installation program path : /opt/huawei/install/app_7098098
$GAUSSHOME points to /opt/huawei/install/app_7098098, no need to create symbolic link.
Traceback (most recent call last):
  File "/opt/huawei/install/om/script/local/Install.py", line 783, in <module>
    functionDict[g_opts.action]()
  File "/opt/huawei/install/om/script/local/Install.py", line 74, in startCluster
    dn.start(self.time_out)
  File "/opt/huawei/install/om/script/local/../gspylib/component/Kernel/Kernel.py", line 06, in start
    "failure details." + "\n" + output)
Exception: [GAUSS-5607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
[2023-02-6 4:53:09.654][9347][][gs_ctl]: gs_ctl started,datadir is /opt/huawei/install/data/dn
[2023-02-6 4:53:09.69][9347][][gs_ctl]: waiting for server to start...
.0 LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG:  [Alarm Module]Host Name: hecs-1

0 LOG:  [Alarm Module]Host IP: hecs-1. Copy hostname directly in case of taking 0s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>

0 LOG:  [Alarm Module]Cluster Name: ogCluster

0 LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

0 WARNING:  failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory.
0 WARNING:  failed to parse feature control file: gaussdb.version.
0 WARNING:  Failed to load the product control file, so gaussdb cannot distinguish product version.
2023-02-6 4:53:09.772 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 DB00  0 [REDO] LOG:  Recovery parallelism, cpu count = 2, max = 4, actual = 2
2023-02-6 4:53:09.772 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 DB00  0 [REDO] LOG:  ConfigRecoveryParallelism, true_max_recovery_parallelism:4, max_recovery_parallelism:4
gaussdb.state does not exist, and skipt setting since it is optional.2023-02-6 4:53:09.777 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.

2023-02-6 4:53:09.777 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  [Alarm Module]Host Name: hecs-1

2023-02-6 4:53:09.777 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  [Alarm Module]Host IP: hecs-1. Copy hostname directly in case of taking 0s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>

2023-02-6 4:53:09.777 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  [Alarm Module]Cluster Name: ogCluster

2023-02-6 4:53:09.777 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

2023-02-6 4:53:09.782 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  loaded library "security_plugin"
2023-02-6 4:53:09.784 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 0000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2023-02-6 4:53:09.784 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 0000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2023-02-6 4:53:09.788 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  InitNuma numaNodeNum:  numa_distribute_mode: none inheritThreadPool: 0.
2023-02-6 4:53:09.788 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 0000  0 [BACKEND] WARNING:  Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (024 Mbytes) or shared memory (3523 Mbytes) is larger.
2023-02-6 4:53:09.788 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 42809  0 [BACKEND] FATAL:  could not create shared memory segment: Cannot allocate memory
2023-02-6 4:53:09.788 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 42809  0 [BACKEND] DETAIL:  Failed system call was shmget(key=540000, size=3694569800, 03600).
2023-02-6 4:53:09.788 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 42809  0 [BACKEND] HINT:  This error usually means that openGauss's request for a shared memory segment exceeded available memory or swap space, or exceeded your kernel's SHMALL parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMALL.  To reduce the request size (currently 3694569800 bytes), reduce openGauss's shared memory usage, perhaps by reducing shared_buffers.
        The openGauss documentation contains more information about shared memory configuration.
2023-02-6 4:53:09.79 63edd2d5. [unknown] 407988233728 [unknown] 0 dn_600 00000  0 [BACKEND] LOG:  FiniNuma allocIndex: 0.
[2023-02-6 4:53:0.692][9347][][gs_ctl]: waitpid 9350 failed, exitstatus is 256, ret is 2

[2023-02-6 4:53:0.692][9347][][gs_ctl]: stopped waiting
[2023-02-6 4:53:0.692][9347][][gs_ctl]: could not start server
Examine the log output.

[GAUSS-5607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
[2023-02-6 4:53:09.654][9347][][gs_ctl]: gs_ctl started,datadir is /opt/huawei/install/data/dn
[2023-02-6 4:53:09.69][9347][][gs_ctl]: waiting for server to start...
.0 LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG:  [Alarm Module]Host Name: hecs-1

0 LOG:  [Alarm Module]Host IP: hecs-1. Copy hostname directly in case of taking 0s to use 'gethostby
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值