Greenplum安装报错could not create semaphores No space left on device

0    30    2

Tags:

👉 本文共约707个字,系统预计阅读时间或需3分钟。

现象

此处配置每个segment节点上包括4个primary节点和4个mirror节点:

结果报错了:

查看日志:

分析

主要是内核参数kernel.sem配置过小导致。

在postgres中,当max_connect设置过大,启动的时候会报错:

FATAL: could not create semaphores: No space left on device

本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信db_bao,谢谢!

创建semaphores时空间参数不够,查询官网,有这么一段解释:

HINT: This error does not mean that you have run out of disk space. It occurs when either the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores (SEMMNS), would be exceeded. You need to raise the respective kernel parameter. Alternatively, reduce PostgreSQL's consumption of semaphores by reducing its max_connections parameter.
The PostgreSQL documentation contains more information about configuring your system for PostgreSQL.
解决的方法是改小max_connect,当业务不允许的情况下,修改内核参数,max_connect相关的内核参数有:

Greenplum安装报错could not create semaphores  No space left on device

下面介绍如何修改内核参数

参考:https://www.xmmup.com/ipcsipcrmsysresvkernel-shmmax.html#Oracle_nei_he_can_shu

32000表示SEMMSL

1024000000表示SEMMNS

500表示SEMOPM

32000表示SEMMNI

解决

在所有节点配置如下参数:

然后删除:

最后重新初始化数据库:

成功。

若修改参数后,执行还是报错,记得重启一下OS,然后再重新安装。

标签:

头像

小麦苗

学习或考证,均可联系麦老师,请加微信db_bao或QQ646634621

您可能还喜欢...

发表回复

嘿,我是小麦,需要帮助随时找我哦
  • 18509239930
  • 个人微信

  • 麦老师QQ聊天
  • 个人邮箱
  • 点击加入QQ群
  • 个人微店

  • 回到顶部
返回顶部