Linux (Ubuntu) by nfs mount the remote disk

demand

Two existing Linux Server, need Linux01 8T to the hard disk under the hanging Linux02;
linux01 hard disk:

Linux02 hard disk:

Mounting principle

By nfs-server will Linux01 as Server end, the release 8T hard to go out for Linux02 mount;

(Note on Linux01 have nfs-server services running, but also have to install nfs on Linux02)

Server mount operation

First published in hard disk to be mounted on Linux01, execute:

sudo vim / etc / exports 

and enter:
/ datadrive02 * (in the insecure, rw, Sync, no_root_squash, no_subtree_check) # / datadrive02 out for the need to mount a hard disk

Linux01 and then restart the nfs-server:

sudo service nfs-server restart

At this point Linux01 (publisher) is ready.

Client mount operation

(Linux02 Note that you must install the nfs)

After Linux01 ok, Linux02 simply execute:

Mount -t NFS 10.0.0.23:/datadrive02 the sudo / Data / nfs_8T 
# -t Mount the sudo NFS mount remote hard name (path) after local

Mount success.

 

Guess you like

Origin www.cnblogs.com/bigtreei/p/11278614.html