Operating System - HP-UX
1834162 Members
2879 Online
110064 Solutions
New Discussion

Strange problem while exporting FS using exportfs

 
Amol Vaikar
Occasional Contributor

Strange problem while exporting FS using exportfs

Environment:

myhp12 / $ uname -a
HP-UX myhp12 B.11.11 U 9000/800 3799681168 unlimited-user license

myhp12 / $ cat /etc/exports
#/backups/SRT_LOC/653 -access=192.168.7.21,root=192.168.7.21,ro

/backups/SRT_LOC/653 -access="myhp10.rwgm1.com",root=192.168.7.21,ro

myhp12 / $ exportfs -a
exportfs error: only specify one of rw or ro.

Using IP address instead of the host name works fine. i.e. say, from the above /etc/exports if I uncomment the first line and comment the second, the exportfs command goes through.

Looks like the "rw" in the domain name is causing this problem.
Anyone seen this before? Or am I doing something wrong?
7 REPLIES 7
Tim Nelson
Honored Contributor

Re: Strange problem while exporting FS using exportfs

I think the conflict is between -access and ro.

Drop the ,ro at the end and test again.

If you want ro then change the -access to -ro

Amol Vaikar
Occasional Contributor

Re: Strange problem while exporting FS using exportfs

Yup, that seems to work.
Thanks! :)
But shouldn't it work either ways?
Tim Nelson
Honored Contributor

Re: Strange problem while exporting FS using exportfs

-access implies rw, by putting ro at the end there is now a conflict.

Amol Vaikar
Occasional Contributor

Re: Strange problem while exporting FS using exportfs

But in that case, it should fail when I replace the host name with its IP address as shown in the first string of my illustration, shouldn't it? But it works that way.

Thanks!
Rasheed Tamton
Honored Contributor

Re: Strange problem while exporting FS using exportfs

snips from man exportfs
access=[access_list][:access_list]
-hostname
The name of a host. With a server configured for DNS naming in the nsswitch "hosts" entry, any hostname must be represented as a fully qualified DNS name.

Currently HP-UX will allow a match for a non-fully qualified hostname; this HP only feature will be obsoleted in a later release of HP-UX.

& see the
DNS suffix section also.

SKR_1
Trusted Contributor

Re: Strange problem while exporting FS using exportfs

You have made entry for this server in DNS.
Give only the hostname, without full DNS name and then check.

Thanks

SKR
Amol Vaikar
Occasional Contributor

Re: Strange problem while exporting FS using exportfs

@Tim:
Thanks for your reply.
The workaround given by you does solve the error given by exportfs, but the result is not quite what I expect.
My new /etc/exports has:
/backups/SRT_LOC/653 - ro,access=myhp10.rwgm1.com,root=myhp10.rwgm1.com

But when i do just "exportfs", I get this output:
/backups/SRT_LOC/653 -access=ro,access=myhp10.rwgm1.com,root=myhp10.rwgm1.com

Please note that "ro" has gone to the access list.

@Rasheed:
Thanks for your reply.
I too had seen that in the man page. SO I am justified in using the FQDN, isnt it?

@SKR:
Thanks for your reply.
I get the same error even if my host name has a "rw" in it.