This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cluster:88 [2010/08/10 20:25] hmeij |
cluster:88 [2010/08/11 14:25] hmeij |
||
---|---|---|---|
Line 184: | Line 184: | ||
* make a backup copy of / | * make a backup copy of / | ||
* edit file, delete everything but queue ' | * edit file, delete everything but queue ' | ||
- | * (if you rename queue normal you also need to edit lsb.params) | + | * (if you rename queue normal you also need to edit lsb.params |
* remove most queue definitions and set the following | * remove most queue definitions and set the following | ||
- | * QJOBLIMIT | + | * QJOB_LIMIT |
- | * UJOBLIMIT | + | * UJOB_LIMIT |
* INTERACTIVE = no (only batch is allowed) | * INTERACTIVE = no (only batch is allowed) | ||
* EXCLUSIVE = Y (allow the bsub -x flag) | * EXCLUSIVE = Y (allow the bsub -x flag) | ||
- | * PRE_EXEC = / | + | * PRE_EXEC = / |
* POST_EXEC = / | * POST_EXEC = / | ||
- | * make the directories /home/apps and / | + | * make the directories / |
+ | * make the directory / | ||
+ | * be sure / | ||
* create the pre/post exec files (post does an rm -rf against the created directories) | * create the pre/post exec files (post does an rm -rf against the created directories) | ||
+ | * for example: | ||
< | < | ||
#!/bin/bash | #!/bin/bash | ||
Line 206: | Line 209: | ||
* ' | * ' | ||
- | * ' | + | * ' |
+ | |||
+ | Now we're ready to submit a serial jobs. As a non-privilege user create two files: | ||
+ | |||
+ | * run | ||
+ | |||
+ | < | ||
+ | # | ||
+ | |||
+ | rm -f out err job3.out | ||
+ | |||
+ | #BSUB -q normal | ||
+ | #BSUB -J test | ||
+ | #BSUB -n 1 | ||
+ | #BSUB -e err | ||
+ | #BSUB -o out | ||
+ | |||
+ | export MYSANSCRATCH=/ | ||
+ | export MYLOCALSCRATCH=/ | ||
+ | |||
+ | cd $MYLOCALSCRATCH | ||
+ | pwd | ||
+ | cp ~/job.sh . | ||
+ | time job.sh > job.out | ||
+ | |||
+ | cd $MYSANSCRATCH | ||
+ | pwd | ||
+ | cp $LOCALSCRATCH/ | ||
+ | |||
+ | cd | ||
+ | pwd | ||
+ | cp $MYSANSCRATCH/ | ||
+ | </ | ||
+ | |||
+ | * job.sh | ||
+ | * | ||
+ | < | ||
+ | # | ||
+ | |||
+ | sleep 10 | ||
+ | echo Done sleeping. | ||
+ | |||
+ | for i in `seq 1 100` | ||
+ | do | ||
+ | date | ||
+ | done | ||
+ | |||
+ | </ | ||
+ | |||
+ | * 'bsub < run' (submits) | ||
+ | * ' | ||
+ | |||
+ | |||
+ | ===== Step 6 ===== | ||
+ | |||
+ | More fun. | ||