Re: Error mount NFS -- nfs4_get_rootfh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/02/2012 04:02:55 PM, Ed Greshko wrote:
> On 01/03/2012 06:20 AM, Geoffrey Leach wrote:
> > On 01/02/2012 01:19:37 PM, Ed Greshko wrote:
> >> On 01/03/2012 02:51 AM, Geoffrey Leach wrote:
> >>> mount -v -v -v -t nfs4 mtranch://nfs4exports/home /mtranch-home
> >> Cats having me up for a moment again....
> >>
> >> Your mount command isn't what it should be....
> >>
> >> When you mount on the client you don't specify /nfs4exports .....
> >>
> >> It should be
> >>
> >> mount -v -v -v -t nfs4 mtranch:/home /mtranch-home
> >>
> > Corrected. Thanks. Did not make a differenc3e to the RPC errors, 
> but
> 
> > perhaps that is not too surprising.
> >
> > And my thanks to the Cats.
> >
> 
> OK......
> 
> I wrote out what I would have done maybe you can run through it and
> double check things?


OK. I'm going to intersperse my reply.

> Make sure relevant nfs services are enabled....
> 
> ** On server....
> 
> systemctl is-enabled nfs-lock.service
> systemctl is-enabled nfs-server.service
> systemctl is-enabled nfs-idmap.service

nfs-idmap.service         loaded active   running       NFSv4 ID-name 
mapping daemon
nfs-lock.service          loaded active   running       NFS file 
locking service.
nfs-server.service        loaded active   running       NFS Server

Firewall disabled.  Shhh - don't tell anybody.

> Also, make sure Port 2049 is open on the firewall

on client, disabled. Verified.

> ** On client
> 
> systemctl is-enabled nfs-idmap.service
> systemctl is-enabled nfs-lock.service

Verified

> Then go on to configure the shares....
> 
> ** Server....
> 
> mkdir -m 1777 /nfs4exports
> cd /nfs4exports
> mkdir -m 1777 home
> mount --bind /home home

drwxrwxrwt  5 root root 4096 Dec 31 15:34 /nfs4exports/
drwxrwxrwt. 6 root root 4096 May 18  2011 /nfs4exports/home/
drwxrwxrwt  2 root root 4096 Dec 31 15:34 /nfs4exports/tmp/
drwxrwxrwt  2 root root 4096 Dec 27 16:20 /nfs4exports/usrlocal/
root@mtranch[14]->umount /nfs4exports/tmp/ /nfs4exports/usrlocal/
umount: /nfs4exports/tmp/: not mounted
umount: /nfs4exports/usrlocal/: not mounted

> To make the bind effective a boot time edit /etc/fstab to contain
> 
> /home               /nfs4exports/home   none    rw,bind 0 0

#tail /etc/fstab 
/home           /nfs4exports/home       none    rw,bind 0   0 

> vi /etc/idmapd.conf      (Modify "Domain" line, making sure to remove
> leading #)

# The default is the host's DNS domain name.
Domain = mtranch.mtranch.com

This should be just mtranch.com, yes?

> vi /etc/exports    (Added 2 lines)
> 
> /nfs4exports       
> 192.168.0.0/24(ro,sync,insecure,root_squash,no_subtree_check,fsid=0)
> /nfs4exports/home  
> 192.168.0.0/24(rw,nohide,sync,insecure,root_squash,no_subtree_check)

#cat /etc/exports
/nfs4exports        192.168.0.0/24
(ro,sync,insecure,root_squash,no_subtree_check,fsid=0) 
/nfs4exports/home   192.168.0.0/24
(rw,nohide,sync,insecure,root_squash,no_subtree_check) 

> exportfs -rv

#exportfs -rv
exporting 192.168.0.0/24:/nfs4exports/home
exporting 192.168.0.0/24:/nfs4exports

> 
> ** Client....
> 
> mkdir /mtranch-home

Verified

> Then just mount....

Connection refused, as before

No actual output from the client, as I'm reduced to sneakernet at this 
point.









-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux