hi maarten,
the same as with david, this is not a unique directory (eg compared to
the eg /home/becms29//gram_scratch_4bITro6C27 value).
(with vo based, i din't meant a vo based tmp dir, but depending on the
vo, use nfs or not. davids solution solves that very nicely, but i don't
know if that solves all problems.)
stijn
[log in to unmask] wrote:
> On Thu, 27 Oct 2005, Stijn De Weirdt wrote:
>
>
>>hi all,
>>
>>i am looking for a way to set the SCRATCH_DIRECTORY value for jobs running on
>>our cluster based on the vo.
>
>
> Put a script in /etc/profile.d:
>
> ----------------------------------------------------------------------
> #!/bin/sh
>
> # assuming the group name is the VO;
> group=`id -gn`
> vo=$group
>
> # otherwise map the group name to the VO
> vo_foo=atlas
> vo_bar=cms
> eval vo=\$vo_$group
>
> export SCRATCH_DIRECTORY=/some/path/$vo
>
> # or:
>
> scratch_atlas=.....
> scratch_cms=.....
> eval export SCRATCH_DIRECTORY=\$scratch_$vo
> ----------------------------------------------------------------------
>
> And a similar script for csh.
>
> Note: the variable that is directly supported by LCG is called:
>
> EDG_WL_SCRATCH
>
>
>>(we have pbs queues with nfs mounted home directories for mpi, but we also
>>have jobs that might perform better when they can write directly to local
>>disks.)
>>
>>there's an option for the globus-job-manager called -scratch-dir-base, but i
>>don't know if that's the good way to change this. (and i also don't know how
>>to make it vo dependent)
>>
>>or if someone has succesfully mixed pbs (nfs) and lcgpbs (local disk) queues
>>on their site, that could also be a solution.
>>
>>many thanks
>>
>>stijn
>>
>
>
>
|