Re: Error mount NFS -- nfs4_get_rootfh

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

 



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?

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

Also, make sure Port 2049 is open on the firewall

** On client

systemctl is-enabled nfs-idmap.service
systemctl is-enabled nfs-lock.service

Then go on to configure the shares....

** Server....

mkdir -m 1777 /nfs4exports
cd /nfs4exports
mkdir -m 1777 home
mount --bind /home home

To make the bind effective a boot time edit /etc/fstab to contain

/home               /nfs4exports/home   none    rw,bind 0 0

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

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)

exportfs -rv


** Client....

mkdir /mtranch-home

Then just mount....

Note....I just copied my information....so the IP addresses may not be
correct.

-- 
A common mistake that people make when trying to design something
completely foolproof was to underestimate the ingenuity of complete
fools. -- Douglas Adams in "Mostly Harmless
-- 
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