oninit -ivy error Warning: stat() failed for chunk
Posted in 2010
On a new IDS 11.50.FC5 instance on RHEL5, oninit -ivy failed with "Warning: stat() failed for chunk file ... Cannot Open Primary Chunk '/edat/db4v1012Dat/rootdbs'", even though the chunk files existed and were owned by informix. Replies suggested checking that every directory in ROOTPATH is traversable (execute bit) by user informix and testing the device with dd. The poster found he had set the containing directory to chmod 660 instead of 770, so informix couldn't cd into it; after fixing the permissions the server initialised and came online.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: High Availability & Replication, Installation, Setup & Upgrades, Storage & Space Management, Server Administration, Security, Permissions & Auditing, Licensing & Editions, Platform-Specific Issues, Versions, Editions & End-of-Life
I have just installed informix 11.5.FC5 on a red hat enterprise 5 (64 bit)
machine that is currently running a production version of informix 11.5.fc3
(it has been stable for 2 years)
online log say
09:57:37 IBM Informix Dynamic Server Started. 09:57:37 Warning: The IBM IDS
Workgroup Edition license restriction limits 09:57:37 the total shared memory
size for this server to 16777216 KB. 09:57:37 The size has been reset to the
limit to bring up the database server. 09:57:37 Segment locked:
addr=0x44000000, size=806428672
Sat Nov 27 09:57:39 2010
09:57:39 Event alarms enabled. ALARMPROG =
'/idat/informix11.50.fc5_64A/etc/alarmprogram.sh'
09:57:39 Booting Language <c> from module <> 09:57:39 Loading Module <CNULL>
09:57:39 Booting Language <builtin> from module <> 09:57:39 Loading Module
<BUILTINNULL> 09:57:39 Affinitied VP 1 to phys proc 0 09:57:39 Affinitied VP 3
to phys proc 1 09:57:39 Affinitied VP 4 to phys proc 2 09:57:39 Affinitied VP
5 to phys proc 3 09:57:39 Affinitied VP 6 to phys proc 4 09:57:39 Affinitied
VP 7 to phys proc 5 09:57:39 Affinitied VP 8 to phys proc 6 09:57:43 DR:
DRAUTO is 0 (Off) 09:57:43 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
09:57:43 Event notification facility epoll enabled.
09:57:43 IBM Informix Dynamic Server Version 11.50.FC5WE Software Serial
Number AAA#B000000 09:57:43 Warning: stat() failed for chunk file
/edat/db4v1012Dat/rootdbs 09:57:43 Cannot Open Primary Chunk
'/edat/db4v1012Dat/rootdbs'. 09:57:43 IBM Informix Dynamic Server Stopped.
09:57:43 mt_shm_remove: WARNING: may not have removed all/correct segments
then onconfig file looks like
###################################################################
ROOTNAME rootdbsROOTPATH /edat/db4v1012Dat/rootdbs
ROOTOFFSET 0
ROOTSIZE 78643200MIRROR 0
MIRRORPATH #################$INFORMIXDIR/tmp/demo_on.root_mirror
MIRROROFFSET 0
the directory and files exist
[root@db4 db4v1012Dat]# L
total 0
-rw-rw---- 1 informix informix 0 Nov 27 07:51 chunke2
-rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg7
-rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg6
-rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg5
-rw-rw---- 1 informix informix 0 Nov 27 07:51 standard
-rw-rw---- 1 informix informix 0 Nov 27 07:51 sblob1
-rw-rw---- 1 informix informix 0 Nov 27 07:52 blob1
-rw-rw---- 1 informix informix 0 Nov 27 07:52 tmpchunk
-rw-rw---- 1 informix informix 0 Nov 27 07:54 dblog
-rw-rw---- 1 informix informix 0 Nov 27 10:17 rootdbs
[root@db4 db4v1012Dat]# pwd
/edat/db4v1012Dat
What am I doing wrong?
Is it becuase this is first time dabase has started and I am trying to make
the rootname bigger than 2 GB
Thanks
Please verify that all the directories in the rootpath are tranversable (x)
by user informix.
Regards.
On Sat, Nov 27, 2010 at 3:52 PM, BILL MARSHALL <cwm@stober.com> wrote:
> I have just installed informix 11.5.FC5 on a red hat enterprise 5 (64 bit)
> machine that is currently running a production version of informix 11.5.fc3
> (it has been stable for 2 years)
>
> online log say
>
> 09:57:37 IBM Informix Dynamic Server Started. 09:57:37 Warning: The IBM IDS
> Workgroup Edition license restriction limits 09:57:37 the total shared
> memory
> size for this server to 16777216 KB. 09:57:37 The size has been reset to
> the
> limit to bring up the database server. 09:57:37 Segment locked:
> addr=0x44000000, size=806428672
> Sat Nov 27 09:57:39 2010
> 09:57:39 Event alarms enabled. ALARMPROG =
> '/idat/informix11.50.fc5_64A/etc/alarmprogram.sh'
>
> 09:57:39 Booting Language <c> from module <> 09:57:39 Loading Module
> <CNULL>
> 09:57:39 Booting Language <builtin> from module <> 09:57:39 Loading Module
> <BUILTINNULL> 09:57:39 Affinitied VP 1 to phys proc 0 09:57:39 Affinitied
> VP 3
> to phys proc 1 09:57:39 Affinitied VP 4 to phys proc 2 09:57:39 Affinitied
> VP
> 5 to phys proc 3 09:57:39 Affinitied VP 6 to phys proc 4 09:57:39
> Affinitied
> VP 7 to phys proc 5 09:57:39 Affinitied VP 8 to phys proc 6 09:57:43 DR:
> DRAUTO is 0 (Off) 09:57:43 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
> 09:57:43 Event notification facility epoll enabled.
> 09:57:43 IBM Informix Dynamic Server Version 11.50.FC5WE Software Serial
> Number AAA#B000000 09:57:43 Warning: stat() failed for chunk file
> /edat/db4v1012Dat/rootdbs 09:57:43 Cannot Open Primary Chunk
> '/edat/db4v1012Dat/rootdbs'. 09:57:43 IBM Informix Dynamic Server Stopped.
> 09:57:43 mt_shm_remove: WARNING: may not have removed all/correct segments
>
> then onconfig file looks like
> ###################################################################
> ROOTNAME rootdbs> ROOTPATH /edat/db4v1012Dat/rootdbs
> ROOTOFFSET 0
> ROOTSIZE 78643200> MIRROR 0
> MIRRORPATH #################$INFORMIXDIR/tmp/demo_on.root_mirror
>
> MIRROROFFSET 0>
> the directory and files exist
>
> [root@db4 db4v1012Dat]# L
> total 0
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunke2
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg7
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg6
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg5
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 standard
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 sblob1
> -rw-rw---- 1 informix informix 0 Nov 27 07:52 blob1
> -rw-rw---- 1 informix informix 0 Nov 27 07:52 tmpchunk
> -rw-rw---- 1 informix informix 0 Nov 27 07:54 dblog
> -rw-rw---- 1 informix informix 0 Nov 27 10:17 rootdbs
> [root@db4 db4v1012Dat]# pwd
> /edat/db4v1012Dat
>
> What am I doing wrong?
>
> Is it becuase this is first time dabase has started and I am trying to make
> the rootname bigger than 2 GB
>
> Thanks
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
--0015174beace6f946a04960b03e8
try
dd if=<rootpath> of=/dev/null bs=2048
and see if the disk is 'there' and is the size you think it is
Cheers
Paul
> I have just installed informix 11.5.FC5 on a red hat enterprise 5 (64 bit)
> machine that is currently running a production version of informix
> 11.5.fc3
> (it has been stable for 2 years)
>
> online log say
>
> 09:57:37 IBM Informix Dynamic Server Started. 09:57:37 Warning: The IBM
> IDS
> Workgroup Edition license restriction limits 09:57:37 the total shared
> memory
> size for this server to 16777216 KB. 09:57:37 The size has been reset to
> the
> limit to bring up the database server. 09:57:37 Segment locked:
> addr=0x44000000, size=806428672
> Sat Nov 27 09:57:39 2010
> 09:57:39 Event alarms enabled. ALARMPROG =
> '/idat/informix11.50.fc5_64A/etc/alarmprogram.sh'
>
> 09:57:39 Booting Language <c> from module <> 09:57:39 Loading Module
> <CNULL>
> 09:57:39 Booting Language <builtin> from module <> 09:57:39 Loading Module
> <BUILTINNULL> 09:57:39 Affinitied VP 1 to phys proc 0 09:57:39 Affinitied
> VP 3
> to phys proc 1 09:57:39 Affinitied VP 4 to phys proc 2 09:57:39 Affinitied
> VP
> 5 to phys proc 3 09:57:39 Affinitied VP 6 to phys proc 4 09:57:39
> Affinitied
> VP 7 to phys proc 5 09:57:39 Affinitied VP 8 to phys proc 6 09:57:43 DR:
> DRAUTO is 0 (Off) 09:57:43 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
> 09:57:43 Event notification facility epoll enabled.
> 09:57:43 IBM Informix Dynamic Server Version 11.50.FC5WE Software Serial
> Number AAA#B000000 09:57:43 Warning: stat() failed for chunk file
> /edat/db4v1012Dat/rootdbs 09:57:43 Cannot Open Primary Chunk
> '/edat/db4v1012Dat/rootdbs'. 09:57:43 IBM Informix Dynamic Server Stopped.
> 09:57:43 mt_shm_remove: WARNING: may not have removed all/correct segments
>
> then onconfig file looks like
> ###################################################################
> ROOTNAME rootdbs> ROOTPATH /edat/db4v1012Dat/rootdbs
> ROOTOFFSET 0
> ROOTSIZE 78643200> MIRROR 0
> MIRRORPATH #################$INFORMIXDIR/tmp/demo_on.root_mirror
>
> MIRROROFFSET 0>
> the directory and files exist
>
> [root@db4 db4v1012Dat]# L
> total 0
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunke2
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg7
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg6
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg5
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 standard
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 sblob1
> -rw-rw---- 1 informix informix 0 Nov 27 07:52 blob1
> -rw-rw---- 1 informix informix 0 Nov 27 07:52 tmpchunk
> -rw-rw---- 1 informix informix 0 Nov 27 07:54 dblog
> -rw-rw---- 1 informix informix 0 Nov 27 10:17 rootdbs
> [root@db4 db4v1012Dat]# pwd
> /edat/db4v1012Dat
>
> What am I doing wrong?
>
> Is it becuase this is first time dabase has started and I am trying to
> make
> the rootname bigger than 2 GB
>
> Thanks
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
--
Paul Watson
Tel: +1 913-674-0360
Mob: +1 913-387-7529
Web: www.oninit.com
www.advancedatatools.com
Failure is not as frightening as regret.
If you want to improve, be content to be thought foolish and stupid.
THANKS Your theory was correct. I did not have transverse rights I created the directory db4v1012Dat and ran made its owner and group informix and ran chmod 660 on it I should have done chmod 770 when I tried to cd to it as informix OS would not let me. I may have other problems but process seems to be working. Cross you fingers. Again thanks to all fro your help
Thanks for your comments.
It was even a more simpler mistake on my part.
I should have run
chmod 770 the directory where the file was
but in error I had run
chmod 660 on the directory
with that changed the oninit -ivy worked and SERVER is no UP
Again thanks
OS this a new instance? Did you use oninit -i ?
Art
On Nov 27, 2010 10:52 AM, "BILL MARSHALL" <cwm@stober.com> wrote:
> I have just installed informix 11.5.FC5 on a red hat enterprise 5 (64 bit)
> machine that is currently running a production version of informix
11.5.fc3
> (it has been stable for 2 years)
>
> online log say
>
> 09:57:37 IBM Informix Dynamic Server Started. 09:57:37 Warning: The IBM
IDS
> Workgroup Edition license restriction limits 09:57:37 the total shared
memory
> size for this server to 16777216 KB. 09:57:37 The size has been reset to
the
> limit to bring up the database server. 09:57:37 Segment locked:
> addr=0x44000000, size=806428672
> Sat Nov 27 09:57:39 2010
> 09:57:39 Event alarms enabled. ALARMPROG =
> '/idat/informix11.50.fc5_64A/etc/alarmprogram.sh'
>
> 09:57:39 Booting Language <c> from module <> 09:57:39 Loading Module
<CNULL>
> 09:57:39 Booting Language <builtin> from module <> 09:57:39 Loading Module
> <BUILTINNULL> 09:57:39 Affinitied VP 1 to phys proc 0 09:57:39 Affinitied
VP 3
> to phys proc 1 09:57:39 Affinitied VP 4 to phys proc 2 09:57:39 Affinitied
VP
> 5 to phys proc 3 09:57:39 Affinitied VP 6 to phys proc 4 09:57:39
Affinitied
> VP 7 to phys proc 5 09:57:39 Affinitied VP 8 to phys proc 6 09:57:43 DR:
> DRAUTO is 0 (Off) 09:57:43 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
> 09:57:43 Event notification facility epoll enabled.
> 09:57:43 IBM Informix Dynamic Server Version 11.50.FC5WE Software Serial
> Number AAA#B000000 09:57:43 Warning: stat() failed for chunk file
> /edat/db4v1012Dat/rootdbs 09:57:43 Cannot Open Primary Chunk
> '/edat/db4v1012Dat/rootdbs'. 09:57:43 IBM Informix Dynamic Server Stopped.
> 09:57:43 mt_shm_remove: WARNING: may not have removed all/correct segments
>
> then onconfig file looks like
> ###################################################################
> ROOTNAME rootdbs> ROOTPATH /edat/db4v1012Dat/rootdbs
> ROOTOFFSET 0
> ROOTSIZE 78643200> MIRROR 0
> MIRRORPATH #################$INFORMIXDIR/tmp/demo_on.root_mirror
>
> MIRROROFFSET 0>
> the directory and files exist
>
> [root@db4 db4v1012Dat]# L
> total 0
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunke2
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg7
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg6
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg5
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 standard
> -rw-rw---- 1 informix informix 0 Nov 27 07:51 sblob1
> -rw-rw---- 1 informix informix 0 Nov 27 07:52 blob1
> -rw-rw---- 1 informix informix 0 Nov 27 07:52 tmpchunk
> -rw-rw---- 1 informix informix 0 Nov 27 07:54 dblog
> -rw-rw---- 1 informix informix 0 Nov 27 10:17 rootdbs
> [root@db4 db4v1012Dat]# pwd
> /edat/db4v1012Dat
>
> What am I doing wrong?
>
> Is it becuase this is first time dabase has started and I am trying to
make
> the rootname bigger than 2 GB
>
> Thanks
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
--001636c5a4e50db257049613c191
Never mind. Saw the follow up posts.
Art
On Nov 27, 2010 9:32 PM, "Art Kagel" <art.kagel@gmail.com> wrote:
> OS this a new instance? Did you use oninit -i ?
>
> Art
> On Nov 27, 2010 10:52 AM, "BILL MARSHALL" <cwm@stober.com> wrote:
>> I have just installed informix 11.5.FC5 on a red hat enterprise 5 (64
bit)
>
>> machine that is currently running a production version of informix
> 11.5.fc3
>> (it has been stable for 2 years)
>>
>> online log say
>>
>> 09:57:37 IBM Informix Dynamic Server Started. 09:57:37 Warning: The IBM
> IDS
>> Workgroup Edition license restriction limits 09:57:37 the total shared
> memory
>> size for this server to 16777216 KB. 09:57:37 The size has been reset to
> the
>> limit to bring up the database server. 09:57:37 Segment locked:
>> addr=0x44000000, size=806428672
>> Sat Nov 27 09:57:39 2010
>> 09:57:39 Event alarms enabled. ALARMPROG =
>> '/idat/informix11.50.fc5_64A/etc/alarmprogram.sh'
>>
>> 09:57:39 Booting Language <c> from module <> 09:57:39 Loading Module
> <CNULL>
>> 09:57:39 Booting Language <builtin> from module <> 09:57:39 Loading
Module
>
>> <BUILTINNULL> 09:57:39 Affinitied VP 1 to phys proc 0 09:57:39 Affinitied
> VP 3
>> to phys proc 1 09:57:39 Affinitied VP 4 to phys proc 2 09:57:39
Affinitied
> VP
>> 5 to phys proc 3 09:57:39 Affinitied VP 6 to phys proc 4 09:57:39
> Affinitied
>> VP 7 to phys proc 5 09:57:39 Affinitied VP 8 to phys proc 6 09:57:43 DR:
>> DRAUTO is 0 (Off) 09:57:43 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
>> 09:57:43 Event notification facility epoll enabled.
>> 09:57:43 IBM Informix Dynamic Server Version 11.50.FC5WE Software Serial
>> Number AAA#B000000 09:57:43 Warning: stat() failed for chunk file
>> /edat/db4v1012Dat/rootdbs 09:57:43 Cannot Open Primary Chunk
>> '/edat/db4v1012Dat/rootdbs'. 09:57:43 IBM Informix Dynamic Server
Stopped.
>
>> 09:57:43 mt_shm_remove: WARNING: may not have removed all/correct
segments
>
>>
>> then onconfig file looks like
>> ###################################################################
>> ROOTNAME rootdbs>> ROOTPATH /edat/db4v1012Dat/rootdbs
>> ROOTOFFSET 0
>> ROOTSIZE 78643200>> MIRROR 0
>> MIRRORPATH #################$INFORMIXDIR/tmp/demo_on.root_mirror
>>
>> MIRROROFFSET 0>>
>> the directory and files exist
>>
>> [root@db4 db4v1012Dat]# L
>> total 0
>> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunke2
>> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg7
>> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg6
>> -rw-rw---- 1 informix informix 0 Nov 27 07:51 chunkg5
>> -rw-rw---- 1 informix informix 0 Nov 27 07:51 standard
>> -rw-rw---- 1 informix informix 0 Nov 27 07:51 sblob1
>> -rw-rw---- 1 informix informix 0 Nov 27 07:52 blob1
>> -rw-rw---- 1 informix informix 0 Nov 27 07:52 tmpchunk
>> -rw-rw---- 1 informix informix 0 Nov 27 07:54 dblog
>> -rw-rw---- 1 informix informix 0 Nov 27 10:17 rootdbs
>> [root@db4 db4v1012Dat]# pwd
>> /edat/db4v1012Dat
>>
>> What am I doing wrong?
>>
>> Is it becuase this is first time dabase has started and I am trying to
> make
>> the rootname bigger than 2 GB
>>
>> Thanks
>>
>>
>>
>
>
*******************************************************************************
>
>> Forum Note: Use "Reply" to post a response in the discussion forum.
>>
>
> --001636c5a4e50db257049613c191
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
--20cf30433e4242e505049613ccd5
I don;t think you realy want 770 for your permissions. What were the owner and group set to on the file? Should be informix on both.