RE: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-11 Thread Hona, David S
We've had similar issues and found that it isn't a UniVerse issue. It
was processes using UniRPC connections (InterCall, UniObjects,
UniCall/OBDC, etc.) still being active during the shutdown. These
processes keep their socket connections open. This can prevent UniRPC
from starting back up.

The problem sounds like that you may have a process(es) using UniRPC
when you shutdown UniVerse. If this is the case, under Sun Solaris and
UV 9.1.4 we would see processes still using UniRPC go into FIN_WAIT_2
state for their still open TCP socket connection. If that was the case,
we could guarantee that the UVRPC daemon (has it was called before UV
9.5.x) wouldn't start back up. Once those TCP connections cleared (went
away), it was okay to start back up...sometimes it took awhile to
clear though.

Check what connections you have active, by issusing a:
$ netstat -a | grep uvrpc
  *.uvrpc  *.*0  0 49152  0
LISTEN

If nothing is connected, you're safe to shutdown (like the above
example). If you got processed connect - it may be bad. Strangely, under
UV 10.1.12 and Solaris 9, we can now happily stop UV and start it up
again...UniRPC *seems* to come backup -- even if processes are connected
with open sockets. Could be wrong or just plain lucky, of course. 

We deal with this situation by adding to the uv.rc script, our own
uv_kill_processes script which looks for UV processes and the shared
memory segments. It loops until all are UV processes are killed (up to 4
attempts). This also deals with the UV shutdown process aborting if
shared memory segments aren't released.

Hopefully, this should help you out in some way.

Regards,
David




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jacques G.
Sent: Wednesday, May 10, 2006 6:02 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

Hello,

We have a cron job which does the following:

1- Uses Universe's  uv.rc script to stop Universe and unirpc daemon
2- Make a backup of the Production account into a different filesystem
on the production machine.
3- Restart Universe  unirps using the uv.rc script
4- Start the backup to tape of the copy of the production environment.

When Universe is re-started along with the unirpc daemon within the cron
job, Universe works but the unirpc daemon doesn't work correctly.  It
must be stopped manually from the uv menu and re-started.  Has anyone
here encountered a similar problem ?

I've tried to get support help from IBM but I get the run-around.  I'm
told that IBM won't debug my companies script even though I've
repeatedly told them that the script we are using the uv.rc script that
was written by IBM.

We are running Universe 10.1.8 on a HP.UX 11i machine.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-11 Thread Debster
Hmmm...I just realized...

Had the same type of issue with UV 9.6 on AIX 5.2 so we had a similar kill
process, often telnet connections would not release especially if the user
had shelled out to perform a process (most notably to go to SMIT), along
with samba sessions...the spooler would also be stopped.

Then uv.rc would be executed to restart universe, and the spooler restarted

If the shutdown was performed out-of-sync it would at times result in a
memory segment error and the shutdown and system up process would have to be
executed over.  (this was fun cross-eyed at 3AM)

If you aren't doing so already, I would suggest capturing all cron errors to
a log file you can easily review


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hona, David S
Sent: Thursday, May 11, 2006 5:15 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UV] unirpc daemon, stopping and re-starting it from
cron


We've had similar issues and found that it isn't a UniVerse issue. It
was processes using UniRPC connections (InterCall, UniObjects,
UniCall/OBDC, etc.) still being active during the shutdown. These
processes keep their socket connections open. This can prevent UniRPC
from starting back up.

The problem sounds like that you may have a process(es) using UniRPC
when you shutdown UniVerse. If this is the case, under Sun Solaris and
UV 9.1.4 we would see processes still using UniRPC go into FIN_WAIT_2
state for their still open TCP socket connection. If that was the case,
we could guarantee that the UVRPC daemon (has it was called before UV
9.5.x) wouldn't start back up. Once those TCP connections cleared (went
away), it was okay to start back up...sometimes it took awhile to
clear though.

Check what connections you have active, by issusing a:
$ netstat -a | grep uvrpc
  *.uvrpc  *.*0  0 49152  0
LISTEN

If nothing is connected, you're safe to shutdown (like the above
example). If you got processed connect - it may be bad. Strangely, under
UV 10.1.12 and Solaris 9, we can now happily stop UV and start it up
again...UniRPC *seems* to come backup -- even if processes are connected
with open sockets. Could be wrong or just plain lucky, of course.

