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
to its sub-district, 40G, saved; then formatted sdb1 (centos7 file system xfs, centos6 for ext4).
Set it to automatically mount into the / etc / fstab edit, mount it to the next mnt directory
configuration data, see the mounted state to re-read the fstab
server was related to the installation package: Remote Procedure Call package and view Toolkit
default set to boot from Kai, do not set can also be operated
into the NFS configuration file / etc / exports edit, save and exit the editor
to open NFS service and rpcbind system services (access remote resources software services), turn off the firewall
to see NFS server to provide out of the shared directory
back to 7-2 clients, turn off the firewall, etc., install httpd service, the site of the site in /var/www.html file
to a shared directory mnt mount out of the site to the next site, the first method of
the second method, automatic mount, or editing at etc / fstab, after editing and re-read the data network state view
in var / www / html edit html page, which is written on this is nfs web content, open httpd service, direct your browser to access
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.
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
to view the client 7-2, directly stuck
this time, we'll open a terminal 7-2 tty (control number) number]
Enter the command umount -LF (lowercase l, for 1 and to the digital) dismount.
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? ? ?
How to use NFS shared storage service? Take everyone to the practical operation
Guess you like
Origin blog.51cto.com/14475593/2436599
Ranking