Results 1 to 5 of 5

Thread: How to install and configure NFS on Server and Client

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Location
    Hyderabad
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default How to install and configure NFS on Server and Client

    How to install and configure NFS on Server and Client

  2. #2
    Junior Member
    Join Date
    Apr 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    first edit exports file
    vi /etc/exports
    exportfs -rservice
    nfs restart
    go to client side and enter below mentined command
    mount :location of the folder and folder name and mount point
    e.g:mount ind-harip:/root/swapnil ttt


    Hope this will work for you

    Thanks and Regards
    Swapnil Jain
    IT Support Staff.

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Default NFS server and client

    Dear, if you want to configure a NFS server, first of all you need to install Nfs server in ur computer. after that create a directory under super directory, edit the /etc/exports file, and enter the sahre directory name and client Ip and hostnamewith the help of(rw, sync) option. save and exit the file. in cleint PC brows the shared directory with the help of showmount -e IP of the server and enter you can view the direcotry which you sahred on server. after the you can mount it on tour server and user to nfs server

    Regards
    Jitender Rana

  4. #4
    Junior Member
    Join Date
    Feb 2014
    Location
    Nellore,Andhra pradesh,India
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Error: Warning-not started NFS kernel daemon

    Hello and greetings from a 53 year old semi-newbie,
    This is my first post in the nixcraft forums! I am using a Debian distro' which "IS NOT LISTED"(pardon the CAPS, they were only meant for highlighting) in distrowatch.com, and is named MX-14 Symbiosis,a marriage between antiX and Mepis, since 6 months and regularly use the xfce terminal(am actually fan of terminal language,still on the learning curve). When i boot in and the process is on, i see the above warning:Not started NFS kernel Daemon. Kindly clarify as to the seriousness or not of the warning,what it means and what steps i should take,if necessary! Please remember that i am past the half-way mark,age-wise and need guidance with clarity. Rest assured,i have Googled and Duckducked for any answers with no luck! Thank you folks,for patiently reading this post and i hope to make friends as i go along!TIA!

    regards,
    Dr.Sreedhav (i'll be happy, if all you young folks call me Doc!)
    LLL ->Long Live Linux

  5. #5
    Junior Member
    Join Date
    Aug 2014
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Hi all:


    For NFS sharing you need:


    - rpcbind
    - nfs-utils


    Some info of these packages:


    Name : rpcbind
    Arch : x86_64
    Version : 0.2.0
    Release : 9.el6
    Size : 95 k
    Repo : installed
    From repo : RHEL-LOCAL
    Summary : Universal Addresses to RPC Program Number Mapper
    URL :
    Code:
    nfsv4.bullopensource.org
    License : GPL
    Description : The rpcbind utility is a server that converts RPC program
    : numbers into universal addresses. It must be running on the
    : host to be able to make RPC calls on a server on that machine.


    Name : nfs-utils
    Arch : x86_64
    Epoch : 1
    Version : 1.2.3
    Release : 26.el6
    Size : 974 k
    Repo : installed
    From repo : RHEL-LOCAL
    Summary : NFS utilities and supporting clients and daemons for the
    : kernel NFS server
    URL :
    Code:
     sourceforge.net/projects/nfs
    License : MIT and GPLv2 and GPLv2+ and BSD
    Description : The nfs-utils package provides a daemon for the kernel NFS
    : server and related tools, which provides a much higher level
    : of performance than the traditional Linux NFS server used by
    : most users.
    :
    : This package also contains the showmount program. Showmount
    : queries the mount daemon on a remote host for information
    : about the NFS (Network File System) server on the remote host.
    : For example, showmount can display the clients which are
    : mounted on that host.
    :
    : This package also contains the mount.nfs and umount.nfs
    : program.
    So just install them (I use RHEL that is why i use yum):


    [root@localhost ~]# yum -y install nfs-utils.x86_64
    Loaded plugins: product-id, subscription-manager
    Updating certificate-based repositories.
    Unable to read consumer identity
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package nfs-utils.x86_64 1:1.2.3-26.el6 will be installed
    --> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: rpcbind for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libtirpc for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libevent for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-26.el6.x86_64
    --> Running transaction check
    ---> Package keyutils.x86_64 0:1.4-4.el6 will be installed
    ---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed
    ---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
    ---> Package libtirpc.x86_64 0:0.2.1-5.el6 will be installed
    ---> Package nfs-utils-lib.x86_64 0:1.1.5-4.el6 will be installed
    ---> Package rpcbind.x86_64 0:0.2.0-9.el6 will be installed
    --> Finished Dependency Resolution


    Dependencies Resolved


    ================================================== ==========================
    Package Arch Version Repository Size
    ================================================== ==========================
    Installing:
    nfs-utils x86_64 1:1.2.3-26.el6 RHEL-LOCAL 316 k
    Installing for dependencies:
    keyutils x86_64 1.4-4.el6 RHEL-LOCAL 39 k
    libevent x86_64 1.4.13-4.el6 RHEL-LOCAL 66 k
    libgssglue x86_64 0.1-11.el6 RHEL-LOCAL 23 k
    libtirpc x86_64 0.2.1-5.el6 RHEL-LOCAL 78 k
    nfs-utils-lib x86_64 1.1.5-4.el6 RHEL-LOCAL 67 k
    rpcbind x86_64 0.2.0-9.el6 RHEL-LOCAL 51 k


    Transaction Summary
    ================================================== ==========================
    Install 7 Package(s)


    Total download size: 640 k
    Installed size: 1.7 M
    Downloading Packages:
    (1/7): keyutils-1.4-4.el6.x86_64.rpm | 39 kB 00:00
    (2/7): libevent-1.4.13-4.el6.x86_64.rpm | 66 kB 00:00
    (3/7): libgssglue-0.1-11.el6.x86_64.rpm | 23 kB 00:00
    (4/7): libtirpc-0.2.1-5.el6.x86_64.rpm | 78 kB 00:00
    (5/7): nfs-utils-1.2.3-26.el6.x86_64.rpm | 316 kB 00:00
    (6/7): nfs-utils-lib-1.1.5-4.el6.x86_64.rpm | 67 kB 00:00
    (7/7): rpcbind-0.2.0-9.el6.x86_64.rpm | 51 kB 00:00
    ----------------------------------------------------------------------------
    Total 1.3 MB/s | 640 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libgssglue-0.1-11.el6.x86_64 1/7
    Installing : libtirpc-0.2.1-5.el6.x86_64 2/7
    Installing : rpcbind-0.2.0-9.el6.x86_64 3/7
    Installing : keyutils-1.4-4.el6.x86_64 4/7
    Installing : libevent-1.4.13-4.el6.x86_64 5/7
    Installing : nfs-utils-lib-1.1.5-4.el6.x86_64 6/7
    Installing : 1:nfs-utils-1.2.3-26.el6.x86_64 7/7
    Installed products updated.
    Verifying : rpcbind-0.2.0-9.el6.x86_64 1/7
    Verifying : libevent-1.4.13-4.el6.x86_64 2/7
    Verifying : nfs-utils-lib-1.1.5-4.el6.x86_64 3/7
    Verifying : libgssglue-0.1-11.el6.x86_64 4/7
    Verifying : 1:nfs-utils-1.2.3-26.el6.x86_64 5/7
    Verifying : keyutils-1.4-4.el6.x86_64 6/7
    Verifying : libtirpc-0.2.1-5.el6.x86_64 7/7


    Installed:
    nfs-utils.x86_64 1:1.2.3-26.el6


    Dependency Installed:
    keyutils.x86_64 0:1.4-4.el6 libevent.x86_64 0:1.4.13-4.el6
    libgssglue.x86_64 0:0.1-11.el6 libtirpc.x86_64 0:0.2.1-5.el6
    nfs-utils-lib.x86_64 0:1.1.5-4.el6 rpcbind.x86_64 0:0.2.0-9.el6


    Complete!
    Remember check your firewall (iptables) that you can permit the access from clients to server.


    Now one example:


    1- I made a share folder:


    mkdir /share


    2- I edited the /etc/exports file with this:
    #Note: i use vim, maybe you use nano, vi or another editor


    vim /etc/exports


    3- Put the path where the sharing folder is and who can access to it.


    #Note: this config will share the "share" folder only with the 192.168.56.0/24 network.
    /share 192.168.56.0/24(ro,sync)




    4- Save the file


    5- Restart the service:


    service nfs restart
    service rpcbind restart


    6 - To make these services enable when the system start:


    chkconfig nfs on
    chkconfig rpcbind on


    At the client side install the same packages and open the ports in the firewall (iptables). Try to see the share folder with this:


    #Note: For this example 192.168.56.10 is the IP of the server who shares the "share" folder.


    showmount -e 192.168.56.10


    If the command brings you something like:


    192.168.56.10:/share


    Everything is fine.


    Just mount the "share" folder in the client side, for example in /mnt:


    mount 192.168.56.10:/share /mnt


    Check it with this command:


    mount


    In the case you have problemas like:


    rpc mount export: RPC: Unable to receive; errno = No route to host


    1 - Check if the services are running


    service nfs status
    service rpcbind status


    2- Check the conectivity between server - client


    3- Check the ports:


    rpcinfo -p Server_IP


    #The ports must be enable in the firewall (iptables)


    4- Check in the client side if you can see the share folder:


    showmount -e Server_IP


    5- Change the /etc/sysconfig/nfs file. Remove the # from these lines:


    LOCKD_TCPPORT=32803
    LOCKD_UDPPORT=32769
    MOUNTD_PORT=892
    STATD_PORT=662


    6 - Add these ports to iptables: 111 TCP/UDP portmapper, 2049 nfsTCP/UDP, 32769 nlockmgr TCP/UDP, 32803 TCP/UDP, 892 nlockmgr TCP/UDP


    7- If you change something in iptables, nfs please restart the service:


    service nfs restart
    service rpcbind restart
    service iptables restart


    If you get this error:


    clnt_create: RPC: Program not registered


    Please check everything and check if the service for nfs is running.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to configure windows vpn client in NetScreen 5GT Router
    By chandra in forum Windows Xp/2000/2003 server administration
    Replies: 1
    Last Post: 21st November 2007, 11:27 AM
  2. OpenBSD configure change DNS name server IP address - DNS Client Resolution
    By rockdalinux in forum Getting started tutorials
    Replies: 0
    Last Post: 15th June 2007, 11:14 PM
  3. Configure install pureftp server ubuntu linux
    By jerry in forum Linux software
    Replies: 2
    Last Post: 12th June 2007, 09:55 AM
  4. Replies: 1
    Last Post: 21st December 2006, 03:47 AM
  5. Replies: 1
    Last Post: 18th July 2006, 12:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •