oninit: Cannot open chunk <chunk_path> errno = 24
This document applies only to the following language version(s):
You execute oninit to bring your IBM Informix Server into online mode. The process generates an assert warning that it cannot open a primary chunk and returns OS error 24.
18:08:53 Cannot Open Primary Chunk '/db_infx_wwp01/links/wwp01_2514', errno = 24
Messages similar to the following are printed to the Informix Server log file (online.log):
18:08:55 Physical Recovery Started at Page (2:125490).
18:08:55 Physical Recovery Complete: 0 Pages Examined, 0 Pages
18:08:55 Cannot Open Primary Chunk '/db_infx_wwp01/links/wwp01_0019'.
18:08:55 Cannot Open Primary Chunk '/db_infx_wwp01/links/wwp01_0020'.
18:08:56 Cannot Open Primary Chunk '/db_infx_wwp01/links/wwp01_0481'.
18:08:56 Assert Warning: pthdrpage:ptalloc:bad bfget
18:08:56 IBM Informix Dynamic Server Version 11.50.FC4
18:08:56 Who: Session(10, informix@brksvx12, 0, c00000008422a8e0)
Thread(92, fast_rec, c000000084200140, 1)
File: rspartn.c Line: 7191
18:08:56 Results: Cannot use TBLSpace page for TBLSpace 312475649
18:08:52 oninit: Cannot open chunk '/db_infx_wwp01/links/wwp01_2514'. errno = 24 18:08:53 Cannot Open Primary Chunk '/db_infx_wwp01/links/wwp01_2514', errno = 24 18:08:53 oninit: Cannot open chunk '/db_infx_wwp01/links/wwp01_2514'. errno = 24
When your engine comes into ON-Line mode, chunks may be marked offline (onstat -d).
The operating system error 24 means EMFILE, or too many open files on the process.
Resolving the problem
The problem will likely be resolved by tuning the NFILE kernel parameter. Confirm other kernel parameters as well. For reference, check the Informix Server machine-specific release notes. The notes contain the kernel settings used during testing of the software by IBM.