Search Docs by Keyword

Table of Contents

Manage dual/multiple lab affiliations on the FASRC cluster

We’re really glad you asked us this question! How you submit your jobs will determine what lab’s fairshare is selected. There are two levels to this question, the first concerning filesystem rights and the second SLURM submissions.

JOBS/SLURM

In SLURM, ensure that your primary group membership is set for the appropriate lab, and, if you belong to an additional group, ask the additional PI to send us an e-mail requesting that we add your account to their group in SLURM. When submitting SLURM jobs, by default all resource usage will be charged to your primary SLURM group. If you wish to submit jobs for the other group, use the --account=2NDGROUPNAME option on the sbatch or salloc (srun) command.

Example: --account=jharvard_lab

You can also include it as a directive in an sbatch script.

Example: #SBATCH --account=jharvard_lab

FILESYSTEMS

For filesystem rights, your primary group ID (GID) is set to your primary lab group (the lab who sponsors your account). You can request membership in additional group memberships via the Portal.

If you belong to more than one group and would like to specify a non-primary group for file ownership, you need to use the command newgrp. For example, suppose your primary group is jsmith_lab and you also belong to jharvard_lab. When creating files in jharvard_lab shared storage, you would want to make sure your group is set to jharvard_lab, not jsmith_lab. For that, use the command: newgrp 2NDGROUPNAME

Example: newgrp jharvard_lab

To switch back to your primary group, you would use the same command but specify your original group: newgrp jsmith_lab

Bookmarkable Links

© The President and Fellows of Harvard College
Except where otherwise noted, this content is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.