Legacy Access to SL7

From Mu2eWiki
Revision as of 14:28, 26 June 2024 by Kutschke (talk | contribs) (→‎Running Grid Jobs on SL7)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

As of mid June 2024, all but one of our interactive machines has been upgraded to the AL9 operating system. All new development work should be done natively on AL9.

If you need to work with SL7 builds, you can do so in an apptainer container. You can start the container with the command

/cvmfs/mu2e.opensciencegrid.org/bin/sl7container

You can also run grid jobs using SL7-built code by requesting that jobs run in a SL7 container.

Running a Legacy Musing

  1. cd to a clean working directory
  2. /cvmfs/mu2e.opensciencegrid.org/bin/sl7container
  3. mu2einit
  4. muse setup SimJob MDC2020ag (for example)
  5. mu2e -c your_file.fcl


Do NOT run mu2einit before starting the container. Doing so will define these two environment variables that will be inherited by the shell inside the container and confuse downstream scripts:

MU2E_OSNAME=al9
MU2E_SPACK=true

Building Code

  1. cd to a clean working directory
  2. /cvmfs/mu2e.opensciencegrid.org/bin/sl7container
  3. git the required git repositories. If needed:
    1. cd into repos and git checkout the correct SHA/tag
    2. cd back to the Muse working directory
  4. mu2einit
  5. Optional add a backing musing:
    1. muse backing SimJob MDC2020ag (for example)
  6. muse setup
  7. muse build -j N
  8. mu2e -c your_file.fcl

If you need to build Offline, you may use the machine mu2ebuild02 and use up to -j 32.

Running Grid Jobs on SL7

First, the command jobsub is not installed in the our sl7 container. To submit a grid job you need to do so from the regular AL9 OS. In a clean shell do:

mu2einit
setup mu2egrid

Second, tell mu2eprodsys to run your job in an SL7 container. To do so add the following argument to your mu2eprodsys command line:

 --predefined-args=sl7

See Grids#Transition_to_jobsub_lite.