Question & Answer
Question
How to transfer files from Windows to Linux in LSF environment. The Linux and windows servers both have access to the same shared filesystem via pure nfs. The main approach to running in a mix environment is to give the end users the ability to submit jobs from a Windows submission host to run on Linux and have the results.
Cause
Use the following mechanisms in order to transfer files between local (submission) host and remote (execution) host:
1. lsrcp: is an LSF enabled remote copy program that transfer a single file between hosts. If LSF is not installed on a host or if RES is not running then lsrcp uses rcp to copy the file. It's necessary to keep in mind that both the source and target file must be owned by the user who issues the command.
lsrcp from Windows to Unix
C:\LSF_9.1>lsrcp LSF_redist.txt supp11:/home/asameem/files/
[root@supp11 files]# cd /home/asameem/files
[root@supp11 files]# ls -ltr
drw------- 2 lsfadmin lsf 4096 Jun 29 2015 support_tools
-rw------- 1 lsfadmin lsf 82 Apr 14 15:26 platform_ls_entitlement.dat
drw------- 2 lsfadmin lsf 4096 May 2 11:18 logs_pac
drw------- 2 lsfadmin lsf 4096 May 26 12:06 chris
-rw------- 1 lsfadmin lsf 278966 May 26 13:34 lsb.events.10.events
-rw------- 1 lsfadmin lsf 426 Aug 3 2016 aa
2. bsub -f: LSF supports the transfer of job data between the submission host and the execution host as part of the job through the -f of bsub. Operators are used to copy files before the job starts or after the job is completed, based on your requirements.
bsub -f from Windows to Unix
C:\LSF_9.1>bsub -q admin -f "C:\\LSF_9.1\\LSF_redist.txt > supp11:/home/asameem/files/outputfile2" dir
Job <115> is submitted to queue <admin>.
[root@supp11 files]# ls -ltr
drw------- 2 lsfadmin lsf 4096 Jun 29 2015 support_tools
-rw------- 1 lsfadmin lsf 82 Apr 14 15:26 platform_ls_entitlement.dat
drw------- 2 lsfadmin lsf 4096 May 2 11:18 logs_pac
drw------- 2 lsfadmin lsf 4096 May 26 12:06 chris
-rw------- 1 lsfadmin lsf 278966 May 26 13:34 lsb.events.10.events
-rw------- 1 lsfadmin lsf 426 Aug 3 14:31 aa
-rw------- 1 lsfadmin lsf 426 Aug 3 14:33 outputfile2
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
isg3T1024144