Discussion:
Cannot Open Primary Chunk '/opt/informix/dev/root.1', errno = 6
(too old to reply)
John Adamski (Work)
2015-04-20 18:14:54 UTC
Permalink
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 University Place, Lamoni, IA 50140
***@graceland.edu
641.784.5267
c***@gmail.com
2015-04-21 05:35:45 UTC
Permalink
look at the result of the ipcs command, if you have memory segments used , kill them and try to start informix
Post by John Adamski (Work)
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 University Place, Lamoni, IA 50140
641.784.5267
Mark Scranton
2015-04-21 17:08:36 UTC
Permalink
Post by c***@gmail.com
look at the result of the ipcs command, if you have memory segments used , kill them and try to start informix
Post by John Adamski (Work)
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 University Place, Lamoni, IA 50140
641.784.5267
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.

Thanks -
Mark Scranton
www.markscranton.com
John Adamski (Work)
2015-04-21 18:38:35 UTC
Permalink
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.

John

-----Original Message-----
From: informix-list-***@iiug.org [mailto:informix-list-***@iiug.org] On Behalf Of Mark Scranton
Sent: Tuesday, April 21, 2015 12:09 PM
To: informix-***@iiug.org
Subject: Re: Cannot Open Primary Chunk '/opt/informix/dev/root.1', errno = 6
Post by c***@gmail.com
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
641.784.5267
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.

Thanks -
Mark Scranton
www.markscranton.com
John Adamski (Work)
2015-04-23 15:48:25 UTC
Permalink
It turned out the fiber card needed reseating.

John

-----Original Message-----
From: informix-list-***@iiug.org [mailto:informix-list-***@iiug.org] On Behalf Of John Adamski (Work)
Sent: Tuesday, April 21, 2015 1:39 PM
To: 'informix-***@iiug.org'
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.

John

-----Original Message-----
From: informix-list-***@iiug.org [mailto:informix-list-***@iiug.org] On Behalf Of Mark Scranton
Sent: Tuesday, April 21, 2015 12:09 PM
To: informix-***@iiug.org
Subject: Re: Cannot Open Primary Chunk '/opt/informix/dev/root.1', errno = 6
Post by c***@gmail.com
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
641.784.5267
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.

Thanks -
Mark Scranton
www.markscranton.com

Loading...