Not able to stop datastage

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

Post Reply
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Not able to stop datastage

Post by vintipa »

hi friends,

i urgently need to stop the datastage application using command bin/uv -admin -stop. but i an getting the following error. kindly guide me to resolve this
Error:

Unable to remove the following shared memory segment(s) during shutdown:
m 1048577 0xadec7521 --rw-rw-rw- root system 111088 127264
m 3 0xadee7521 --rw-rw-rw- root system 106932 127264
Stopping JobMonApp
JobMonApp has not been started from: /dsetlsoft/Ascential/DataStage/PXEngine
2 error(s) encountered during shutdown procedure.
DataStage Engine 7.5.2.1 instance "ade" may be in an inconsistent state.
Vinay
SoaresRui12
Premium Member
Premium Member
Posts: 20
Joined: Tue Dec 16, 2008 10:09 am
Location: Lisboa

Post by SoaresRui12 »

Check if there is any job running or any client connected to DS.
with best regards

Rui Miguel Soares
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Looks to me like a permissions error on the shared memory segment. Ask root to shut it (DataStage) down and see if that works.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Always execute sync twice prior to stopping 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.
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Post by vintipa »

hi Ray,

please elaborate on this : Always execute sync twice,

i have no idea how to do this.

thanks in advance.
Vinay
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Type s-y-n-c (without the dashes) and press enter. Twice.

Wow, I haven't heard that advice in years.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The UNIX sync command forces any pages in memory that have not yet been written to disk to be written to disk. This is important for DataStage engine, which makes extensive use of shared memory. The second sync command picks up any pages that might have been modified while the first sync command was running.

While the original error was about inability to remove shared memory segments cleanly - probably permissions as noted - the sync commands guarantee that even if "crowbar" techniques like ipcrm are used, the engine will at least be in a consistent state.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Post by vintipa »

hi guys,

this issue is now resolved. your replies are very usefu.
but sorry, neither am i able to rate any reply nor am i able to mark this post as resolved.

I killed the processes with root login and then i was able to stop datastage.

thanks.[:)]
Vinay
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You killed what processes as root? And then did what to stop DataStage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Post by vintipa »

hi,

by killed the process i mean that i executed the command ipcrm -m <shmid>.

the steps that i took are as follows:
-------------------
Shared memory segments:
ipcs -mop

That will list all active shared memory segments. Not all of those are related to DataStage. But if some are (like if they are tagged with "ade") and the NATTCH column shows zero, you need to kill those:

ipcrm -m <shmid>

<shmid> is the 2nd column from the ipcs -mop command
--------------------------

i found these steps on net.
Vinay
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can also find information about the effects of potassium cyanide on the net, but you wouldn't eat it. Be very, very careful with any form of "kill".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Post by vintipa »

Hi Ray,

you are right. we need to be very careful.thanks for the caution friend. i found these tips very useful as they solved my problem, but please inform me if there is any damage in using these commands.

actually i have no idea of the commands like ipcs -mop and ipcrm -m <shmid>. yet to explore these commands.
Vinay
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There are other things happening than shared memory segments, and this only gets more complicated when you move to version 8. The main hazard with removing the shared memory segments (other than needing the root login ID) is making sure you get them all - but then what about the semaphores and other structures? If you have the root login then executing the uv -admin -stop command will work and - as a bonus - do all that is necessary. If you want to know all the things that happen during a shutdown of DataStage, take a look at the ds.rc script in the sample directory.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

vintipa wrote:actually i have no idea of the commands like ipcs -mop and ipcrm -m <shmid>. yet to explore these commands.
And yet you have the root password? Oy.
-craig

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