We deal with this situation by adding to the uv.rc script, our own
uv_kill_processes script which looks for UV processes and the shared
memory segments. It loops until all are UV processes are killed (up to 4
attempts). This also deals with the UV shutdown process aborting if
shared memory segments aren't released.

Hopefully, this should help you out in some way.

Regards,
David




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jacques G.
Sent: Wednesday, May 10, 2006 6:02 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

Hello,

We have a cron job which does the following:

1- Uses Universe's  uv.rc script to stop Universe and unirpc daemon
2- Make a backup of the Production account into a different filesystem
on the production machine.
3- Restart Universe  unirps using the uv.rc script
4- Start the backup to tape of the copy of the production environment.

When Universe is re-started along with the unirpc daemon within the cron
job, Universe works but the unirpc daemon doesn't work correctly.  It
must be stopped manually from the uv menu and re-started.  Has anyone
here encountered a similar problem ?

I've tried to get support help from IBM but I get the run-around.  I'm
told that IBM won't debug my companies script even though I've
repeatedly told them that the script we are using the uv.rc script that
was written by IBM.

We are running Universe 10.1.8 on a HP.UX 11i machine.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-10 Thread Symeon Breen
As above, LANG=C (or similar) must be set for rpcd to work correctly. other
uv services work fine with LANG set to anything, rpc needs it tho ...


Rgds

On 10/05/06, Lembit Pirn [EMAIL PROTECTED] wrote:

 Is the LANG setting correct (C) ?

 Senn, Bruce wrote:

 FWIW, you can't always be sure of the environment when running something
 from cron. You might be missing something in the PATH variable or some
 other environment variable.
 
 I guess a question is whether this has worked in the past or is
 something new that you are trying to do?
 
 HTH.
 
 Bruce.
 
 
   Bruce J. SennPhone:  (518) 388-6664
   Senior System ManagerFAX:(518) 388-6458
   Union CollegeE-mail:  [EMAIL PROTECTED]
   Schenectady, NY 12308WWW:  http://www1.union.edu/~sennb
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jacques G.
 Sent: Tuesday, May 09, 2006 4:02 PM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] [UV] unirpc daemon, stopping and re-starting it from cron
 
 Hello,
 
 We have a cron job which does the following:
 
 1- Uses Universe's  uv.rc script to stop Universe and
 unirpc daemon
 2- Make a backup of the Production account into a
 different filesystem on the production machine.
 3- Restart Universe  unirps using the uv.rc script
 4- Start the backup to tape of the copy of the
 production environment.
 
 When Universe is re-started along with the unirpc
 daemon within the cron job, Universe works but the
 unirpc daemon doesn't work correctly.  It must be
 stopped manually from the uv menu and re-started.  Has
 anyone here encountered a similar problem ?
 
 I've tried to get support help from IBM but I get the
 run-around.  I'm told that IBM won't debug my
 companies script even though I've repeatedly told them
 that the script we are using the uv.rc script that was
 written by IBM.
 
 We are running Universe 10.1.8 on a HP.UX 11i machine.
 
 
 
 
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
 
 
 

 --
 Lembit Pirn

 7+7 Software
 Mustamde tee 4
 Tallinn 10621
 Estonia
 phone: +372 6566 232
 GSM: +372 5028707
 e-mail: [EMAIL PROTECTED]
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-10 Thread Jacques G.
 I guess a question is whether this has worked in the
 past or is something new that you are trying to do?

This is something new.  This client is our first
client to make use of web services for our application.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-10 Thread Jacques G.
 As above, LANG=C (or similar) must be set for rpcd
 to work correctly. other
 uv services work fine with LANG set to anything, rpc
 needs it tho ...

How can I check for the setting of LANG both on my
current Universe setup and what its value is within
the cron job ?


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-10 Thread Debster
Now...

Wouldn't the uv.rc default to the setting within UV.CONFIG?  

I don't recall having to reset it

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jacques G.
Sent: Wednesday, May 10, 2006 11:17 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV] unirpc daemon, stopping and re-starting it from
cron


 As above, LANG=C (or similar) must be set for rpcd
 to work correctly. other
 uv services work fine with LANG set to anything, rpc
 needs it tho ...

