> Ok,
>
> I resolve the problem, doing that:
>
> - I share, via NFS, the pdclab-00:/home to the compute node pdclab-04 in
the /home directory.
>
> (pdclab-00 master node, pdclab-04 compute node and both has the same
users
> josanabr(id: 501) and globus(id:500)).
>
> Ok, my problem is a problem mapping. I refer to the link
> http://www-unix.globus.org/toolkit/docs/4.0/execution/wsgram/admin-index.html#s-wsgram-Interface_Config_Frag-filesysmap
but I found the explanation ambiguous.
>
> For example, in my case what
> $GLOBUS_LOCATION/etc/gram-service/globus_gram_fs_map_config.xml file is
> necessary to modify? master node file or compute node file?

There's only one globus_gram_fs_map_config.xml, which is used by gram;
you normally don't have a GT running on the compute nodes.
This file is used by gram to modify a job's file staging directive like
this: file://<path>.  The file://<path> will be replaced with a matching
gsiftp url based on the entries in the mapping file; gram does not modify
any file staging directives like this: gsiftp://<server>:<port>/...

You only have to modify the mapping file when the view to a shared
filesystem is different between the headnode/cluster and the host the
gridftp server is running on.

Example:
fileserver: exports partition /dev/hda1
headnode: mounts fileserver:/dev/hda1 on /home/user
PBS cluster nodes: mount fileserver:/dev/hda1 on /user
gridftpserver: mounts fileserver:/dev/hda1 on /mnt/user

The PBS part of globus_gram_fs_map_config.xml could then look like:

<map>
 <scheduler>PBS</scheduler>
 <ftpServer>
  <protocol>gsiftp</protocol>
  <host>gridftpserver</host>
  <port>2811</port>
 </ftpServer>
 <mapping>
  <jobPath>/user</jobPath>
  <ftpPath>/mnt/user</ftpPath>
 </mapping>
</map>

The Fork part of globus_gram_fs_map_config.xml could then look like:

<map>
 <scheduler>Fork</scheduler>
 <ftpServer>
  <protocol>gsiftp</protocol>
  <host>gridftpserver</host>
  <port>2811</port>
 </ftpServer>
 <mapping>
  <jobPath>/home/user</jobPath>
  <ftpPath>/mnt/user</ftpPath>
 </mapping>
</map>


Destination URIs of a stageIn request of a PBS job like
    file:///user/john/myScript
would then internally be replaced by gram by
    gsiftp://gridftpserver:2811/mnt/user/john/myScript

(AFAIK you are not able to use ${GLOBUS_USER_HOME} here because
it gets resolved with the user's home on the headnode and not
on the cluster)

Destination URIs of a stageIn request of a Fork job like
    file:///home/user/john/myScript
would then internally be replaced by gram by
    gsiftp://gridftpserver:2811/mnt/user/john/myScript


However: if you have a filesystem shared between the headnode,
the cluster nodes and the gridftp server and the logical names
of this filesystem are the same on theses hosts then you don't
have to edit anything in globus_gram_fs_map_config.xml.



> myhost.org is the hostname of what? master node or compute node?

neither master node nor compute node: it's the hostname of the gridftp
server (it's part of the ftpserver-element)

Martin

> Thanks a lot.
>
>> Hi,
>> Already, I get that -Ft PBS works:
>> [EMAIL PROTECTED] ~]$ globusrun-ws -Ft PBS -submit -s -c /bin/date
> Delegating user credentials...Done.
>> Submitting job...Done.
>> Job ID: uuid:de99f33e-5c1b-11dc-863d-00163e3dc54e
>> Termination time: 09/07/2007 01:52 GMT
>> Current job state: Pending
>> Current job state: Active
>> Current job state: CleanUp-Hold
>> Wed Sep  5 21:52:50 AST 2007
>> Current job state: CleanUp
>> Current job state: Done
>> Destroying job...Done.
>> Cleaning up any delegated credentials...Done.
>> BUT, when I try to execute the a.rsl, as suggested by quickstart guide,
> look:
>> [EMAIL PROTECTED] ~]$ globusrun-ws -Ft PBS -submit -S -f a.rsl
> Delegating user credentials...Done.
>> Submitting job...Done.
>> Job ID: uuid:426c08a2-5c1c-11dc-923e-00163e3dc54e
>> Termination time: 09/07/2007 01:55 GMT
>> Current job state: StageIn
>> Current job state: Pending
>> Current job state: Active
>> Current job state: CleanUp
>> Current job state: Done
>> Destroying job...Done.
>> Cleaning up any delegated credentials...Done.
>> [EMAIL PROTECTED] ~]$ cat stderr
>> /var/spool/torque/mom_priv/jobs/10.pdclab-0.SC: line 35: ./my_echo: No
> such file or directory
>> Any hints? Thanks a lot for your answer.
>> http://ece.uprm.edu/~s047267
>> http://del.icio.us/josanabr
>> http://blog-grid.blogspot.com
>
>
> http://ece.uprm.edu/~s047267
> http://del.icio.us/josanabr
> http://blog-grid.blogspot.com
>
>
>
>














Reply via email to