Re: Determining instance's oninits
Posted in 2009
Topics: Versions, Editions & End-of-Life
On Mar 6, 2:55 pm, "Floyd Wellershaus" <fl...@fwellers.com> wrote:
> Did you also remove the semaphores ?
> ipcrm -m AND ipcrm -s
>
> ----- Original Message -----
> From: "red_valsen" <red_val...@yahoo.com>
> Sent: Fri, March 6, 2009 13:56
> Subject:Re: Determining instance's oninits
>
> On Mar 6, 9:34 am, theBP <th...@Usenet-News.Net> wrote:
> > red_val...@yahoo.com wrote:
> > > I have 3 informixservers running on a single host. One of the
> > > instances has experienced an assertion failure and is now
> > > unresponsive, so I'd like to kill its oninit processes and attempt to
> > > restart it. But running onstat -g ses only reports a PID of 0 for the
> > > oninit sessions. How do I determine which oninit processes are
> > > associated with which instances?
>
> > > Running IDS 9.40FC8 on HPUX11.
>
> > onstat -g glo>
> > Establish the main CPU VP.
>
> > Get an onstat -g stk all first, and an onstat -a for diagnostics.
>
> Thank you.
>
> Now that I've been able to identify the oninit processes for the
> instance by ID, I've deleted them. But even after using ipcrm to
> remove the now-dead instance's shared memory segments, they are still
> being reported as being referenced by the O/S (ipcs status 'D'),
> preventing the informixserver from being restarted. All the oninit
> processes for the instance were killed. At this point is there an
> alternative to using the Microsoft solution and rebooting the host?
> _______________________________________________
> Informix-list mailing list
> Informix-l...@iiug.orghttp://www.iiug.org/mailman/listinfo/informix-list
>
> ----- End of original message -----
No other onstats lurking.
Haven't found a way to determine who owns which semaphores -- root
ownership prevents dropping them:
informix@hrmis11:/home/informix/smitht/work/030609: ipcs|grep inf
m 2359303 0x525d4801 --rw-rw---- root informix
m 8 0x525d4802 --rw-rw---- root informix
m 163849 0x525d4803 --rw-rw-rw- root informix
m 196618 0x525f4801 --rw-rw---- root informix
m 98315 0x525f4802 --rw-rw---- root informix
m 262156 0x525f4803 --rw-rw-rw- root informix
m 163853 0x52604801 --rw-rw---- root informix
m 65550 0x52604802 --rw-rw---- root informix
m 163855 0x52604803 --rw-rw-rw- root informix
m 458768 0x00000000 D-rw-rw---- informix informix
m 1769489 0x00000000 D-rw-rw---- informix informix
m 720914 0x00000000 D-rw-rw---- informix informix
m 32802 0x52604804 --rw-rw---- informix informix
m 32803 0x52604805 --rw-rw---- informix informix
m 32804 0x52604806 --rw-rw---- informix informix
s 30 0x00000000 --ra-ra---- root informix
s 31 0x00000000 --ra-ra-ra- root informix
s 32 0x00000000 --ra-ra---- root informix
s 33 0x00000000 --ra-ra-ra- root informix
s 34 0x00000000 --ra-ra---- root informix
s 35 0x00000000 --ra-ra-ra- root informix
red_valsen wrote:
> On Mar 6, 2:55 pm, "Floyd Wellershaus" <fl...@fwellers.com> wrote:
>> Did you also remove the semaphores ?
>> ipcrm -m AND ipcrm -s
>>
>> ----- Original Message -----
>> From: "red_valsen" <red_val...@yahoo.com>
>> Sent: Fri, March 6, 2009 13:56
>> Subject:Re: Determining instance's oninits
>>
>> On Mar 6, 9:34 am, theBP <th...@Usenet-News.Net> wrote:
>>> red_val...@yahoo.com wrote:
>>>> I have 3 informixservers running on a single host. One of the
>>>> instances has experienced an assertion failure and is now
>>>> unresponsive, so I'd like to kill its oninit processes and attempt to
>>>> restart it. But running onstat -g ses only reports a PID of 0 for the
>>>> oninit sessions. How do I determine which oninit processes are
>>>> associated with which instances?
>>>> Running IDS 9.40FC8 on HPUX11.
>>> onstat -g glo>>> Establish the main CPU VP.
>>> Get an onstat -g stk all first, and an onstat -a for diagnostics.
>> Thank you.
>>
>> Now that I've been able to identify the oninit processes for the
>> instance by ID, I've deleted them. But even after using ipcrm to
>> remove the now-dead instance's shared memory segments, they are still
>> being reported as being referenced by the O/S (ipcs status 'D'),
>> preventing the informixserver from being restarted. All the oninit
>> processes for the instance were killed. At this point is there an
>> alternative to using the Microsoft solution and rebooting the host?
>> _______________________________________________
>> Informix-list mailing list
>> Informix-l...@iiug.orghttp://www.iiug.org/mailman/listinfo/informix-list
>>
>> ----- End of original message -----
>
> No other onstats lurking.
>
> Haven't found a way to determine who owns which semaphores -- root
> ownership prevents dropping them:
>
> informix@hrmis11:/home/informix/smitht/work/030609: ipcs|grep inf
> m 2359303 0x525d4801 --rw-rw---- root informix
> m 8 0x525d4802 --rw-rw---- root informix
> m 163849 0x525d4803 --rw-rw-rw- root informix
> m 196618 0x525f4801 --rw-rw---- root informix
> m 98315 0x525f4802 --rw-rw---- root informix
> m 262156 0x525f4803 --rw-rw-rw- root informix
> m 163853 0x52604801 --rw-rw---- root informix
> m 65550 0x52604802 --rw-rw---- root informix
> m 163855 0x52604803 --rw-rw-rw- root informix
> m 458768 0x00000000 D-rw-rw---- informix informix
> m 1769489 0x00000000 D-rw-rw---- informix informix
> m 720914 0x00000000 D-rw-rw---- informix informix
> m 32802 0x52604804 --rw-rw---- informix informix
> m 32803 0x52604805 --rw-rw---- informix informix
> m 32804 0x52604806 --rw-rw---- informix informix
> s 30 0x00000000 --ra-ra---- root informix
> s 31 0x00000000 --ra-ra-ra- root informix
> s 32 0x00000000 --ra-ra---- root informix
> s 33 0x00000000 --ra-ra-ra- root informix
> s 34 0x00000000 --ra-ra---- root informix
> s 35 0x00000000 --ra-ra-ra- root informix
Hmmmm ...
Well, the D flag means "waiting for O/S to remove" and should not prevent you from starting the engine.
What error are you actually getting?
Try running onmode -uky in the "defunct" instance's environment.
(Oh, and you "kill" a process, not "delete it" - pedantic I know)
On Mar 7, 11:57 am, theBP <th...@Usenet-News.Net> wrote:
> red_valsen wrote:
> > On Mar 6, 2:55 pm, "Floyd Wellershaus" <fl...@fwellers.com> wrote:
> >> Did you also remove the semaphores ?
> >> ipcrm -m AND ipcrm -s
>
> >> ----- Original Message -----
> >> From: "red_valsen" <red_val...@yahoo.com>
> >> Sent: Fri, March 6, 2009 13:56
> >> Subject:Re: Determining instance's oninits
>
> >> On Mar 6, 9:34 am, theBP <th...@Usenet-News.Net> wrote:
> >>> red_val...@yahoo.com wrote:
> >>>> I have 3 informixservers running on a single host. One of the
> >>>> instances has experienced an assertion failure and is now
> >>>> unresponsive, so I'd like to kill its oninit processes and attempt to
> >>>> restart it. But running onstat -g ses only reports a PID of 0 for the
> >>>> oninit sessions. How do I determine which oninit processes are
> >>>> associated with which instances?
> >>>> Running IDS 9.40FC8 on HPUX11.
> >>> onstat -g glo> >>> Establish the main CPU VP.
> >>> Get an onstat -g stk all first, and an onstat -a for diagnostics.
> >> Thank you.
>
> >> Now that I've been able to identify the oninit processes for the
> >> instance by ID, I've deleted them. But even after using ipcrm to
> >> remove the now-dead instance's shared memory segments, they are still
> >> being reported as being referenced by the O/S (ipcs status 'D'),
> >> preventing the informixserver from being restarted. All the oninit
> >> processes for the instance were killed. At this point is there an
> >> alternative to using the Microsoft solution and rebooting the host?
> >> _______________________________________________
> >> Informix-list mailing list
> >> Informix-l...@iiug.orghttp://www.iiug.org/mailman/listinfo/informix-list
>
> >> ----- End of original message -----
>
> > No other onstats lurking.
>
> > Haven't found a way to determine who owns which semaphores -- root
> > ownership prevents dropping them:
>
> > informix@hrmis11:/home/informix/smitht/work/030609: ipcs|grep inf
> > m 2359303 0x525d4801 --rw-rw---- root informix
> > m 8 0x525d4802 --rw-rw---- root informix
> > m 163849 0x525d4803 --rw-rw-rw- root informix
> > m 196618 0x525f4801 --rw-rw---- root informix
> > m 98315 0x525f4802 --rw-rw---- root informix
> > m 262156 0x525f4803 --rw-rw-rw- root informix
> > m 163853 0x52604801 --rw-rw---- root informix
> > m 65550 0x52604802 --rw-rw---- root informix
> > m 163855 0x52604803 --rw-rw-rw- root informix
> > m 458768 0x00000000 D-rw-rw---- informix informix
> > m 1769489 0x00000000 D-rw-rw---- informix informix
> > m 720914 0x00000000 D-rw-rw---- informix informix
> > m 32802 0x52604804 --rw-rw---- informix informix
> > m 32803 0x52604805 --rw-rw---- informix informix
> > m 32804 0x52604806 --rw-rw---- informix informix
> > s 30 0x00000000 --ra-ra---- root informix
> > s 31 0x00000000 --ra-ra-ra- root informix
> > s 32 0x00000000 --ra-ra---- root informix
> > s 33 0x00000000 --ra-ra-ra- root informix
> > s 34 0x00000000 --ra-ra---- root informix
> > s 35 0x00000000 --ra-ra-ra- root informix
>
> Hmmmm ...
>
> Well, the D flag means "waiting for O/S to remove" and should not prevent you from starting the engine.
>
> What error are you actually getting?
>
> Try running onmode -uky in the "defunct" instance's environment.
>
> (Oh, and you "kill" a process, not "delete it" - pedantic I know)
Couldn't shutdown the other instances since they were still in use by
scores of users.
The error message when attempting to restart the instance was
something along the lines of "Cannot load informixserver -- instance
really hosed!" and a reference to error #22. The only recourse left
was to bounce the box after COB.
Related threads
- Posting from the Informix-list
- Migrating from IDS 9.40.UC6 to 11.50.UC3
- Ip for a network session
- questions onstat -g