Hi Maarten, finally it worked!
*******
Status info for the Job :
https://cert-rb-01.cnaf.infn.it:9000/iHjVtn6yjLfD8P_2UHruWw
Current Status: Done (Success)
Destination: cert-ce-01.cnaf.infn.it:2119/jobmanager-lcglsf-pps
********
I changed the lines in
/opt/globus/lib/perl/Globus/GRAM/JobManager/lcglsf.pm in this way:
$lsf_profile = '/etc/profile.d/lsf.sh';
$bsub = ". $lsf_profile &&
/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bsub";
...
so, sourcing the real file and not the link in /etc/profile.d/.
I do not why it worked, it sounds strange. Maybe it is only a problem of
timing, probably I had to wait for the old job_manager to die (or kill
it) after the first change of lcglsf.pm.
Many thanks,
Daniele.
Daniele Cesini wrote:
> Hi Maarten, my lsf environment script should be
> /etc/profile.d/lsf.sh. At least it starts with:
> #**********************************************************
> # profile.lsf:
> # Sets the Bourne shell/Korn shell user environment
> # for LSF commands
>
> I changed /opt/globus/lib/perl/Globus/GRAM/JobManager/lcglsf.pm to have:
>
> $bsub = 'source /etc/profile.d/lsf.sh &&' .
> '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bsub';
> $bjobs = 'source /etc/profile.d/lsf.sh &&' .
> '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bjobs';
> $bkill = 'source /etc/profile.d/lsf.sh &&' .
> '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bkill';
> $bacct = 'source /etc/profile.d/lsf.sh &&' .
> '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bacct';
> $bmod = 'source /etc/profile.d/lsf.sh &&' .
> '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bmod';
>
> but the result of
> globus-job-run cert-ce-01.cnaf.infn.it /usr/bin/env | sort
>
> is not changed.
>
> Do I need to restart something?
> /etc/profile.d/lsf.sh is a link to /usr/share/lsf/conf/profile.lsf
> that is in a directory mounted via nfs, could this be a problem?
>
> Many thanks again,
> Daniele.
>
>
>
> [log in to unmask] wrote:
>> On Fri, 29 Dec 2006, Daniele Cesini wrote:
>>
>>
>>> Hi Maarten, many thanks for your precious help, yes the queue is
>>> spelled correctly, only three characters (pps).
>>> The hostname is cert-ce-01.cnaf.infn.it and the diff between the two
>>> env commands is in attach.
>>>
>>
>> These parts seem relevant:
>>
>> -----------------------------------------------------------------------------
>>
>> < LSF_BINDIR=/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin
>> < LSF_ENVDIR=/usr/share/lsf/conf
>> < LSF_LIBDIR=/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/lib
>> < LSF_SERVERDIR=/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/etc
>> [...]
>> < PATH=/usr/java/j2sdk1.4.2_11/bin:/usr/kerberos/bin:/opt/globus/bin:
>> /opt/globus/sbin:/opt/edg/bin:/usr/local/bin:/usr/local/bin:/bin:/usr/bin:
>>
>> /usr/X11R6/bin:/opt/gpt/sbin:/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin:
>>
>> /usr/share/lsf/6.1/linux2.4-glibc2.3-x86/etc:/opt/edg/sbin:/home/atlas004/bin
>>
>> -----------------------------------------------------------------------------
>>
>>
>> In /opt/globus/lib/perl/Globus/GRAM/JobManager/lcglsf.pm try replacing
>> these lines:
>>
>> $bsub = '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bsub';
>> $bjobs = '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bjobs';
>> $bkill = '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bkill';
>> $bacct = '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bacct';
>> $bmod = '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bmod';
>>
>> with lines like this:
>>
>> $bsub = 'source /path/to/your-LSF-environment-script.sh &&'
>> . '/usr/share/lsf/6.1/linux2.4-glibc2.3-x86/bin/bsub';
>>
>> If that works, you will have to put the same changes in
>> /opt/globus/setup/globus/lcglsf.in so that YAIM will preserve them.
>>
>>
|