Re: "Unable to attach to shared memory: Invalid argument" usingonmonitor on Fedora
Posted in 2012
I agree, if IBM will update it and maintain it, onmonitor has its place.
If...
Art
Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
Blog: http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
other organization with which I am associated either explicitly,
implicitly, or by inference. Neither do those opinions reflect those of
other individuals affiliated with any entity with which I am affiliated nor
those of the entities themselves.
On Mon, Mar 5, 2012 at 10:07 AM, David Linthwaite
<dlinthwaite@lintel.co.uk>wrote:
> **
> I know that it is a bit old hat but onmonitor is still quite useful,
> especially for beginners, in that it provides some validation on the data
> being input and in my view is easier to navigate than trawling through the
> onconfig file. It is certainly not suitable for some operations but If it
> doesn't work properly then it shouldn't be supplied or it should be fixed.
> Maybe the IIUG could get a statement of intent from IBM ?
>
>
> Regards
>
> David Linthwaite
> Lintel Software Consultancy Ltd
> IBM Business Partner (www.lintel.co.uk)
>
> Tel.: 01244 357250
> Fax.: 01244 357248
>
> mailto:dlinthwaite@lintel.co.uk <dlinthwaite@lintel.co.uk>
>
>
> ------------------------------
> *From:* Art Kagel [mailto:art.kagel@gmail.com]
> *Sent:* 05 March 2012 14:51
> *To:* dlinthwaite@lintel.co.uk
> *Cc:* informix-list@iiug.org
> *Subject:* Re: "Unable to attach to shared memory: Invalid argument"
> usingonmonitor on Fedora
>
> I have seen this myself and gotten reports from others on the problem. I
> also have it from IBM sources that the template that onconfig uses hasn't
> been updated in a long long time. As I said, I won't use it anymore, I
> won't teach it in the classes that ADTC gives to new DBAs, neither does
> Lester.
>
> Art
>
> Art S. Kagel
> Advanced DataTools (www.advancedatatools.com)
> Blog: http://informix-myview.blogspot.com/
>
> Disclaimer: Please keep in mind that my own opinions are my own opinions
> and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
> other organization with which I am associated either explicitly,
> implicitly, or by inference. Neither do those opinions reflect those of
> other individuals affiliated with any entity with which I am affiliated nor
> those of the entities themselves.
>
>
>
> On Mon, Mar 5, 2012 at 8:45 AM, David Linthwaite <dlinthwaite@lintel.co.uk
> > wrote:
>
>> **
>> Hi Art
>>
>> I have used onmonitor consistently over many years and many different
>> versions of IDS and never had a problem. Is there an official IBM
>> statement that onmonitor should not be used or documented bugs w.r.t.
>> corruption of the onconfig file ?
>>
>>
>> Regards
>>
>> David Linthwaite
>> Lintel Software Consultancy Ltd
>> IBM Business Partner (www.lintel.co.uk)
>>
>> Tel.: 01244 357250
>> Fax.: 01244 357248
>>
>> mailto:dlinthwaite@lintel.co.uk <dlinthwaite@lintel.co.uk>
>>
>>
>> ------------------------------
>> *From:* informix-list-bounces@iiug.org [mailto:
>> informix-list-bounces@iiug.org] *On Behalf Of *Art Kagel
>> *Sent:* 05 March 2012 11:50
>> *To:* Malc P
>> *Cc:* informix-list@iiug.org
>> *Subject:* Re: "Unable to attach to shared memory: Invalid argument"
>> usingonmonitor on Fedora
>>
>> Malcolm:
>>
>> I'm going to shout, not because you need to be shouted at, but because
>> everyone needs to 'hear' this:
>>
>> *YOU MUST NEVER USE ONMONITOR FOR ANY VERSION OF INFORMIX LATER THAN
>> 9.40.
>> IT WILL MESS UP YOUR ONCONFIG FILE!*
>>
>> Instead just edit the ONCONFIG file manually (parameters are now well
>> documented in the file itself), use the commandline tools (onparams,
>> onspaces, onmode, oninit, etc.), use the Admin API functions, or use OAT or
>> AGS's Server Studio, but never use onmonitor. It will likely go away soon
>> because it causes so many problems for support (or rather for people who
>> end up needing support)! It should have been deprecated in v10.00.
>>
>> My suggestion: If you can start the engine successfully using "oninit -v"
>> do so and rename onmonitor to "Please_Do_Not_Use_Me.onmonitor" as a
>> reminder. If the engine won't even start up using oninit, then copy a
>> fresh clean ONCONFIG file from onconfig.std and start all over again to
>> configure it manually. Really!
>>
>> Art
>>
>> Art S. Kagel
>> Advanced DataTools (www.advancedatatools.com)
>> Blog: http://informix-myview.blogspot.com/
>>
>> Disclaimer: Please keep in mind that my own opinions are my own opinions
>> and do not reflect on my employer, Advanced DataTools, the IIUG, nor any
>> other organization with which I am associated either explicitly,
>> implicitly, or by inference. Neither do those opinions reflect those of
>> other individuals affiliated with any entity with which I am affiliated nor
>> those of the entities themselves.
>>
>>
>>
>> On Mon, Mar 5, 2012 at 6:30 AM, Malc P <malcrp@googlemail.com> wrote:
>>
>>> (IDS 11.70.UC4IE Innovator-C, Fedora Linux 16, IBM thinkpad Laptop
>>> running a Centrino2 Vpro)
>>> Having been asked to try Innovator-C on Fedora (now they tell me,
>>> after getting a nice stable system running on Ubuntu...) and having no
>>> real issues setting it all up, I now have a server configured and a
>>> dummy of our production database on it, nicely set up with several
>>> dbspaces and so on. Only thing is, I can't use Onmonitor as a standard
>>> (non-group informix) user, getting the above error message; and as
>>> user 'informix', Onmonitor starts up and I can access onmonitor but it
>>> displays "Off-Line" on the information line and I can't access the
>>> "Status", "Dbspaces", "Force-Ckpt" or "Logical-Logs" options (getting
>>> the same error message).
>>> Weird thing is, I'd done a configuration using the Onmonitor
>>> "Parameters"/"Initialize" route with no errors, and I can similarly
>>> use the Onmonitor "Mode"/"Startup" etc options again with no problem.
>>> "onstat -" on the command- ine shows "On-Line", and all the onstat/
>>> onmode/onspaces/dbaccess etc etc commands work with no errors.
>>> I've tried running it with RESIDENT set to 1,0 and -1 all with the
>>> same result; SHMBASE is set to 0X44000000L as in the machine notes
>>> (all the other SHM setting in ONCONFIG and the Fedora kernel meet or
>>> exceed the recommended values).
>>> Nothing looks untoward in onstat -g seg (the R, V and M portions are
>>> all present and correct) or onstat -g glo; ipcs shows all shared
>>> memory segments allocated to informix are owned by root with perms 660
>>> (and the Resident portion is marked as 'locked').
>>> The same happens whether I connect via shm (NETTYPE ipcshm 1,50,CPU)
>>> or tcp (NETTYPE soctcp,1,50,NET).
>>> I installed as a root user and all the $INFORMIXDIR/bin/on* commands
>>> are owner root, group in