rhel7.2 config RemoveIPC argument

2018年11月22日 821点热度 0人点赞 0条评论

■rhel7.2中,systemd-logind服务引入了一个新特性,在一个user(root除外)完全退出OS后,会remove掉该user所有的IPC对象。该特性由/etc/systemd/logind.conf参数文件中的RemoveIPC参数控制,默认是yes,详情可参阅man logind.conf。
■因此当grid、oracle用户完全退出OS后,会remove掉相关的IPC对象包括shared memory segments、semaphores等,导致grid、oracle用户的Oracle ASM、database instances crash!
■以下为一个ASM实例的错误日志
2018-11-14T18:06:28.094174+08:00
Errors in file /u01/app/grid/diag/asm/+asm/+ASM1/trace/+ASM1_gcr0_15031.trc:
ORA-27157: OS post/wait facility removed
ORA-27300: OS system dependent operation:semop failed with status: 43
ORA-27301: OS failure message: Identifier removed
ORA-27302: failure occurred at: sskgpwwait1
2018-11-14T18:06:28.097313+08:00
■为了避免这个问题,需要明确设置RemoveIPC为no
vi /etc/systemd/logind.conf
#RemoveIPC=yes
RemoveIPC=no
■重启相关服务
systemctl daemon-reload
systemctl restart systemd-logind

liking

这个人很懒,什么都没留下

文章评论