setup client with NFS server with multiple NIC

NFS server, Automount

In a data intensive NFS environment, in order to get better NFS server performance, one approach is to use multiple NIC in the NFS server.

We will configure clients only to mount on a specific NIC that server on a specific subnet.

The standard requirement is that clients will need to have access to all data on the NFS server.

Lets' assumed that there are 16 NIC in the server, and we have setup 16 subnet ( or VLAN in modern term) and we only want subset of clients to be in one subnet, say 16 in 100baseT world.

Let's assume that the mount point is /global/data on the server and each NIC is associated with suffix to the server name nfs-server-xx.

the clients are client-xx-yy for each xx subnet.

Our goal is for client-xx-yy to mount the /global/data by using nfs-server-xx:/global/data.

How can we achive this?

The trick is in the setup of the automount map, we use the direct-map as an example auto_data the entry should look like the following

/global/data $(nfsserver):/global/data

In the /etc/init.d/autofs script one need to add a few line before the automount command to set "nfsserver" accounting to the client HOSTNAME

Something like

HOST=`hostname`
nfsserver=nfs-server-`echo $HOST|nawk -F- '{print $2}'`
will do.

Of course we will use Jumpstart to modify the auto_direct and autofs files

Comments:

Post a Comment:
Comments are closed for this entry.
About

hstsao

Search

Top Tags
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today