Re: "Unable to attach to shared memory: Invalid argument" usingonmonitor on Fedora
Posted in 2012
On Mon, Mar 5, 2012 at 05:45, David Linthwaite <dlinthwaite@lintel.co.uk>wrote:
> **
> 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 ?
>
I'm not aware of a specific problem with ON-Monitor, other than that it has
no clue about a lot of modern parameters in the ONCONFIG file. It uses the
same underlying code as the server to manipulate the ONCONFIG, so it should
preserve what's in it, but (as a f'r'instance) it doesn't understand
VPCLASS and uses NUMCPUVPS instead, etc.
Please plan on not using ON-Monitor in the future. There are changes afoot
that mean it is unlikely to be a part of the next main release of IDS.
ON-Monitor has a limited lifetime left - it will almost certainly vanish
soon.
>
> ------------------------------
> *From:* informix-list-bounces@iiug.org [mailto:
> informix-list-bounces@iiug.org] *On Behalf Of *Art Kagel
> *Sent:* 05 March 2012 11:50**
> 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!
>
>
I second the 'Do not use ON-Monitor' sentiment.
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 informix in the case of onmode, oninit, and some
>> others and owner/group informix in the case of onmonitor, onparams,
>> onspaces, onload, onlog and a few more. Most are mode rwsr-sr-x apart
>> from oninit which is rwsr-sr--.
>> The engine was started under user 'informix' but the same things
>> happen if I bring it up as 'root'.
>>
>> I spotted some old threads mentioning the same issue but as to parsing
>> the output of 'truss' "to determine if the results are sensible or
>> not", well...
>> I hope I've covered all the bases here; anyone have any clues for me?
>> To all intents and purposes the system works, it's just the onmonitor
>> problems that are a pain!
>>
>>
--
Jonathan Leffler <jonathan.leffler@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2011.0612 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."