Multiple shareholder groups
If you belong to multiple shareholder groups, then you can chose to which shareholder groups the job should be accounted.
Check group membership
Use the my_share_info command to list your shareholder groups:
[sfux@eu-login-01 ~] my_share_info You are a member of the es_example shareholder group on Euler.
All groups will be listed in case you belong to multiple groups:
[sfux@eu-login-01 ~] my_share_info You are a member of the following shareholder groups on Euler: es_example es_euler
Select a group when submitting a job
If you are member of multiple shareholder groups, then you can tell the LSF batch system that a given job should be scheduled and accounted to the given group by passing the -G share_name bsub option:
[sfux@eu-login-01 ~] bsub -G es_euler command Generic job. Job <8146543> is submitted to queue <normal.4h>.
or for Slurm you need to use the sbatch option -A share_name:
[sfux@eu-login-01 ~] sbatch -A es_euler command Submitted batch job 1009718
Select a default group
If you are member of multiple shareholder groups, then you can select a group to which jobs should be scheduled and accounted by default. Set the LSB_SUB_USER_GROUP environment variable to the desired group in your bash shell. For LSF, you can do this using the following command:
[sfux@eu-login-01 ~] echo export LSB_SUB_USER_GROUP=es_euler >> ~/.bashrc
or in Slurm
[sfux@eu-login-01 ~] echo account=es_euler >> $HOME/.slurm/defaults
Since this change will only take effect in new shells, you will need to log out and log in again to activate this setting!
In case the directory $HOME/.slurm does not yet exist, then you would need to create it first
[sfux@eu-login-43 ~]$ mkdir -p $HOME/.slurm
You can override this setting per a given job as described in the previous section.