Error mount NFS -- nfs4_get_rootfh
Ed Greshko
Ed.Greshko at greshko.com
Tue Jan 3 00:02:55 UTC 2012
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
More information about the users
mailing list