In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Informix initialization time report: semget: errno = 28 what to do, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
[informix@onxrjs302 ~] $oninit-ivy
Checking group membership to determine server run mode...succeeded
Reading configuration file'/ home/informix/etc/S302.cfg'...succeeded
Creating / INFORMIXTMP/.infxdirs...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 280260 kbytes...succeeded
Allocating 200016 kbytes for buffer pool of 2K page size...succeeded
Creating infos file "/ home/informix/etc/.infos.onxrjs302"... succeeded
Linking conf file "/ home/informix/etc/.conf.onxrjs302"... succeeded
Oninit: Fatal error in shared memory creation
Initializing rhead structure...FAILED
WARNING: server initialization failed, or possibly timed out (if-w was used).
Check the message log, online.log, for errors.
[informix@onxrjs302] $onstat-m
Shared memory not initialized for INFORMIXSERVER 'onxrjs302'
Message Log File: / home/informix/S302.log
09:24:30 IBM Informix Dynamic Server Started.
09:24:31 semget: errno = 28
09:24:31 create_vp: cannot allocate semaphore
[informix@onxrjs302 ~] $
The solution is as follows: http://blog.csdn.net/miss_acha/article/details/10976635
An error occurred while the function was running. Look up the log and found that the semget function reported an error. The errno is set to 28. When there is an error in the system call, you can try the following ideas:
1. Use the strerror function or the perror function to output the error description.
two。 If the first step is not clear, you can find the corresponding error mark according to the value of errno, and then refer to the man manual of the error system function in detail to find the meaning of the corresponding error mark.
PS: most of the time, you still need to use method 2. For example, when the semget function reports an error, the errno is set to 28. At first, I don't remember what the error mark of 28 is. When the error returned by the strerror function is "No space left on device", I mistakenly think that the system does not have enough memory. Finally, by looking at the errnoh header file, we found that the error mark of 28 is ENOSPC, and then check the man manual of the semget function to see that the specific meaning of ENOSPC is that the semaphore exceeds the system limit: A semaphore set has to be created but the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores.
Solution: kernel parameters can be temporarily modified (of course, this is only a stopgap measure, and it's best to find out why semaphores exceed the system limit, because it's unlikely under normal circumstances. )
1) the sysctl command can view and set system kernel parameters
Sysctl-a | grep sem # View the setting value of the system semaphore
Kernel.sem = 250 32000 32 128
The corresponding four values from left to right are SEMMSL, SEMMNS, SEMOPM and SEMMNI.
2) there are three ways to modify it: numbers are for reference only
Method 1: echo 610100142 > / proc/sys/kernel/sem
Method 2: sysctl-w kernel.sem= "610 86620 142"
Method 3: echo "kernel.sem=610 86620" > > / etc/sysctl.conf
The error flag corresponding to the value of errno is defined in the / usr/include/errno.h header file, but this header file also contains other header files. These tags are actually defined in the following two header files:
/ usr/include/asm-generic/errno-base.h
/ usr/include/asm-generic/errno.h
After reading the above, have you mastered the method of how to initialize informix: semget: errno = 28? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.