clusrun xcopy from fileserver does not works out as expected
-
2011년 6월 14일 화요일 오후 5:00
Dear All,
I have tried to deploy a webservice to the cluster, however, although the command by itself(without clusrun) runs well on each and every computers in the cluster, the clusrun does not work out.
1) clusrun /all hostname
The simple hostname command works out smoothly
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.C:\Windows\system32>clusrun /all hostname
-------------------------- ZEUS returns 0 --------------------------
ZEUS
-------------------------- PAN returns 0 --------------------------
Pan
-------------------------- MATRIX returns 0 --------------------------
MATRIX-------------------------- Summary --------------------------
3 Nodes succeeded
0 Nodes failedC:\Windows\system32>clusrun /all xcopy /y R:\HPCExpress\PiCalcServer.dll "%CCP_H
OME%\NxR2"
Command has failed on node ZEUS. Message:Task failed during execution with exit
code 4. Please check task's output for error details.
-------------------------- ZEUS returns 4 --------------------------
Invalid drive specification
0 File(s) copied
Command has failed on node PAN. Message:Task failed during execution with exit c
ode 4. Please check task's output for error details.
-------------------------- PAN returns 4 --------------------------
Invalid drive specification
0 File(s) copied
Command has failed on node MATRIX. Message:Task failed during execution with exi
t code 4. Please check task's output for error details.
-------------------------- MATRIX returns 4 --------------------------
Invalid drive specification
0 File(s) copied-------------------------- Summary --------------------------
0 Nodes succeeded
3 Nodes failed:MATRIX,PAN,ZEUSC:\Windows\system32>xcopy /y R:\HPCExpress\PiCalcServer.dll "%CCP_HOME%\NxR2"
R:\HPCExpress\PiCalcServer.dll
1 File(s) copiedC:\Windows\system32>clusrun /all xcopy /y \\\\cypher\HPCExpress\PiCalcServer.dll
"%CCP_HOME%\NxR2"
Command has failed on node ZEUS. Message:Task failed during execution with exit
code 4. Please check task's output for error details.
-------------------------- ZEUS returns 4 --------------------------
Invalid drive specification
0 File(s) copied
Command has failed on node PAN. Message:Task failed during execution with exit c
ode 4. Please check task's output for error details.
-------------------------- PAN returns 4 --------------------------
Invalid drive specification
0 File(s) copied
Command has failed on node MATRIX. Message:Task failed during execution with exi
t code 4. Please check task's output for error details.
-------------------------- MATRIX returns 4 --------------------------
Invalid drive specification
0 File(s) copied-------------------------- Summary --------------------------
0 Nodes succeeded
3 Nodes failed:MATRIX,PAN,ZEUSC:\Windows\system32>
Please help. It looks like the fileserver mapping can't be understood by the clusrun, but how could I make it understood correctly by clusrun. Thanks for your time.
Feng Wang
모든 응답
-
2011년 6월 16일 목요일 오후 6:05
Yes, the process started by clusrun runs in session 0, and drive mappings such as the one you're using don't persist well across sessions and users. You can see whether your drive mapping is available within the clusrun command by running a command such as this:
clusrun /all net use
In your scenario, it's better to specify a UNC path instead of the drive mapping. e.g.
clusrun /all xcopy /y \\fileserver\share\HPCExpress\PiCalcServer.dll "%CCP_HOME%\NxR2"
Alternatively, if you absolutely have to use a drive mapping in your clusrun command, another solution might create the drive mapping as part of the command. This might look like the following:
clusrun /all net use R: \\fileserver\share ^& xcopy /y R:\HPCExpress\PiCalcServer.dll "%CCP_HOME%\NxR2"
Also, keep in mind that the %CCP_HOME% env var by default contains a terminating backslash. e.g.
C:\>set ccp_home
CCP_HOME=C:\Program Files\Microsoft HPC Pack 2008 R2\Regards,
Patrick
- 답변으로 제안됨 scorpiotek 2011년 6월 21일 화요일 오전 10:36
- 답변으로 표시됨 51gaoxing 2011년 8월 5일 금요일 오후 7:26
-
2011년 6월 21일 화요일 오전 10:37
I had no idea you could run multiple commands in clusrun using '^&'.
I assume this also works when you are trying to execute various commands in a node prep/node release task?
Thanks!
-
2011년 8월 5일 금요일 오후 7:27Thank you so much for taking your time to answer this question. Yes, that helped a lot.
Feng Wang