Linux NFS Installation record

Source: Internet
Author: User

Mark's


Installation:

Yum-y Install Nfs-utils Rpcbind


Server for NFS configuration:

/home/nfs 192.168.150.* (Rw,sync,no_root_squash)


/home/nfs local path that can be accessed by other users

192.168.150.* users who are linked under this IP can access the

(Rw,sync,no_root_squash) PS: There is no space here and IP address

RW: Read and Write permissions

Sync: Files are written to both the hard disk and memory

No_root_squash:root user is compressed as the root user of NFS server


Start the service:

Service NFS Start

If the following error occurs:

Starting NFS services: [OK]
Starting NFS Quotas:cannot register service:RPC:Unable to receive; errno = Connection refused
Rpc.rquotad:unable to register (Rquotaprog, Rquotavers, UDP).
[FAILED]
Starting NFS mountd: [FAILED]
Starting NFS daemon:rpc.nfsd:writing FD to Kernel Failed:errno 111 (Connection refused)
Rpc.nfsd:unable to set any sockets for NFSD
[FAILED]

RH Operating System After version 6.0 does not have the Portmap service to control the startup of RPC, due to NFS and Nfslock boot needs to register RPC, RPC does not start will be an error.

Workaround: Start Rpcbind&rpcidmap rpcbind is the default RPC service after version 6.0, so start with NFS first. If you do not start Rpcidmap, you will create a mapping error for user rights, and the user's permissions appear to be a string of numbers.


[[email protected] ~]#/etc/init.d/rpcbind start
Starting rpcbind: [OK]
[[email protected] ~]#/ETC/INIT.D/RPCIDMAPD start
Starting RPC IDMAPD: [OK]
[[email protected] ~]#/etc/init.d/nfs start
Starting NFS services: [OK]
Starting NFS quotas: [OK]
Starting NFS mountd: [OK]
Starting NFS daemon: [OK]

Referenced from: http://www.linuxyw.com/a/yunweiguzhang/20130520/405.html



Client Startup:

/etc/init.d/rpcbind start


Mount

Mount-t NFS 192.168.150.130:/home/nfs


Very simple.


Reference: http://www.it165.net/admin/html/201405/3177.html

Linux NFS Installation record

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.