How can I check for the setting of LANG both on my
current Universe setup and what its value is within
the cron job ?


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-09 Thread Debster
I was doing a similar routine


1. Check the documentaton for any missing files 
2. Doublecheck uv.rc to make sure nothing is commented out
3. In uv.admin doublecheck the entries in the host file
4. Check if you are using the -stop option

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jacques G.
Sent: Tuesday, May 09, 2006 4:02 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] unirpc daemon, stopping and re-starting it from cron


Hello,

We have a cron job which does the following:

1- Uses Universe's  uv.rc script to stop Universe and
unirpc daemon
2- Make a backup of the Production account into a
different filesystem on the production machine.
3- Restart Universe  unirps using the uv.rc script
4- Start the backup to tape of the copy of the
production environment.

When Universe is re-started along with the unirpc
daemon within the cron job, Universe works but the
unirpc daemon doesn't work correctly.  It must be
stopped manually from the uv menu and re-started.  Has
anyone here encountered a similar problem ?

I've tried to get support help from IBM but I get the
run-around.  I'm told that IBM won't debug my
companies script even though I've repeatedly told them
that the script we are using the uv.rc script that was
written by IBM.

We are running Universe 10.1.8 on a HP.UX 11i machine.








__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-09 Thread Senn, Bruce
FWIW, you can't always be sure of the environment when running something
from cron. You might be missing something in the PATH variable or some
other environment variable.

I guess a question is whether this has worked in the past or is
something new that you are trying to do?

HTH.

Bruce.


  Bruce J. Senn Phone:  (518) 388-6664
  Senior System Manager FAX:(518) 388-6458
  Union College E-mail:  [EMAIL PROTECTED]
  Schenectady, NY 12308 WWW:  http://www1.union.edu/~sennb




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jacques G.
Sent: Tuesday, May 09, 2006 4:02 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

Hello,

We have a cron job which does the following:

1- Uses Universe's  uv.rc script to stop Universe and
unirpc daemon
2- Make a backup of the Production account into a
different filesystem on the production machine.
3- Restart Universe  unirps using the uv.rc script
4- Start the backup to tape of the copy of the
production environment.

When Universe is re-started along with the unirpc
daemon within the cron job, Universe works but the
unirpc daemon doesn't work correctly.  It must be
stopped manually from the uv menu and re-started.  Has
anyone here encountered a similar problem ?

I've tried to get support help from IBM but I get the
run-around.  I'm told that IBM won't debug my
companies script even though I've repeatedly told them
that the script we are using the uv.rc script that was
written by IBM.

We are running Universe 10.1.8 on a HP.UX 11i machine.








__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

2006-05-09 Thread Lembit Pirn

Is the LANG setting correct (C) ?

Senn, Bruce wrote:


FWIW, you can't always be sure of the environment when running something
from cron. You might be missing something in the PATH variable or some
other environment variable.

I guess a question is whether this has worked in the past or is
something new that you are trying to do?

HTH.

Bruce.


 Bruce J. Senn  Phone:  (518) 388-6664
 Senior System Manager  FAX:(518) 388-6458
 Union College  E-mail:  [EMAIL PROTECTED]
 Schenectady, NY 12308  WWW:  http://www1.union.edu/~sennb




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jacques G.
Sent: Tuesday, May 09, 2006 4:02 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] unirpc daemon, stopping and re-starting it from cron

Hello,

We have a cron job which does the following:

1- Uses Universe's  uv.rc script to stop Universe and
unirpc daemon
2- Make a backup of the Production account into a
different filesystem on the production machine.
3- Restart Universe  unirps using the uv.rc script
4- Start the backup to tape of the copy of the
production environment.

When Universe is re-started along with the unirpc
daemon within the cron job, Universe works but the
unirpc daemon doesn't work correctly.  It must be
stopped manually from the uv menu and re-started.  Has
anyone here encountered a similar problem ?

I've tried to get support help from IBM but I get the
run-around.  I'm told that IBM won't debug my
companies script even though I've repeatedly told them
that the script we are using the uv.rc script that was
written by IBM.

We are running Universe 10.1.8 on a HP.UX 11i machine.








__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---

u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

 



--
Lembit Pirn

7+7 Software
Mustamde tee 4
Tallinn 10621
Estonia
phone: +372 6566 232
GSM: +372 5028707
e-mail: [EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/