|
|
Choosing A Webhost: |
Re: setting a variable in prologue: msg#00110clustering.torque.user
Hi Garrick, I see that in the pbs_mom man page the variable that you refer to... So, I went to my /var/spool/pbs/mom_priv directory and made my config look like this: $logevent 127 $loglevel 6 $pbsserver b08l02 $tmpdir /scratch $usecp *:/home /home $restricted b08l02,b08l01,b07l01,b07l02,b06l01,b06l02,b05l01,b05l02 It is the same as how it looked before except I added the "$tmpdir /scratch" to it. Scratch is set up like a /tmp - the sticky bit is set. I pushed the config to all the nodes and restarted all the pbs_moms and even the pbs_server. In my simple submit script I do: #!/bin/bash -l #PBS -S /bin/bash #PBS -m ae #PBS -M tippensjl@xxxxxxxx #PBS -N parallel-worlds-jen #PBS -q workq #PBS -l nodes=2:ppn=2 #PBS -l walltime=00:00:30,mem=1mb echo "Current working directory is `pwd`" echo $PBS_JOBID echo Tmp dir is $TMPDIR mpiexec /home/2vt/jenstests/message-passing-parallel-worlds/a.out But the variable for $TMPDIR is empty. Am I missing something? Thanks for all the help you give on this list. -Jen On 3/22/06, Garrick Staples <garrick@xxxxxxx> wrote: > On Wed, Mar 22, 2006 at 01:37:13PM -0500, Aquarijen alleged: > > Hi All, > > > > So I wrote a prologue script to create a working directory local to > > the nodes running a job. Currently, I can refrence it in my pbs > > script by "/tmp/temp_pbs_$JOBID" and all is well. But I'd like to > > provide just one variable to the user to use - something like > > "$scratchdir" so that I can change underlying mount points at will > > without having to tell users to change from, say, > > "/tmp/temp_pbs_$JOBID" to "/scratch/temp_pbs_$JOBID" in all their > > scripts and programs. I tried just exporting it as a variable in the > > prologue script, but it doesn't resolve in the pbs submit script - > > only in the prologue script itself. I would appreciate help from you > > creative folks on how to do something so that I can change the > > underlying filesystem without hearing the screams of users. > > TORQUE 2.0.0 already has a similar feature. Look for "tmpdir" in the > pbs_mom manpage. > > Basicly, if you put '$tmpdir /tmp' in your MOM config, then it will make > a /tmp/$PBS_JOBID for you. The path is accessible in job and pelog > scripts as $TMPDIR. > > -- > Garrick Staples, Linux/HPCC Administrator > University of Southern California > > > _______________________________________________ > torqueusers mailing list > torqueusers@xxxxxxxxxxxxxxxx > http://www.supercluster.org/mailman/listinfo/torqueusers > > > >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: qsub -I fails, Paul Raines |
|---|---|
| Next by Date: | Re: pbs_iff and qsub wrapper problems, Roy Dragseth |
| Previous by Thread: | Re: setting a variable in prologue, Garrick Staples |
| Next by Thread: | Re: setting a variable in prologue, Garrick Staples |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |