Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ NFS installation process under the CentOS     - Ubuntu 14.04 / 14.10 how to install FFmpeg 2.5.1 (Linux)

- DOM event handlers add notes (Programming)

- 8 Docker knowledge you may not know (Server)

- Oracle ordinary users show parameter method (Database)

- DBCA Error: ORA-19809: limit exceeded for recovery files process (Database)

- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)

- Ubuntu 14.04 compile and install Apache (Server)

- CentOS How quickly customize kernel binary RPM package (Linux)

- Server Security Analysis attack on Linux (Linux)

- Compile and install LNMP under CentOS 6.5 (Server)

- Binary search is really easy as you think you do (Programming)

- Shutdown - an advanced shutdown artifact (Linux)

- Ubuntu 12.04 install RTL8723BE wireless network card driver (Programming)

- Linux how to handle file names that contain spaces and special characters (Linux)

- RedHat 6.5 installation and deployment Openfire (Server)

- Linux Proc File System Experiment (Linux)

- CentOS 6.5 can not connect to the network under VMware (Linux)

- Sleuth Kit: used to analyze a disk image and restore files open source forensics tools (Linux)

- Talk about the Linux ABI compatibility Application (Linux)

- ASP.NET 5 (vNext) Linux deployment (Server)

 
         
  NFS installation process under the CentOS
     
  Add Date : 2017-03-26      
         
         
         
  Two hosts are CentOS system, host names are node0 and node1, node0 The IP 10.141.4.36, node1 The IP 10.141.4.39, both hosts are using the user name cluster. node0 as an NFS server side, node1 as an NFS client.

1. Perform the following operation on node0 and node1:

Add the following to the / etc / hosts file:

10.141.4.36 node0
10.141.4.39 node1

2. node0 configuring NFS server will shut down the firewall and permanently closed:

sudo service iptables stop
sudo chkconfig iptables off

View the status of rpcbind and nfs:

sudo service rpcbind status
sudo service nfs status

If the results show does not start, start, and set to boot:

sudo service rpcbind start
sudo service nfs start
sudo chkconfig rpcbind on
sudo chkconfig nfs on

Create a shared directory:

mkdir / home / cluster / mirror

Add to / etc / exports file the following lines (note no spaces between brackets each configuration item, in addition no_root_squash configuration items that must, otherwise when the NFS client to mount the shared directory, there will be the problem of insufficient permissions ):

/ Home / cluster / mirror node1 (rw, async, no_root_squash)

Validate the configuration:

sudo exportfs -rv

3. node1 configure NFS Client

View to mount folder:

showmount -e node0

Create the mount point:

mkdir / home / cluster / mirror

Mount the shared directory node0:

sudo mount -t nfs node0: / home / cluster / mirror / home / cluster / mirror

Check whether the mount was successful:

df

Set the boot automatically mount, add the following line to the /etc/rc.local file, to note here is usually set boot automatically mount file systems are configured through the / etc / fstab file to achieve, but because the system boot process, implementation of this document earlier than network enabled, so NFS can not automatically mount the boot configuration file to achieve this:

mount -t nfs -o nolock node0: / home / cluster / mirror / home / cluster / mirror

Reboot the system, if successfully mounted the node0 the / home / cluster / mirror directory, the installation was successful.
     
         
         
         
  More:      
 
- JDK installation under CentOS (Linux)
- How to use the TF / SD card making Exynos 4412 u-boot boot disk in Ubuntu (Linux)
- Revised OpenJDK Java Memory Model (Programming)
- Linux5.8 installed phpMyAdmin was unable to issue related php-mcrypt (Database)
- Linux file content inspection - cat, tac, no, more, less, head, tail, od (Linux)
- CentOS 6.4 OpenNebula installation (Linux)
- Linux Crontab Timing task command Detailed (Linux)
- Oracle 11g R2 RAC RMAN backup script example (Database)
- MySQL separation Amoeba achieve literacy (Database)
- hexdump Linux command (Linux)
- Linux Getting Started tutorial: GNU C and Vim will fight the C / C ++ IDE semi-automatic (Linux)
- CentOS use wget (Linux)
- CentOS 7 x64 compiler installation Tengine 2.0.3 Comments (Server)
- Volatile keyword in C language understanding (Programming)
- Download Manager uGet 2.0 installed in Debian, Ubuntu, Linux Mint and Fedora (Linux)
- Tsunami-udp accelerated network transmission (Linux)
- Installation and use Docker under Ubuntu 14.04 (Linux)
- Using IntelliJ IDEA Import Spark Spark latest source code and compile the source code (Linux)
- Ubuntu How to install Pacman (Linux)
- To install and deploy PHP environment under the CentOS (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.