暂无图片
openguass 安装2.0企业版创建库报错
我来答
分享
pgone
2022-11-04
openguass 安装2.0企业版创建库报错

[omm@1ge50 script]$ gs_install -X /opt/software/openGauss/cluster_config.xml --gsinit-parameter="--locale=en_US.utf8"
Parsing the configuration file.
Check preinstall on every node.
Successfully checked preinstall on every node.
Creating the backup directory.
Successfully created the backup directory.
begin deploy..
Installing the cluster.
begin prepare Install Cluster..
Checking the installation environment on all nodes.
begin install Cluster..
Installing applications on all nodes.
Successfully installed APP.
begin init Instance..
encrypt cipher and rand files for database.
Please enter password for database:
Please repeat for database:
begin to create CA cert files
The sslcert will be generated in /opt/app/install/app/share/sslcert/om
Cluster installation is completed.
Configuring.
Deleting instances from all nodes.
Successfully deleted instances from all nodes.
Checking node configuration on all nodes.
Initializing instances on all nodes.
Updating instance configuration on all nodes.
Check consistence of memCheck and coresCheck on database nodes.
Configuring pg_hba on all nodes.
Configuration is completed.
[GAUSS-51400] : Failed to execute the command: source /home/omm/.bashrc;python3 '/opt/app/install/om/script/local/Install.py' -t start_cluster -U omm:dbgrp -X /opt/software/openGauss/cluster_config.xml -R /opt/app/install/app -c 1geCluster -l /var/log/omm/omm/om/gs_local.log --alarm=/opt/huawei/snas/bin/snas_cm_cmd --time_out=300 .Error:
Using omm:dbgrp to install database.
Using installation program path : /opt/app/install/app_78689da9
$GAUSSHOME points to /opt/app/install/app_78689da9, no need to create symbolic link.
Traceback (most recent call last):
File "/opt/app/install/om/script/local/Install.py", line 680, in <module>
functionDict[g_opts.action]()
File "/opt/app/install/om/script/local/Install.py", line 611, in startCluster
dn.start(self.time_out)
File "/opt/app/install/om/script/local/../gspylib/component/Kernel/Kernel.py", line 107, in start
"failure details." + "\n" + output)
Exception: [GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
[2022-11-03 23:46:47.932][24007][][gs_ctl]: gs_ctl started,datadir is /opt/app/install/data/dn01
[2022-11-03 23:46:48.023][24007][][gs_ctl]: waiting for server to start...
.0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG: [Alarm Module]Host Name: 1ge50

0 LOG: [Alarm Module]Host IP: 192.168.100.50

0 LOG: [Alarm Module]Cluster Name: 1geCluster

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

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.
0 LOG: Failed to initialze environment for codegen.
0 WARNING: bbox_dump_path is set to /opt/app/corefile/

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 DB010 0 [REDO] LOG: Recovery parallelism, cpu count = 2, max = 4, actual = 2
2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 DB010 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.2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host Name: 1ge50

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host IP: 192.168.100.50

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Cluster Name: 1geCluster

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: Transparent encryption disabled.

2022-11-03 23:46:48.214 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: loaded library "security_plugin"
2022-11-03 23:46:48.214 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes)or shared memory (3310 Mbytes) is larger.
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 42809 0 [BACKEND] FATAL: could not create shared memory segment: Cannot allocate memory
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 42809 0 [BACKEND] DETAIL: Failed system call was shmget(key=15400001, size=3471826944, 03600).
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 42809 0 [BACKEND] HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded available memoryor 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 3471826944 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers.
The PostgreSQL documentation contains more information about shared memory configuration.
2022-11-03 23:46:48.231 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: FiniNuma allocIndex: 0.
[2022-11-03 23:46:49.025][24007][][gs_ctl]: waitpid 24010 failed, exitstatus is 256, ret is 2

[2022-11-03 23:46:49.025][24007][][gs_ctl]: stopped waiting
[2022-11-03 23:46:49.025][24007][][gs_ctl]: could not start server
Examine the log output.

[GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
[2022-11-03 23:46:47.932][24007][][gs_ctl]: gs_ctl started,datadir is /opt/app/install/data/dn01
[2022-11-03 23:46:48.023][24007][][gs_ctl]: waiting for server to start...
.0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG: [Alarm Module]Host Name: 1ge50

0 LOG: [Alarm Module]Host IP: 192.168.100.50

0 LOG: [Alarm Module]Cluster Name: 1geCluster

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

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.
0 LOG: Failed to initialze environment for codegen.
0 WARNING: bbox_dump_path is set to /opt/app/corefile/

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 DB010 0 [REDO] LOG: Recovery parallelism, cpu count = 2, max = 4, actual = 2
2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 DB010 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.2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host Name: 1ge50

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Host IP: 192.168.100.50

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Cluster Name: 1geCluster

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 52

2022-11-03 23:46:48.211 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: Transparent encryption disabled.

2022-11-03 23:46:48.214 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: loaded library "security_plugin"
2022-11-03 23:46:48.214 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 01000 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes)or shared memory (3310 Mbytes) is larger.
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 42809 0 [BACKEND] FATAL: could not create shared memory segment: Cannot allocate memory
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 42809 0 [BACKEND] DETAIL: Failed system call was shmget(key=15400001, size=3471826944, 03600).
2022-11-03 23:46:48.216 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 42809 0 [BACKEND] HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded available memoryor 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 3471826944 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers.
The PostgreSQL documentation contains more information about shared memory configuration.
2022-11-03 23:46:48.231 6363e268.1 [unknown] 140214642968320 [unknown] 0 dn_6001 00000 0 [BACKEND] LOG: FiniNuma allocIndex: 0.
[2022-11-03 23:46:49.025][24007][][gs_ctl]: waitpid 24010 failed, exitstatus is 256, ret is 2

[2022-11-03 23:46:49.025][24007][][gs_ctl]: stopped waiting
[2022-11-03 23:46:49.025][24007][][gs_ctl]: could not start server
Examine the log output.
[omm@1ge50 script]$

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
李宏达
  • 问题在这

image.png

暂无图片 评论
暂无图片 有用 0
打赏 0
暂无图片
李宏达
  • 把shared_buffers 调小一点
[root@openGauss db1]# more postgresql.conf | grep shared
# Note:  Increasing max_connections costs ~400 bytes of shared memory per
shared_buffers = 256MB                  # min 128kB
复制
暂无图片 评论
暂无图片 有用 0
打赏 0
愤怒的蜗牛
2022-11-04
pgone
题主
2022-11-04
谢谢李老师 我去试下
回答交流
Markdown


请输入正文
提交
相关推荐
openGuass 是否有空间分析引擎 如支持 postgis
回答 1
请参考openGauss编译支持postgis
openguass docker镜像运行出错
回答 1
升级问题到:紧急故障
openguass如何设置兼容大小写
回答 3
已有springbootmybatismysql,换成opengauss,大小写问题解决后。以前的代码逻辑不改,所有的CURD都不好使了,咋回事
opengauss如何设置密码不过期?
回答 1
gsgucreloadNallIallc"passwordeffecttime0"&nbsp;&nbsp;不建议这样设置,不安全gsgucreloadNallIallc"passwordnotifyt
openGauss-谁给解释一下这几个英文名词简称OM、CM、GTM、CN、DN ?
回答 1
OM:OperationManager运维管理模块,提供集群日常运维、配置管理的管理接口、工具。CM:ClusterManager集群管理模块,管理和监控分布式系统种的各个功能单元和物力资源的运行情况
编译安装openguass3.0之后,使用vscode进行单步调试时出现user undefined 2错误
回答 1
??
opengauss 3.1.0 企业版 centos 7.6
回答 1
在createdatabase时,要指定数据库的兼容模式为B,并且通过初始用户使用gsql登录一次后,才能使用dolphin相关特性
gs_om -t start命令执行失败,有无大佬帮忙看一下如何解决?求求
回答 3
python3找不到,环境变量是不是没配置?
GaussDB(for openGauss)的优势有哪些?
回答 1
参考阅读:GaussDB(foropenGauss)华为公司倾力打造的自研企业级分布式关系型数据库,该产品具备企业级复杂事务混合负载能力,同时支持优异的分布式事务,同城跨AZ部署,数据0丢失,支持10
opengauss安装问题报错
回答 1
GAUSS51632:“Failedtodo%s.”错误原因:执行python脚本失败、root互信建立失败。解决办法:1.确保python脚本存在2.根据官网要求检查python版本是否达到支持的版
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~