It turned out the fiber card needed reseating.
From: firstname.lastname@example.org [mailto:email@example.com] On Behalf Of John Adamski (Work)
Sent: Tuesday, April 21, 2015 1:39 PM
Subject: RE: Cannot Open Primary Chunk '/opt/informix/dev/root.1', errno = 6
After further work with HPUX support looks like the fiber cards on the servers are no longer working. So that causing the chunks not being there. Some patch did something to the fiber cards. :-(
Once I get HP to get my fiber to work again on this server will do the onclean, didn't know about this command. Before trying to bring up the engine.
From: firstname.lastname@example.org [mailto:email@example.com] On Behalf Of Mark Scranton
Sent: Tuesday, April 21, 2015 12:09 PM
Subject: Re: Cannot Open Primary Chunk '/opt/informix/dev/root.1', errno = 6
Post by firstname.lastname@example.org
look at the result of the ipcs command, if you have memory segments
used , kill them and try to start informix
HPUX 11.31 (11vi3) on a BL870c Itanium server IBM Informix Dynamic
Server Version 11.70.FC4
Late last week on our test/dev server I installed the latest HP QPKAPPS and QPKBBASE OS upgrades, which was about 1369 patches. Well these broke Informix. First time in 14 years I had an HPUX patch break Informix. I've been dealing with a lot of non-Informix problems and am just now getting back to this.
I'm now getting these messages in the log file.
10:53:55 Cannot Open Primary Chunk '/opt/informix/dev/root.1', errno = 6
10:53:55 oninit: Fatal error in shared memory initialization
10:53:55 IBM Informix Dynamic Server Stopped.
10:53:56 mt_shm_remove: WARNING: may not have removed all/correct segments
I checked all the permissions and ownership in /opt/informix/dev and they all look correct. I then looked at the volume group (/dev/vg02) that all the chunks are stored and that also looked ok.
From the error I'm guessing that something happened to the link between the lvol in /dev/vg02 and the node in /opt/informix/dev.
I'm not sure exactly how to proceed.
John David Adamski, Sr. Network Specialist Graceland University, 1
John David -
Looks like 2 issues to me - 1) link or raw dev missing or permissions wrong; 2) engine (file used for chunk whether raw or cooked) didn't come down "cleanly" as there are shared memory segments still allocated for the old engine. The msg "oninit: Fatal error in shared memory initialization " is typical here. IDS 11.7 has a utility called "onclean" that will most times do the cleanup of shmem segments, semaphores and oninit processes that are leftovers when a box dies or engine crashes.
Let me know if this works. Direct email is ***@markscranton.com.