On a frequent basis my jobs get locked at the Server

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

pravesh_kushwaha
Participant
Posts: 19
Joined: Fri Sep 10, 2004 12:17 am
Location: India
Contact:

On a frequent basis my jobs get locked at the Server

Post by pravesh_kushwaha »

We have just installed Ascential DataStage 6.01 on Hp Ux server.

For all the projects we are facing the following problem.

On a frequent basis our jobs are getting locked on the DataStage Server.
In the administrator we had set the Inactivity Timeout setting to do not timeout but still our jobs are getting locked.

Can someone tell us why this is taking place and how to resolve it.
Thanks And Regards,
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Re: On a frequent basis my jobs get locked at the Server

Post by denzilsyb »

pravesh_kushwaha wrote: For all the projects we are facing the following problem.
How stable is the network? It could be that developers have jobs open, network conn is lost briefly and on UNIX the job is still 'open' but the client has lost the handle on the job.

To test this, have a client ping -t server while developing on DS, and as soon as a job is 'lost' check the output of the ping. This would verify if the network is the culprit.
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

"Locked by another process" can be when you have the same job design open in another window, or another user has it open. It can also occur if the job is being monitored or, in some cases, executed.

"Locked by another process" can also occur if the process owning the lock is made defunct, for example the PC is shut down or disconnected, or the process on the server is killed.

The recovery is fairly straightforward; best is to make it automatic by enabling the DataStage deadlock daemon, which wakes periodically to check for deadlocks and also to clean up after defunct processes.

There is also a manual strategy by which an administrator can UNLOCK locks held by defunct processes.

Searching this forum for those topics should see you well on your way.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pravesh_kushwaha
Participant
Posts: 19
Joined: Fri Sep 10, 2004 12:17 am
Location: India
Contact:

Post by pravesh_kushwaha »

Can you explain how to enable the DataStage DeadLock Daemon.


Can you also give more information regarding the manual strategy for unlocking the job.


Regarding the stability of network : Network is highly stable and we are having a dedicated unix server for DataStage. Our job is getting locked even if when it was opened previuosly proper closing procedure was followed to exit from the job.
Thanks And Regards,
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Post by denzilsyb »

ray.wurlod wrote:best is to make it automatic by enabling the DataStage deadlock daemon, which wakes periodically to check for deadlocks and also to clean up after defunct processes
Ray - this sounds great. which manual do we read to get on this!
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Post by denzilsyb »

pravesh_kushwaha wrote: Can you also give more information regarding the manual strategy for unlocking the job.
(this is how it is for Server Jobs. Paralell might be different)

Using DS administrator.
select project wherein the job is locked
select COMMAND button
type DS.TOOLS
select 5 (Administrative tasks)
select 4 (list all locks)
you might need to resize the window to view all the data
write down the PID of the job that is locked
once all have been listed you will return to the main menu

select 7 (clear locks held by process)
type the PID of the job that is locked
confirm with 'Y'

and your job should be cleared.

by the way - did you restart the DS services after setting the 'do not timeout' feature?
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
pravesh_kushwaha
Participant
Posts: 19
Joined: Fri Sep 10, 2004 12:17 am
Location: India
Contact:

Post by pravesh_kushwaha »

Hi Denzilsyb,
Thanks for providing that info, but the DS.TOOLS utility is not listing neither any processes nor any locks if we use the options available.

The options are not working.

You have gone through the mine other post at DSXCHANGE in which i have said that clean up resources is not working.

The DataStage server is not able to retrieve any information about the process_id or locks occupied by any Job.

I got another way of unlocking the job but that to is giving error:

Another Method:

On Unix Prompt DataStage Directory

./dsenv
cd bin
dssh
LOGTO UV
UNLOCK INODE inode_num USER user_num ALL

In the above command ALL specifies releasing all locks

I am getting error insufficient privilege for unlocking inode.
Thanks And Regards,
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Post by denzilsyb »

pravesh_kushwaha wrote: I am getting error insufficient privilege for unlocking inode.
does your user have permisions to do this task?

Im not sure you want to release all locks - there might actually be valid locks out there. Have you looked at the user reference manual for BASIC. I believe the site is documented on the forum somewhere, but if you want i could email you the manual - just send me a message.

The method you describe above is the first I have seen - thanks for that.

just a question again - did you restart the services when you checked 'do not time out'?
dnzl
"what the thinker thinks, the prover proves" - Robert Anton Wilson
pravesh_kushwaha
Participant
Posts: 19
Joined: Fri Sep 10, 2004 12:17 am
Location: India
Contact:

Post by pravesh_kushwaha »

How can we check whether user is having the required permissions to do these tasks of unlocking or killing processes.

Can anyone tell more about these privileges.
Thanks And Regards,
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

DataStage Deadlock Daemon

Post by ray.wurlod »

To enable automatic starting of the DataStage deadlock daemon go to your DataStage Engine directory on the server and find the file called dsdlockd.config. Edit this file, changing start=0 to start=1. It will start next time DataStage is started.

To start the deadlock daemon manually you need to be logged in with superuser privilege. Get into the DataStage environment in the DataStage Engine directory and issue the command DEADLOCK.MENU. Option 2 starts the deadlock daemon, first prompting you for the sleep interval.

Deadlock daemon keeps a log file called dsdlockd.log in the DataStage Engine directory (the same directory where dsdlockd.config is).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

denzilsyb wrote:Ray - this sounds great. which manual do we read to get on this!
It doesn't appear in any of the DataStage manuals. You will find it in the IBM manual Administering UniVerse, as the final section of Chapter 9. This manual can be downloaded at no charge from IBM's UniVerse manuals website.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

pravesh_kushwaha wrote:How can we check whether user is having the required permissions to do these tasks of unlocking or killing processes. Can anyone tell more about these privileges.
UNLOCK is one of the commands reserved for the DataStage Administrator. Who this is depends on how you installed DataStage; in particular whether you have chosen to use impersonation mode.

In your case I would guess that you need to be logged in either as dsadm or as root.

On Windows systems the DataStage administrator is any member of the Administrators group.

Read page 1-1 of the manual Administrator Guide (dsadmgde.pdf), particularly the section entitled "Who Can Administer DataStage?"
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:!:
Please note that I have made three separate posts immediately above. Don't read just the last one!
8)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pravesh_kushwaha
Participant
Posts: 19
Joined: Fri Sep 10, 2004 12:17 am
Location: India
Contact:

Post by pravesh_kushwaha »

Thanks ray.world.

When i executed command DEADLOCK.MENU it gives error command not found.

I have tried all the commands by logging as root as well as dsadm.
Thanks And Regards,
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to 'LOGTO UV' before the command will work.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply