LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nfs manual mount clientside failure (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-manual-mount-clientside-failure-891955/)

bloodyscript 07-15-2011 05:36 PM

nfs manual mount clientside failure
 
/etc/exports
Code:

/home/bludiescript/tv-shows 192.168.1.127(ro) 192.168.1.38(ro)
/home/bludiescript/shares 192.168.1.127(rw) 192.168.1.38(rw)

portmap
Code:

ps -ef|grep portmap
root    26073 25801  0 15:31 pts/0    00:00:00 grep --colour=auto portmap

rpcinfo
Code:

rpcinfo -p
  program vers proto  port  service
    100000    4  tcp    111  portmapper
    100000    3  tcp    111  portmapper
    100000    2  tcp    111  portmapper
    100000    4  udp    111  portmapper
    100000    3  udp    111  portmapper
    100000    2  udp    111  portmapper
    100024    1  udp  57081  status
    100024    1  tcp  57282  status
    100005    1  udp  59019  mountd
    100005    1  tcp  55508  mountd
    100005    2  udp  60320  mountd
    100005    2  tcp  56712  mountd
    100005    3  udp  49019  mountd
    100005    3  tcp  55189  mountd
    100003    2  tcp  2049  nfs
    100003    3  tcp  2049  nfs
    100003    4  tcp  2049  nfs
    100227    2  tcp  2049  nfs_acl
    100227    3  tcp  2049  nfs_acl
    100003    2  udp  2049  nfs
    100003    3  udp  2049  nfs
    100003    4  udp  2049  nfs
    100227    2  udp  2049  nfs_acl
    100227    3  udp  2049  nfs_acl
    100021    1  udp  44459  nlockmgr
    100021    3  udp  44459  nlockmgr
    100021    4  udp  44459  nlockmgr
    100021    1  tcp  41851  nlockmgr
    100021    3  tcp  41851  nlockmgr
    100021    4  tcp  41851  nlockmgr

showmount from client
Code:

    showmount -e 192.168.1.32
    Export list for 192.168.1.32:
    /home/bludiescript/share    192.168.1.127(rw)
    /home/bludiescript/tv-shows    192.168.1.127(ro)

ping server from client
Code:

    --- 192.168.1.32 ping statistics ---
    50 packets transmitted, 50 received, 0% packet loss, time 49000ms
    rtt min/avg/max/mdev = 0.111/0.184/0.882/0.138 ms

mounting nfs share on client
Code:

mount -v 192.168.1.32:/home/bludiescript/tv-shows /home/hiawatha/Desktop/stuff/sabayon_tv-shows
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Sat Jul 16 06:47:27 2011
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.32,clientaddr=192.168.1.5'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.32:/home/bludiescript/tv-shows

var/log/messages from server
Code:

Jul 16 09:30:45 sabayon kernel: [35124.419768] nfsd: last server has exited, flushing export cache
Jul 16 09:30:45 sabayon rpc.mountd[10064]: Version 1.2.3 starting
Jul 16 09:30:45 sabayon kernel: [35124.547219] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Jul 16 09:30:45 sabayon kernel: [35124.547252] NFSD: starting 90-second grace period
Jul 16 09:30:45 sabayon sm-notify[10081]: Version 1.2.3 starting
Jul 16 09:30:45 sabayon sm-notify[10081]: Already notifying clients; Exiting!
Jul 16 09:30:48 sabayon NetworkManager[7118]:    keyfile: updating /etc/NetworkManager/system-connections/Auto eth0

i had to edit this post since it was full of rambling nonsense. and hopefully it is better now :)

ive been trying to setup nfs share across my network. i have 3 boxes one mac which uses samba to share to the 2 sabayon linux boxes which does work. however the 2 linux boxes cant share with each other or the mac. i have tried differnt variants of the export file such as 192.168.0.0/8, 192.168.1.0/24, *, sasquatcheian etc... after any change i execute etc/init.d/nfs and exportfs -ra, i have rebooted both computers several times. i setup reserved ip's on my routers lan setup page for each computer. 192.168.1.32 is my server 192.168.1.127 is my client along with 192.168.1.38 the mac.
i disabled the firewall on the server and the client has no firewall. to my avail everything i have thought to do i did and has all failed. any help would be greatly appreciated thank you.

bloodyscript 07-15-2011 05:55 PM

the user id and group id on server and client both match as well. and in the mounting code i noticed the client ip changed
Quote:

mount.nfs: trying text-based options 'vers=4,addr=192.168.1.32,clientaddr=192.168.1.5'
thats the reason i reserved the ip's i noticed that and changed the ip to the appropriate one that the exports file states.

ok so i got it to mount on my sabayon client 192.168.1.127
[CODE]mount -v -o 'vers=3' 192.168.1.32:/home/bludiescript/tv-shows /home/hiawatha/Desktop/stuff/sabayon_tv-shows
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Sat Jul 16 15:39:21 2011
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.32'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.32 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.32 prog 100005 vers 3 prot UDP port 56967
192.168.1.32:/home/bludiescript/tv-shows on /home/hiawatha/Desktop/stuff/sabayon_tv-shows type nfs (rw,vers=3)
[CODE]

now the issue is on the mac when i do the command [CODE]sudo showmount -e it give a rpc authentication failure.[CODE] rpcinfo -p gives[CODE] rpcinfo -p
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
[CODE]

should i now make a new thread on a mac forum?


All times are GMT -5. The time now is 05:56 PM.