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.

Chapter 4<br />

Working with Hosts<br />

Hosts with Multiple Addresses<br />

Multi-homed<br />

hosts<br />

Multiple network interfaces<br />

Hosts that have more than one network interface usually have one Internet<br />

address for each interface. Such hosts are called multi-homed hosts. <strong>LSF</strong><br />

identifies hosts by name, so it needs to match each of these addresses with a<br />

single host name. To do this, the host name information must be configured<br />

so that all of the Internet addresses for a host resolve to the same name.<br />

There are two ways to do it:<br />

◆ Modify the system hosts file (/etc/hosts) and the changes will affect the<br />

whole system<br />

◆ Create an <strong>LSF</strong> hosts file (<strong>LSF</strong>_CONFDIR/hosts) and <strong>LSF</strong> will be the only<br />

application that resolves the addresses to the same host<br />

Some system manufacturers recommend that each network interface, and<br />

therefore, each Internet address, be assigned a different host name. Each<br />

interface can then be directly accessed by name. This setup is often used to<br />

make sure NFS requests go to the nearest network interface on the file server,<br />

rather than going through a router to some other interface. Configuring this<br />

way can confuse <strong>LSF</strong>, because there is no way to determine that the two<br />

different names (or addresses) mean the same host. <strong>LSF</strong> provides a<br />

workaround for this problem.<br />

All host naming systems can be configured so that host address lookups always<br />

return the same name, while still allowing access to network interfaces by<br />

different names. Each host has an official name and a number of aliases, which<br />

are other names for the same host. By configuring all interfaces with the same<br />

official name but different aliases, you can refer to each interface by a different<br />

alias name while still providing a single official name for the host.<br />

Configuring the <strong>LSF</strong> hosts file<br />

Example<br />

If your <strong>LSF</strong> clusters include hosts that have more than one interface and are<br />

configured with more than one official host name, you must either modify the<br />

host name configuration, or create a private hosts file for <strong>LSF</strong> to use.<br />

The <strong>LSF</strong> hosts file is stored in <strong>LSF</strong>_CONFDIR. The format of<br />

<strong>LSF</strong>_CONFDIR/hosts is the same as for /etc/hosts.<br />

In the <strong>LSF</strong> hosts file, duplicate the system hosts database information, except<br />

make all entries for the host use the same official name. Configure all the other<br />

names for the host as aliases so that people can still refer to the host by any<br />

name.<br />

For example, if your /etc/hosts file contains:<br />

AA.AA.AA.AA host-AA host # first interface<br />

BB.BB.BB.BB host-BB # second interface<br />

then the <strong>LSF</strong>_CONFDIR/hosts file should contain:<br />

AA.AA.AA.AA host host-AA # first interface<br />

BB.BB.BB.BB host host-BB # second interface<br />

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

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

Saved successfully!

Ooh no, something went wrong!