clearing scratch space

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
madhukar
Participant
Posts: 86
Joined: Fri May 20, 2005 4:05 pm

clearing scratch space

Post by madhukar »

Hi All,

How can i clear the files under scratch directory
can i just remove with rm command?

Thx
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Do an all term search on key words 'scratch space clean up'.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are any jobs running that might be using the scratch space? Scratch space should be cleaned up automatically - if it's not you have jobs that are aborting, and should do something about that.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
madhukar
Participant
Posts: 86
Joined: Fri May 20, 2005 4:05 pm

Post by madhukar »

yes ray, you got it right all my jobs were fine during development.

when testing with large volume of data jobs are aborting with SIGBUS errors.
and scratch space full.

Is there any way i can clean up those files (aborted jobs) and run the jobs again.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Unless you're running out of space there's no rush to clean them up. But, if you want to, simply use rm when there's no jobs running.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

As noted by Ray, you can go ahead and clear the files avialble in TEMP dir or Scratch disk when the jobs are not running. Those are temporay files used by intermediate stages available in the jobs like SORT, Aggregator etc.,
It can be isolated to different node pool via Config file.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
madhukar
Participant
Posts: 86
Joined: Fri May 20, 2005 4:05 pm

Post by madhukar »

removed the files in scratch space but still it gives 99% full (previously also)
Am i missing anything?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You need more space. As Ray puts it, supply and demand.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

madhukar wrote:removed the files in scratch space but still it gives 99% full (previously also)
Am i missing anything?
Yes, the 99%.
Use du -s to identify which directories are taking the resources.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Also check the config file, if you have given a different path for Sort node pool and scratch space.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply