Multiple shareholder groups
If you belong to multiple shareholder groups, then by default the batch system can schedule and account your job to any of the shareholder groups you belong to.
Check group membership
Use the my_share_info command to list your shareholder groups:
[euler@eu-login-00-ng ~] 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:
[leonhard@eu-login-00-ng ~] 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 <it>share_name</it> bsub option:
[leonhard@eu-login-00-ng ~] bsub -G es_euler command Generic job. Job <8146543> is submitted to queue <normal.4h>.
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. You can do this using the following command:
[leonhard@eu-login-00-ng ~] export LSB_SUB_USER_GROUP=es_euler" >> ~/.bashrc
Since this change will only take effect in new shells, you will need to log out and log in again to activate this setting!
You can change this setting later by editing your $HOME/.bashrc file.
You can override this setting per a given job as described in the previous section.