Operating System - Tru64 Unix
1751940 Members
4822 Online
108783 Solutions
New Discussion юеВ

Move Unix Sort Directory

 
Philip Horan
Frequent Advisor

Move Unix Sort Directory

I am attempting to run a report that calls the unix sort. As the report runs available capacity on / (root) diminishes until zero, the report then fails.

Question: Can I run/move the unix sort to a drive with more capacity?

Note: I am a unix novice.

Many Thanks,
Phil.
5 REPLIES 5
Victor Semaska_3
Esteemed Contributor

Re: Move Unix Sort Directory

If you're talking about the temporary files that sort uses, the manpage sys:

-T directory
[Tru64 UNIX] Places all the temporary files that are created in directory.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Philip Horan
Frequent Advisor

Re: Move Unix Sort Directory

Hi Victor, many thanks for taking time to respond. The issue arises when a report is run (batch). The report executes a series of .SPC files.

Watching the file execute capacity on volume B decreases as the report runs. Then as the batch file executes a particular .SPC (file contains the code to sort the report format) capacity decreases on volume A (root) the smallest partition?

The question is can I control the default volume the sort writes to in unix? There is nothing in the .SPC file that specifies /. I have another partition with more capacity, if I could get unix to sort on that I am sure it will run OK.

I hope that is clear?
Many Thanks,
Phil.
Pieter 't Hart
Honored Contributor

Re: Move Unix Sort Directory

temporary files are often created in a user's home-dir or in /tmp.

what user runs this batch?
does this user has "/" as its home directory, like user "root" ?
-> try running this as another user with enough priviliges and space in its home-dir.

if the temporary files are put in /tmp you could create another filesystem and mount this on /tmp (default part of /).

sometimes when using large interproces-queues space is used on /proc (default part of /).
Philip Horan
Frequent Advisor

Re: Move Unix Sort Directory

Thanks for the reply, I will look into all your suggested fixes.
Many Thanks,
Phil.
Kapil Jha
Honored Contributor

Re: Move Unix Sort Directory

Please check df -h if /tmp is mounted.
If not then it is a serious problem.
Get it resolved !!
BR,
Kapil
I am in this small bowl, I wane see the real world......