Operating System - HP-UX
1748245 Members
3812 Online
108760 Solutions
New Discussion юеВ

Re: NFS from HP-UX to Linux

 
SOLVED
Go to solution
Tonatiuh
Super Advisor

NFS from HP-UX to Linux

I have my source directory in HP-UX 11.11. I have set /etc/exports as follows:
-
/data/LCTEST/TMP -rw=Ita1
/data/LCTEST/TMP -rw=Ita2
/data/LCTEST/TMP -rw=Ita3
-
And ejecuted the "exportfs -a".
-
/etc/hosts are alseo set to resolve Ita1, Ita2, Ita3 to the correct IPs.
-
I have mounted this filesystem from a Red Hat Enterprise Linux 3 Server, and I can read but no write from the Linux server.
-
Any idea about the problem?
23 REPLIES 23
Steven E. Protter
Exalted Contributor
Solution

Re: NFS from HP-UX to Linux

Shalom Tonatiuh,

Check the following:
/etc/exports settings on Linux. They can be quire restrictive by default.

tail -f /var/log/messages

on linux

try and nfs mount. Act on or post the errors or messages you see.

I've done what you wish to do, it should be no problem.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tonatiuh
Super Advisor

Re: NFS from HP-UX to Linux

Hello Steven,

My /etc/exports in linux is a blank file.

the /var/log/messages in linux does not report anything when I try to write on the NFS.

This is the error that linux reports me:

[oracle@ita1 pruebas]$ touch uvr
touch: creating `uvr': Permission denied
Dave Olker
HPE Pro

Re: NFS from HP-UX to Linux

Hello Tonatiuh,

Have you checked the directory permissions to see if they are what's stopping the writes from succeeding? Can you try (just as a test) opening up the directory permissions to something like "777" and see if the clients are then able to create files in the directory?

If that works, you should then decide what the proper directory permissions are for your environment/applications.

Let me know if opening up the directory permissions allowed writes/creates to succeed. If it doesn't the next step would be to collect a network trace of the failing write/create attempt (with a tool like ethereal) and posting the trace here for me to evaluate.

Regards,

Dave
I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Steven E. Protter
Exalted Contributor

Re: NFS from HP-UX to Linux

/etc/exports in linux is a blank file.

Well if you are trying to mount an NFS share on a Linux NFS server, you are going to need some content as in ex exports in the Linux.

But re-reading your post, I've done it the way you have written this post. Your title was misleading. NFS from HP-UX to Linux. In that case, /etc/exports on Linux can not be blank.

Here are the new diagnostics.

tail -f /var/adm/syslog/syslog.log

Attempt your mount from Linux to HP-UX.

Report the errors. Read the /etc/exports file on HP-UX and make sure its not restricting permissions to certain hosts or ip addresses.

Better yet post your /etc/exports file from HP-UX here.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
njia_1
Trusted Contributor

Re: NFS from HP-UX to Linux

Hi

I had this problem when I tried to do a RHEL3 to RHEL3 nfs mounting.

then I added the no_root_squash options to /etc/exports file, it works fine now. But looks like this option is not available on HPUX, have you tried to give root access to those 3 servers ?
Muthukumar_5
Honored Contributor

Re: NFS from HP-UX to Linux

Try to change -rw option to -root option. It will work. Read exportfs man page more.

--
Muthu
Easy to suggest when don't know about the problem!
Devender Khatana
Honored Contributor

Re: NFS from HP-UX to Linux

Hi,

Try
/data/LCTEST/TMP -root=lta1

/data/LCTEST/TMP -root=lta2

/data/LCTEST/TMP -root=lta3

It will surely work.

HTH,
Devender
Impossible itself mentions "I m possible"
Steve Lewis
Honored Contributor

Re: NFS from HP-UX to Linux

On Linux clients its not /etc/exports you should look at, but /etc/fstab

Thats the file which tells what to mount and where and with which options.

It may help to use your Linux gui to help mount the nfs filesystem.
See which options it puts into your fstab.

Reading Dave Olker's NFS tuning guide may help you. He does mention something about a -C option in rpc.lockd on the server side, when going from HP-UX to Linux. Whether you need that depends on your NFS version and patch level.

Tonatiuh
Super Advisor

Re: NFS from HP-UX to Linux

Hello Dave,

THe permision for that directory is now to 777 and the problem is still there.

Owner of source directory and owner of mounted remote host are same owner (oracle user).