User-level account mapping

To set up your own account mapping, set up a .lsfhosts file in your home directory with Owner Read-Write permissions only.

Do not give other users and groups permissions on this file.

Tip:

Account mapping can specify cluster names in place of host names.

Example #1

You have two accounts: user1 on cluster1, and user2 on cluster2. To run jobs in either cluster, configure .lsfhosts as shown.

On each host in cluster1:

% cat ~user1/.lsfhosts
cluster2 user2

On each host in cluster2:

% cat ~user2/.lsfhosts
cluster1 user1
Example #2

You have the account user1 on cluster1, and want to run jobs on cluster2 under the lsfguest account. Configure .lsfhosts as shown.

On each host in cluster1:

% cat ~user1/.lsfhosts
cluster2 lsfguest send

On each host in cluster2:

% cat ~lsfguest/.lsfhosts
cluster1 user1 recv
Example #3

You have a uniform account name (user2) on all hosts in cluster2, and a uniform account name (user1) on all hosts in cluster1 except hostX. On hostX, you have the account name user99.

To use both clusters transparently, configure .lsfhosts in your home directories on different hosts as shown.

On hostX in cluster1:

% cat ~user99/.lsfhosts
cluster1    user1
hostX       user99
cluster2    user2

On every other host in cluster1:

% cat ~user1/.lsfhosts
cluster2    user2
hostX       user99

On each host in cluster2:

% cat ~user2/.lsfhosts
cluster1    user1
hostX       user99