Construction of Nfs+nis service under Linux cluster and simple installation of Mpich

Source: Internet
Author: User

Mpich is the most widely used free MPI system and an MPI parallel environment running on most cluster systems.

Mpich URL is: Http://www.mcs.anl.gov/mpi/mpich, from here you can download the source program mpich.tar.gz

The following is an example of a fleet of four machines to illustrate the installation and configuration of Mpich:

1 on four machines/etc/hosts this file is configured to the same, including 4 nodes of the IP address and the hostname of the one by one corresponding relationship, if the four node IP and hostname is node1/10.10.10.1, node2/10.10.10.2, node3/ 10.10.10.3, node4/10.10.10.4

Also that is to do the hosts parsing (applicable to the Intranet), so that, in the intranet, whether the host name or IP address can ssh mutual access, convenient and fast;

2 Configure NFS (share Mpich's installation directory and user home directory via NFS Network File system), and share one of the nodes, if Node1, as Server for NFS, sharing his/usr/local

3 Install the NFS program on this node and turn on NFS service: Chkconfig NFS On,chkconfig nfslock on,/etc/init.d/nfs restart,/etc/init.d/nfslock restart

Then add the following to this file in/etc/exports:

/home 10.10.10.0/24 (Rw,async,no_root_squash)

/usr/local 10.10.10.0/24 (Rw,async,no_root_squash)

Do the above changes, then execute: exportfs-a, so that the home/home and/usr/local two directory output sharing;

4root Login to the other three nodes, add the following content in the file/etc/fstab (that is, the boot automatically mount):

Node1:/home/home NFS Default 0 0

Node1:/usr/local/usr/local NFS Default 0 0

Re-execute Chkconfig netfs on, mount-t nfs-a

After completing the above steps, the node2,3,4 3 nodes should be able to share Node1 's/home and/usr/local directories, and use Df-h to validate them at any one node

5 Configure NIS server to share user information between nodes, here or Node1 as Server for NIS, install Ypserv and Yp-tools First, and then add under the/etc/sysconfig/network file: nisdomain= Mycluster (this NIS domain name is written according to its own circumstances)

Re-execution:

Chkconfig Ypserv on

/etc/init.d/ypserv restart

/usr/lib/yp/ypinit-m

That is, start the NIS service on boot and initialize the NIS database

6 Install the Ypbind and Yp-tools packages in the node2,3,4 node sequentially, add the Nisdomain=mycluster line to the/etc/sysconfig/network file, and then execute: Chkconfig ypbind on,/ Etc/init.d/ypbind restart

By default, NIS client Ypbind searches for NIS servers in a broadcast manner, or you can add a row ypserver Node1 to/etc/yp.conf to specify the NIS server directly

7 After configuring the service and client, you should use the command ypwhich,ypcat on the node2,3,4 node to verify that you can get the required information from the NIS server.

Ypwhich

Node1

Ypcat passwd

(should show Node1 's passwd information)

8 in order to be able to use information such as users and user groups in the NIS database, you need to modify the/etc/nsswitch.conf file to change the line as follows:

Passwd:files NIS

Shadow:files NIS

Group:files NIS

Hosts:files NIS DNS.

After completing these steps, all user accounts in Node1 can be used on other nodes;

Each time you add a new account, only need to do on the Node1, after adding the account, you need to run the following command in Node1 to refresh the NIS database, CD/VAR/YP;

The 9/usr/local directory is a shared directory for all nodes, so the installation of Mpich only needs to be installed in this directory, without having to install each node

Construction of Nfs+nis service under Linux cluster and simple installation of Mpich

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.