Hi,
Am 30.07.2019 um 23:12 schrieb Ilya M:
> Hello,
>
> I am setting up a new SGE cluster (with old SGE) with local users' home
> directories on the nodes. Those directories might not exists at the time of
> job execution, so I need to have SGE create them before jobs are executed.
So /home is not mounted via NFS as it's usually done?
> I added the following lines to my prolog script:
>
> HOMEDIR=$(eval echo ~${USER});
> if [[ ! -d ${HOMEDIR} ]]; then
> sudo /sbin/mkhomedir_helper ${USER}
> fi
>
> I tried to run prolog both as a 'sgegrid' user that has sudo privileges to
> execute the command, and as root. However, neither of the attempts worked:
> the job still failed:
>
> 07/30/2019 20:36:28 [973525570:34481]: error: can't chdir to /home/ilya: No
> such file or directory
Yes, as it first wants to change to the user's home before the prolog is
started.
> I also tried to run this as a global prolog and as a queue-level prolog to no
> avail.
>
> Running the prolog script manually on the node creates home directory without
> a problem, so the syntax and logic seem to be correct.
>
> Furthermore, I have the following set at the top on prolog script to allow
> some logging:
>
> set -x
>
> LOG=/tmp/prolog_${1}.log
> exec 6>&1
> exec > $LOG 2>$LOG
>
> However, the log file is not getting created, which makes me think that the
> failure happens before prolog starts to execute.
Yep.
> Shell settings for the queue are as follows:
> shell /bin/sh
> shell_start_mode posix_compliant
>
> starter_method is not set.
>
> Would appreciate any suggestions for making this work or at least getting
> meaningful debug output.
How exactly is your setup? I mean: you want to create some kind of pseudo home
directory on the nodes (hence "-b y" can't be used with user binaries) and the
staged job script (by SGE) will then execute the job and/or copy some files
thereto too? Afterwards this directory would have to be removed too I guess
(and the results copied back beforehand).
-- Reuti
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users