Network File System Services common to NFS SMB

Source: Internet
Author: User
Tags php error

Network File System Services common to NFS SMB


The primary function of the RPC service is to record the port number for each NFS feature and to pass the information corresponding to that port and function to the NFS customer service for the requested data when requested by the NFS Customer service client.


Process:

1. Start the RPC service first

2, and then start the NFS service

3,nfs the port that the service initiates to RPC registration

4, Customer Service Request NFS Services

5,RPC return port to customer service side


Environment Construction:

Service end for NFSServer customer nfsclient


The NFS service requires an installed package:

Yum Install Nfs-utils-y: NFS Service Main program

Yum Install Portmap-y

Yum Install Rpcbind-y


NFS Service side:

#/etc/exports NFS Configuration file

# Vim/etc/exports Editing an NFS configuration file

/data10.0.0.0/24 (Rw,sync)

# Systemctl Reload NFS Reload NFS Service

# showmount-e Localtost View


Customer Service side:

Install the Rpcbind service and start the Rpcbind service

Check if NFS on the server is OK

# SHOWMOUNT-E +serverip

Mount the specified type is NFS, the secondary mount is temporary mount, if you want to permanently mount the write/etc/fstab

# mount-t NFS Serverip:/data/mnt


If you want to write something in it, you have to have permission to write.

The NFS user is nfsnobody so add nfsnobody to the owning user for this directory

# Chown-r Nfsnobody.nfsnobody/data

It's OK.


NFS Customer service mount hangs on optimized

Customer-side mount: Security optimization

# mount-t Nfs-o nosuid,noexec,nodev,rw serverip:/data/mnt --Specifies the type of nfs-o specified parameter above is the security parameters, rw read and Write permissions


View default mount parameters for NFS MNT client

# grep Mnt/proc/mounts

=======================================================================================

Performance optimization

Disk Test Commands:

# time DD If=/dev/zero of=/mnt/testfile bs=9k count=20000

==================================================================================

Production scenario NFS shared storage optimization:

1. Hardware: SAS/SSD disk, buy multiple pieces, raid0/radi10

2. Service side: async,all_squash,anonuid=555,anongid=555

3. Client Mount: Rsize,wsize,noatime,nodirtime,nosuid,noexec,soft

4. Kernel optimization

==================================================================================

# cat/etc/rc.local rc.local is all boot-up files


UMOUNT-LF/MNT--Force unload mount point

Exportfs--No configuration file share directory

Rpcifo--View RPC service

Var/lib/nfs/rmtab--record those customer service side Mount NFS Services

=======================================================================================

AutoFS He can be implemented when the user accesses the automatic mount, if no user access, he will automatically uninstall

Install: # yum Install autofs-y


Start: # systemctl start AutoFS


Edit config file: #/etc/auto.master

Add/mnt/etc/auto.misc--timeout 10 Specify mount point and map path, auto Exit For more than 10 seconds


Edit config file: #/etc/auto.misc

Add Nfsdata-fstype=nfs 192.168.54.130:/data inside

Name type IP and directory on server side




Then visit:

# Cd/mnt/nfsdata--found to go in

# df-h--found the mount point.

=====================================================================

Cat/etc/redhat-release viewing system versions in Linux systems


Rpcinfo-p localhost Specifies to view the local PRC port

=====================================================================



Alex will update the following PHP error resolution for you, I hope that the above blog for Linux enthusiasts to use ~ ~


Linux Operational Communication Group: 288746884


This article is from the "11794562" blog, please be sure to keep this source http://11804562.blog.51cto.com/11794562/1899632

Network File System Services common to NFS SMB

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.