Cross-cluster user account mapping behavior

System-level configuration example

The following example illustrates LSF behavior when the LSF administrator sets up cross-cluster user account mapping at the system level. This example shows the UserMap section of the file lsb.users on both the local and remote clusters.

On cluster1:
Begin UserMap
LOCAL    REMOTE                             DIRECTION
user1    user2@cluster2                     export
user3    user6@cluster2                     export
End UserMap
On cluster2:
Begin UserMap
LOCAL    REMOTE                             DIRECTION
user2    user1@cluster1                     import
user6    user3@cluster1                     import
End UserMap
The mappings between users on different clusters are as follows:
Figure 1. System-level mappings for both clusters
Only mappings configured in lsb.users on both clusters work. In this example, the common user account mappings are:
  • user1@cluster1 to user2@cluster2

  • user3@cluster1 to user6@cluster2

User-level configuration examples

The following examples describe how user account mapping works when configured at the user level in the file .lsfhosts in the user’s home directory. Only mappings that are configured in .lsfhosts on hosts in both clusters work.

To allow …

On …

In the home directory of …

.lsfhosts must contain the line …

The accounts user1 and user2 to run jobs on all hosts in both clusters:

  • user1 to send jobs to and receive jobs from user2 on cluster2

All hosts in cluster1

user1

cluster2 user2
  • user2 to send jobs to and receive jobs from user1 on cluster1

All hosts in cluster2

user2

cluster1 user1

The account user1 to run jobs on cluster2 using the lsfguest account:

  • user1 to send jobs as lsfguest to all hosts in cluster2

All hosts in cluster1

user1

cluster2 lsfguest send
  • lsfguest to receive jobs from user1 on cluster1

All hosts in cluster2

lsfguest

cluster1 user1 recv