Linux Data Backup (NFS mapping method)--Problem debugging

Source: Internet
Author: User

configuration article:http://jimann.blog.51cto.com/3295893/1918945


This article is used to summarize the problems that occur during the configuration process, and the environment is the same as the configuration


    1. No portmap-* server

[[email protected] backup]# yum list-y portmap-* loaded plugin: fastestmirrorloading mirror speeds from cached Hostfile * Base:mir rors.tuna.tsinghua.edu.cn * extras:mirrors.aliyun.com * updates:mirrors.sohu.com error: No matching packages can be listed

Cause: The service was renamed Rpcbind

Workaround: Install the Rpcbind service to

2./etc/exports file Modification No effect

Cause: Server NFS rpcbind Two service boot order errors cause

Workaround:

Execute UPDATE command: EXPORTFS-RV

Restart NFS Services: Service NFS Restart

Authentication method: Client execution Command SHOWMOUNT-E 192.168.1.1

3. Client execution mount command prompt error, no route to host

[Email protected]:~# showmount-e 10.66.0.140clnt_create:rpc:port mapper failure-unable to Receive:errno 113 (No rout E to host)

Cause: Server-side firewall and SELinux throttling

Workaround: Turn off the firewall

[Email protected] backup]# iptables-p INPUT Accept [[email protected] backup]# iptables-p FORWARD ACCEPT [email Protec Ted] backup]# iptables-p OUTPUT ACCEPT [[email protected] backup]# iptables-f

Turn off SELinux

Setenforce 0

This method is a temporary method, if you need to permanently view another blog:

http://jimann.blog.51cto.com/3295893/1919259


4. Client execution mount command prompt error "Access denied by server while mounting"

1, the use of illegal ports, that is, the use of more than 1024 ports.

This error can be confirmed by checking the log:

[[Email protected]~/]# cat/var/log/messages | grep mount

Jan 2 12:49:04 localhost mountd[1644]: refused mount request from 192.168.0.100 for/home/nfsshare/(/home/nfsshare): Ille Gal Port 1689

Workaround:

Modify the configuration file/etc/exports, add the insecure option, restart the NFS service, and then try to mount it.

/home/nfsshare/* (Insecure,rw,async,no_root_squash)

2. NFS Version Issue

To edit the/etc/sysconfig/nfs file, locate the following:

#Turn off V2 and v3 protocol support #RPCNFSDARGS = "-N 2-n 3" #Turn off v4 protocol Support #RPCNFSDARGS = "-N 4"/* put this sentence in front of the # The number is removed */

Last save, restart the NFS service, and then try to mount it, if it is not mounted, try adding the-o nolock parameter to the back.

Note: In my debugging process, the modification is the most hesitant, because my profile does not have the # number of lines, not dare to modify, but eventually manually plus-N 4 content, the problem solved -to cry no tears, for this I toss a half day

3, check whether the client Mount directory has read and write permissions, add the appropriate permissions.

4, the NFS server on the/etc/hosts set the client machine IP corresponding domain name, can be removed.



Linux Data Backup (NFS mapping method)--Problem debugging

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.