Operating System - Linux
1828983 Members
2315 Online
109986 Solutions
New Discussion

exportfs: No host name given

 
SOLVED
Go to solution
Carme Torca
Super Advisor

exportfs: No host name given

Hi,
I have to export one directory in one server.
I put in /etc/exports
#
/export/htdocs/pladegovern hppz09(rw,async) sunz27(rw,async) sunz42(rw,async)

and when I do, it returns me, this error...
Could anyone help me?

Thanks,
Carmen.

# exportfs -a
exportfs: No host name given with /export/htdocs/pladegovern (rw,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(rw,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning
Users are not too bad ;-)
2 REPLIES 2
Muthukumar_5
Honored Contributor
Solution

Re: exportfs: No host name given

Hostnames of

hppz09
sunz27
sunz42

are not resolved by NFS server.

You can check as,

nslookup

It is good to keep Fully Qualified Domain Name there. IF you see man exports, there are four Machine Name Formats given.

So try as,

hostname.domainname.com


TRy to check resolvation as,

--- /etc/nsswitch.conf ---
hosts: dns files

--- /etc/resolv.conf ---
domain yourdomain.com
nameserver xx.xx.xx.xx

Check resolvation now as,

nslookup FQDN ( hostname.domainname.com )

If success then you can NFS action there on /etc/exports file.

HTH.
Easy to suggest when don't know about the problem!
Ross Minkov
Esteemed Contributor

Re: exportfs: No host name given

Carme,

In case you use NIS, then you can create a netgroup in NIS and use it in the /etc/exports file with the following syntax -- @netgroup. This simplifies management in case you have many NFS servers and they are all part of the NFS environment.

Regards,
Ross