25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Removing a Host<br />

Removing a Host<br />

CAUTION<br />

Removing a host from <strong>LSF</strong> involves preventing any additional jobs from<br />

running on the host, removing the host from <strong>LSF</strong>, and removing the host from<br />

the cluster.<br />

Never remove the master host from <strong>LSF</strong>. If you want to remove your current<br />

default master from <strong>LSF</strong>, change lsf.cluster.cluster_name to assign a<br />

different default master host. Then remove the host that was once the<br />

master host.<br />

1 Log on to the <strong>LSF</strong> host as root.<br />

2 Run badmin hclose to close the host. This prevents jobs from being<br />

dispatched to the host and allows running jobs to finish.<br />

3 When all dispatched jobs are finished, run lsfshutdown to stop the <strong>LSF</strong><br />

daemons.<br />

4 Remove any references to the host in the Host section of<br />

<strong>LSF</strong>_CONFDIR/lsf.cluster.cluster_name.<br />

5 Remove any other references to the host, if applicable, from the following<br />

<strong>LSF</strong> configuration files:<br />

❖ <strong>LSF</strong>_CONFDIR/lsf.shared<br />

❖ LSB_CONFDIR/lsb.hosts<br />

❖ LSB_CONFDIR/lsb.queues<br />

6 Log off the host to be removed, and log on as root or the primary <strong>LSF</strong><br />

administrator to any other host in the cluster.<br />

7 Run lsadmin reconfig to reconfigure LIM.<br />

8 Run badmin mbdrestart to restart mbatchd.<br />

9 If you configured <strong>LSF</strong> daemons to start automatically at system startup,<br />

remove the <strong>LSF</strong> section from the host’s system startup files.<br />

10 If any users of the host use lstcsh as their login shell, change their login<br />

shell to tcsh or csh. Remove lstcsh from the /etc/shells file.<br />

78<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!