User-level account mapping
Procedure
Do not give other users and groups permissions on this file.
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/.lsfhostscluster2 user2On each host in cluster2:
% cat ~user2/.lsfhostscluster1 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/.lsfhostscluster2 lsfguest sendOn each host in cluster2:
% cat ~lsfguest/.lsfhostscluster1 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/.lsfhostscluster1 user1hostX user99cluster2 user2On every other host in cluster1:
% cat ~user1/.lsfhostscluster2 user2hostX user99On each host in cluster2:
% cat ~user2/.lsfhostscluster1 user1hostX user99