How to use NFS shared storage service? Take everyone to the practical operation

NFS shared storage service
open two centos system: 7-1 (server) and 7-2 (clients)
to add the service side 7-1 in a disk, 40G, after the restart to complete its configuration. Xshell remote connections 7-1 and 7-2 systems. The host name 7-1 and 7-2 are set to server and client. View the newly added disk
How to use NFS shared storage service?  Take everyone to the practical operation
to its sub-district, 40G, saved; then formatted sdb1 (centos7 file system xfs, centos6 for ext4).
How to use NFS shared storage service?  Take everyone to the practical operation
How to use NFS shared storage service?  Take everyone to the practical operation
Set it to automatically mount into the / etc / fstab edit, mount it to the next mnt directory
How to use NFS shared storage service?  Take everyone to the practical operation
configuration data, see the mounted state to re-read the fstab
How to use NFS shared storage service?  Take everyone to the practical operation
server was related to the installation package: Remote Procedure Call package and view Toolkit
How to use NFS shared storage service?  Take everyone to the practical operation
default set to boot from Kai, do not set can also be operated
How to use NFS shared storage service?  Take everyone to the practical operation
into the NFS configuration file / etc / exports edit, save and exit the editor
How to use NFS shared storage service?  Take everyone to the practical operation
to open NFS service and rpcbind system services (access remote resources software services), turn off the firewall
How to use NFS shared storage service?  Take everyone to the practical operation
to see NFS server to provide out of the shared directory
How to use NFS shared storage service?  Take everyone to the practical operation
back to 7-2 clients, turn off the firewall, etc., install httpd service, the site of the site in /var/www.html file
How to use NFS shared storage service?  Take everyone to the practical operation
to a shared directory mnt mount out of the site to the next site, the first method of
How to use NFS shared storage service?  Take everyone to the practical operation
the second method, automatic mount, or editing at etc / fstab, after editing and re-read the data network state view
How to use NFS shared storage service?  Take everyone to the practical operation
How to use NFS shared storage service?  Take everyone to the practical operation
in var / www / html edit html page, which is written on this is nfs web content, open httpd service, direct your browser to access
How to use NFS shared storage service?  Take everyone to the practical operation
How to use NFS shared storage service?  Take everyone to the practical operation
files stored on a local or remote server, the server back to 7-1, see mnt directory. I found in html page, which is typical of remote network storage.
How to use NFS shared storage service?  Take everyone to the practical operation
Assuming the server then suddenly goes down, the client operating stuck, how to do it? First stop at the end of the service nfs services, to produce the phenomenon down
How to use NFS shared storage service?  Take everyone to the practical operation
to view the client 7-2, directly stuck
How to use NFS shared storage service?  Take everyone to the practical operation
this time, we'll open a terminal 7-2 tty (control number) number]
How to use NFS shared storage service?  Take everyone to the practical operation
Enter the command umount -LF (lowercase l, for 1 and to the digital) dismount.
How to use NFS shared storage service?  Take everyone to the practical operation
Nutrition Express: When we encounter a sudden case of NFS server is down, the client will be directly stuck phenomenon, then, we need to re-open a terminal, use umount -lf forcibly release the busy file system, a small partner you remember it? ? ?

Guess you like

Origin blog.51cto.com/14475593/2436599