Unix Technical Forum

onstat shared memory error

This is a discussion on onstat shared memory error within the Informix forums, part of the Database Server Software category; --> I am running INFORMIX IDS9.40 on Slackware 10.1 and everything works fine except that informix cannot run onstat due ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:43 PM
malabapa
 
Posts: n/a
Default onstat shared memory error

I am running INFORMIX IDS9.40 on Slackware 10.1 and everything works
fine except that informix cannot run onstat due to the shared memory:
permission denied error. The database chunks reside on a smart array
disk system, so I did a

raw /dev/raw/raw1 /dev/cciss/c0d0p3 so I would have a character
device. I then soft linked a file with informix.informix access just
for readability with the onconfig file.

I can run the command as root, and if I make informix part of the Disk
group, he can run it as well. Is there an issue with giving informix
access to Disk group, or is there another was to set up the chunk? I
have no problems with scrapping the chunks and reloading the database.

I do know this does not happen when I use cooked files. Is this the
better way to go?

Thanks for any assistance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 12:43 PM
Art S. Kagel
 
Posts: n/a
Default Re: onstat shared memory error

malabapa wrote:
> I am running INFORMIX IDS9.40 on Slackware 10.1 and everything works
> fine except that informix cannot run onstat due to the shared memory:
> permission denied error. The database chunks reside on a smart array
> disk system, so I did a
>
> raw /dev/raw/raw1 /dev/cciss/c0d0p3 so I would have a character
> device. I then soft linked a file with informix.informix access just
> for readability with the onconfig file.
>
> I can run the command as root, and if I make informix part of the Disk
> group, he can run it as well. Is there an issue with giving informix
> access to Disk group, or is there another was to set up the chunk? I
> have no problems with scrapping the chunks and reloading the database.
>
> I do know this does not happen when I use cooked files. Is this the
> better way to go?
>
> Thanks for any assistance
>

You're likely having that problem because you started the engine instance as
root. IDS 9.xx & 10.xx want to run as 'informix'.

Art S. Kagel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 12:44 PM
bozon
 
Posts: n/a
Default Re: onstat shared memory error

Also, check the permissions of the items in your INFORMIXDIR/bin

Here are my permissions from that directory:

-rwsr-sr-x root informix mkdbsdir
-rwsr-sr-x root informix sgidsh
-rwsr-sr-x root informix onedcu
-rwxr-sr-x informix informix onedpu
-rwxr-sr-x informix informix xtree
-rwsr-sr-x root informix ondblog
-rwsr-sr-x root informix onsnmp
-rwsr-sr-x root informix onsrvapd
-rwsr-sr-x root informix snmpdm
-rwsr-sr-x root informix snmpdp
-rwxr-sr-x informix informix oncheck
-rwxr-sr-x informix informix onload
-rwxr-sr-x informix informix onparams
-rwxr-sr-x informix informix onspaces
-rwxr-sr-x informix informix onstat
-rwxr-sr-x informix informix onarchive
-rwxr-sr-x informix informix onautovop
-rwsr-sr-x informix informix oncatlgr
-rwxr-sr-x informix informix ondatartr
-rwxr-sr-x informix informix onkeymgr
-rwxr-sr-x informix informix onlog
-rwxr-sr-x informix informix onunload
-rwxr-sr-x informix informix onpload
-rwsr-sr-- root informix oninit
-rwsr-sr-x root informix onmonitor
-rwsr-sr-x root informix ontape
-rwsr-sr-x root informix onaudit
-rwsr-sr-x root informix onbar_d
-rwsr-sr-x root informix onmode
-rwsr-sr-x root informix onshowaudit
-rwsr-sr-x root informix onsmsync

You might have forgotten to run that as root portion of the install. So
to compensate you are starting the engine as root, etc. Notice that the
bulk of the on* executables promote themselves to root while they are
running.

