Operating System - HP-UX
1835069 Members
3397 Online
110073 Solutions
New Discussion

Re: link-unlink problem with HP-UX NFS

 
Jayanarayanan MN
New Member

link-unlink problem with HP-UX NFS

Hi,

We have product which uses directory interface to talk other applications. The core design is given below:
Interface :
OUTGOING(dir)
|
|
----READY(dir)
|
|
-----PROCESSING(dir)
|
|
-----COMPLETED(dir)

Any file placed in the READY directory is moved to PROCESSING(using a link() to READY and unlink() from PROCESSING). Then is it opened and read. The file is closed when after some processing. Then this files is moved to COMPLETED(a link() to COMPLETED and unlink() from PROCESSING ).

Our product runs on HP-UX 10.20 and the 'other application' runs on different platforms.

Problem:
When our product is on Hp-UX10.20 and other application is running on HP-UX11.x

The second unlink(moving from PROCESSING to COMPLETED ) does not do the work. The call, however, returns success hence the error check is of no use.
This problem does not happen when we uses SunOS5.6 or HP-UX10.20. Also the same configuration which misbehaves in above testing, works well in some other machines.

Could any one through some light? Is there any patch that is required for NFS between HP-UX 11 and HP-UX 10.20?
Thanks and regards
jayan
4 REPLIES 4
Andreas Voss
Honored Contributor

Re: link-unlink problem with HP-UX NFS

Hi,

instead of link() and unlink() you can use on HP-UX rename()
See man rename
Perhaps this solves your problem.

Regards
Lasse Knudsen
Esteemed Contributor

Re: link-unlink problem with HP-UX NFS

There is a known issue with NFS attribute caching and 11.00 wich could cause this behaviour.

You could try mounting the NFS-directory with option 'noac'.

Maybe the latest patch PHNE_22125 will fix this problem, but I am not sure (have made a call to HP)
In a world without fences - who needs Gates ?

Re: link-unlink problem with HP-UX NFS

Which version of NFS are your using ? In 10.20 the default version of NFS is NFS v2.0 and in HP 11.0 the default version is NFS v3.0.

Possibly in the newer version of NFS there is a bug. But on mounting in the client side you can always say which version you want.

Hope this helps
Jayanarayanan MN
New Member

Re: link-unlink problem with HP-UX NFS

Thanks for your replies.

There was a mistake in the question.

The file is opened when it is in the READY directory. Then it moved into PROCESSING then to COMPLETED. Descriptor is closed at this stage.

Regards
Jayan