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

0    171    2

Tags:

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

现象

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

结果报错了:

查看日志:

分析

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

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

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

创建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相关的内核参数有:

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

本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信dbaup66,谢谢!
AiDBA后续精彩内容已被站长无情隐藏,请输入验证码解锁本文!
验证码:
获取验证码: 请先关注本站微信公众号,然后回复“验证码”,获取验证码。在微信里搜索“AiDBA”或者“dbaup6”或者微信扫描右侧二维码都可以关注本站微信公众号。

标签:

Avatar photo

小麦苗

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

您可能还喜欢...

发表回复