Also, I think you have to have a group informix and a user informix.
Check the installation guide again to make sure that you set up the
informix user correctly.

malabapa wrote:
> I am running INFORMIX IDS9.40 on Slackware 10.1 and everything works
> fine except that informix cannot run onstat due to the shared memory:
> permission denied error. The database chunks reside on a smart array
> disk system, so I did a
>
> raw /dev/raw/raw1 /dev/cciss/c0d0p3 so I would have a character
> device. I then soft linked a file with informix.informix access just
> for readability with the onconfig file.
>
> I can run the command as root, and if I make informix part of the Disk
> group, he can run it as well. Is there an issue with giving informix
> access to Disk group, or is there another was to set up the chunk? I
> have no problems with scrapping the chunks and reloading the database.
>
> I do know this does not happen when I use cooked files. Is this the
> better way to go?
>
> Thanks for any assistance


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 12:44 PM
malabapa
 
Posts: n/a
Default Re: onstat shared memory error

one billion and one thank yous.... The RUN_AS_ROOT.server command did
fail. I ran the script by hand and all is well. Thanks to everyone
who lent a suggestion.

Paul

bozon wrote:
> Also, check the permissions of the items in your INFORMIXDIR/bin
>
> Here are my permissions from that directory:
>
> -rwsr-sr-x root informix mkdbsdir
> -rwsr-sr-x root informix sgidsh
> -rwsr-sr-x root informix onedcu
> -rwxr-sr-x informix informix onedpu
> -rwxr-sr-x informix informix xtree
> -rwsr-sr-x root informix ondblog
> -rwsr-sr-x root informix onsnmp
> -rwsr-sr-x root informix onsrvapd
> -rwsr-sr-x root informix snmpdm
> -rwsr-sr-x root informix snmpdp
> -rwxr-sr-x informix informix oncheck
> -rwxr-sr-x informix informix onload
> -rwxr-sr-x informix informix onparams
> -rwxr-sr-x informix informix onspaces
> -rwxr-sr-x informix informix onstat
> -rwxr-sr-x informix informix onarchive
> -rwxr-sr-x informix informix onautovop
> -rwsr-sr-x informix informix oncatlgr
> -rwxr-sr-x informix informix ondatartr
> -rwxr-sr-x informix informix onkeymgr
> -rwxr-sr-x informix informix onlog
> -rwxr-sr-x informix informix onunload
> -rwxr-sr-x informix informix onpload
> -rwsr-sr-- root informix oninit
> -rwsr-sr-x root informix onmonitor
> -rwsr-sr-x root informix ontape
> -rwsr-sr-x root informix onaudit
> -rwsr-sr-x root informix onbar_d
> -rwsr-sr-x root informix onmode
> -rwsr-sr-x root informix onshowaudit
> -rwsr-sr-x root informix onsmsync
>
> You might have forgotten to run that as root portion of the install. So
> to compensate you are starting the engine as root, etc. Notice that the
> bulk of the on* executables promote themselves to root while they are
> running.
>
> Also, I think you have to have a group informix and a user informix.
> Check the installation guide again to make sure that you set up the
> informix user correctly.
>
> malabapa wrote:
> > I am running INFORMIX IDS9.40 on Slackware 10.1 and everything works
> > fine except that informix cannot run onstat due to the shared memory:
> > permission denied error. The database chunks reside on a smart array
> > disk system, so I did a
> >
> > raw /dev/raw/raw1 /dev/cciss/c0d0p3 so I would have a character
> > device. I then soft linked a file with informix.informix access just
> > for readability with the onconfig file.
> >
> > I can run the command as root, and if I make informix part of the Disk
> > group, he can run it as well. Is there an issue with giving informix
> > access to Disk group, or is there another was to set up the chunk? I
> > have no problems with scrapping the chunks and reloading the database.
> >
> > I do know this does not happen when I use cooked files. Is this the
> > better way to go?
> >
> > Thanks for any assistance


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com