Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Like Tree1Likes
I have been trying to mount NFS file system..tried different machines running Centos 6.4 and i've been running into one problem or the other...i have followed tutorials and have done ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2013
    Posts
    9

    Problems mounting NFS please help


    I have been trying to mount NFS file system..tried different machines running Centos 6.4 and i've been running into one problem or the other...i have followed tutorials and have done everything right i believe but i just keep getting errors..the funny part is mounting nfs is not consistent in my opinion..its like a lottery system..it works one day and doesnt the other...just tired of it


    I have tried 2 different VMs

    1st Centos 6.4 VM error
    Code:
    mount -v -t nfs -o 'vers=3' 192.168.1.34:/home/vm1/Desktop/nfs /home/vm1/Desktop/nfs-mount
    error
    Code:
    mount: special device 192.168.1.34:/home/vm1/Desktop/nfs does not exist
    now it does exist because exportfs gives me

    Code:
    /home/vm1/Desktop/nfs
                 192.168.1.34
    2nd Centos 6.4 VM error
    Code:
    mount -v -t nfs -o 'vers=3' 192.168.1.39:/home/vm1/Desktop/nfs /home/vm1/Desktop/nfs-mount

    error
    Code:
    mount.nfs: timeout set for Wed May  1 18:34:13 2013
    mount.nfs: trying text-based options 'vers=3,addr=192.168.1.39'
    mount.nfs: prog 100003, trying vers=3, prot=6
    mount.nfs: portmap query retrying: RPC: Program not registered
    mount.nfs: prog 100003, trying vers=3, prot=17
    mount.nfs: portmap query failed: RPC: Program not registered
    mount.nfs: requested NFS version or transport protocol is not supported
    now it does exist because exportfs gives me

    Code:
    /home/vm1/Desktop/nfs
                 <world>

    NOTE:

    Yes nfs and rpcbind(previously portmap) are all running and yes i added port 2049(nfs) and 111(rpc)
    I have even added extra ports from /etc/sysconfig/nfs like 662, 875, 892, 32769, 32803 pretty much all of the ports in that file and uncommented certain things...basically i have done it all....so why am i getting problem mounting this thing? Also realize i was successful one time before inwhich i pretty much did same thing as i have done now but for some reason this thing is more of a luck..one day it works the other it doesn't

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    583
    Are you using "selinux"? If so, you need to open up NFS stuff in selinux.

  3. #3
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Quote Originally Posted by alf55 View Post
    Are you using "selinux"? If so, you need to open up NFS stuff in selinux.
    You can test that theory by temporarily disabling SELinux:
    Code:
    setenforce 0

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738
    I would try these

    From client machine :
    Code:
    showmount -e <nfs-server-ipaddress>
    does it show you the exported dirs?

    If so, try mount it with -vvv option .
    mount -vvv -o 'vers=3' 192.168.1.34:/home/vm1/Desktop/nfs /home/vm1/Desktop/nfs-mount
    Can you telnet into nfs port from client machine ?

    Code:
    telnet server-ip 2049
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  5. #5
    Just Joined!
    Join Date
    May 2013
    Posts
    9
    Quote Originally Posted by Lakshmipathi View Post
    I would try these

    From client machine :
    Code:
    showmount -e <nfs-server-ipaddress>
    does it show you the exported dirs?
    Code:
    [root@vm1 ~]# showmount -e
    Export list for vm1.system.com:
    /home/vm1/Desktop/nfs 192.168.1.34
    [root@vm1 ~]# showmount -e 192.168.1.34
    Export list for 192.168.1.34:
    /home/vm1/Desktop/nfs 192.168.1.34
    If so, try mount it with -vvv option .
    Code:
    [root@vm1 ~]# mount -vvv -o 'vers=3' 192.168.1.34:/home/vm1/Desktop/nfs /home/vm1/Desktop/nfs-mount
    mount: fstab path: "/etc/fstab"
    mount: mtab path:  "/etc/mtab"
    mount: lock path:  "/etc/mtab~"
    mount: temp path:  "/etc/mtab.tmp"
    mount: UID:        0
    mount: eUID:       0
    mount: no type was given - I'll assume nfs because of the colon
    mount: spec:  "192.168.1.34:/home/vm1/Desktop/nfs"
    mount: node:  "/home/vm1/Desktop/nfs-mount"
    mount: types: "nfs"
    mount: opts:  "vers=3"
    final mount options: 'vers=3'
    mount: external mount: argv[0] = "/sbin/mount.nfs"
    mount: external mount: argv[1] = "192.168.1.34:/home/vm1/Desktop/nfs"
    mount: external mount: argv[2] = "/home/vm1/Desktop/nfs-mount"
    mount: external mount: argv[3] = "-v"
    mount: external mount: argv[4] = "-o"
    mount: external mount: argv[5] = "rw,vers=3"
    mount.nfs: timeout set for Thu May  2 03:15:10 2013
    mount.nfs: trying text-based options 'vers=3,addr=192.168.1.34'
    mount.nfs: prog 100003, trying vers=3, prot=6
    mount.nfs: trying 192.168.1.34 prog 100003 vers 3 prot TCP port 2049
    mount.nfs: prog 100005, trying vers=3, prot=17
    mount.nfs: trying 192.168.1.34 prog 100005 vers 3 prot UDP port 892
    192.168.1.34:/home/vm1/Desktop/nfs on /home/vm1/Desktop/nfs-mount type nfs (rw,vers=3)
    So now it works!...So what was the problem before?

    Can you telnet into nfs port from client machine ?

    Code:
    telnet server-ip 2049
    Code:
    [root@vm1 ~]# telnet 192.168.1.34 2049
    Trying 192.168.1.34...
    Connected to 192.168.1.34.
    Escape character is '^]'.

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738
    Code:
    So now it works!...So what was the problem before?
    Cool Don't ask me why It worked ! For a long time - I'm wondering why adding more verbose vvv option sometimes solves the mount issue.!

    My guess is - with more verbose option, some info passed between server & client which resulted in mount command success.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  7. #7
    Just Joined!
    Join Date
    May 2013
    Posts
    9
    Quote Originally Posted by Lakshmipathi View Post
    Code:
    So now it works!...So what was the problem before?
    Cool Don't ask me why It worked ! For a long time - I'm wondering why adding more verbose vvv option sometimes solves the mount issue.!

    My guess is - with more verbose option, some info passed between server & client which resulted in mount command success.
    And that is going to make me keep loosing my love for linux...i mean when will things become consistent? and work when it suppose to as opposed to keeping fingers crossed everytime?

  8. #8
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738
    Code:
    And that is going to make me keep loosing my love for linux...i mean when will things become consistent? and work when it suppose to as opposed to keeping fingers crossed everytime?
    Honestly, I think just adding -vvv shouldn't be answer. Other than that wild guess I mentioned previously, It makes no sense to me :P May be something with network improved in the mean time?
    IMHO,Linux is _the_ most consistent OS
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  9. #9
    Just Joined!
    Join Date
    May 2013
    Posts
    9
    Quote Originally Posted by Lakshmipathi View Post
    Code:
    And that is going to make me keep loosing my love for linux...i mean when will things become consistent? and work when it suppose to as opposed to keeping fingers crossed everytime?
    Honestly, I think just adding -vvv shouldn't be answer. Other than that wild guess I mentioned previously, It makes no sense to me :P May be something with network improved in the mean time?
    IMHO,Linux is _the_ most consistent OS
    After having to reinstall OS over and over and over again...i doubt it..i have only had one windows 7 install on main desktop and i have never had to reinstall..not once for like 3 years or close to that now...i am testing and preparing for my RHCSA sertification exam and i have reinstalled CentOS like 20 times over over different problems from system not rebooting to hanging to just ridiculous things i have no idea what happened and all i was doing is just running typical and general commands nothing crazy.

    I am starting to second guess linux..and its not my fault

  10. #10
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738
    Code:
    After having to reinstall OS over and over and over again...i doubt it..i have only had one windows 7 install on main desktop and i have never had to reinstall..not once for like 3 years or close to that now...i am testing and preparing for my RHCSA sertification exam and i have reinstalled CentOS like 20 times over over different problems from system not rebooting to hanging to just ridiculous things i have no idea what happened and all i was doing is just running typical and general commands nothing crazy.
    
    I am starting to second guess linux..and its not my fault
    What kind of problem you faced that prompted you to re-install again and again? Assume there is problem with network - re-installing OS will never going to help.
    Or may be something wrong with hard-wares ? Have you looked into logs for clue?

    I don't want to get involved in Windows-7 vs Linux argument I'm a very very happy Linux users for close to 10 years now.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Page 1 of 2 1 2 LastLast

Posting Permissions

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