NFS problem - file has 1 other link -- unchanged (2426 Views)
Reply
Honored Contributor
Posts: 4,874
Registered: ‎09-20-2002
Message 1 of 5 (2,426 Views)
Accepted Solution

NFS problem - file has 1 other link -- unchanged

Hi all,

I've the problem that I can't change (zip) a file because of this message. I believe it's a stale nfs file ...
Can I find the 'other' link to this file?

Thanks
Volkmar
*** Say 'Thanks' with Kudos ***
Honored Contributor
Posts: 7,384
Registered: ‎04-04-2000
Message 2 of 5 (2,426 Views)

Re: NFS problem - file has 1 other link -- unchanged

Hi Vo,

I think you may need to use the -f option in gzip.

-f --force
Force compression or decompression even if the file has multiple
links or the corresponding file already exists, or if the
compressed data is read from or written to a terminal. If the
input data is not in a format recognized by gzip, and if the
option --stdout is also given, copy the input data without change
to the standard ouput: let zcat behave as cat. If -f is not
given, and when not running in the background, gzip prompts to
verify whether an existing file should be overwritten.

Best regards,
Robert-Jan
Honored Contributor
Posts: 4,030
Registered: ‎06-09-2004
Message 3 of 5 (2,426 Views)

Re: NFS problem - file has 1 other link -- unchanged

Hai,

If we export a file with link , NFS client will look the same link order.

SERVER: /exp_dir/test --> /var/tmp/test

CLIENT: /mnt_dir/test ---> It will try to access the client's /var/tmp/test file

We have to have the link files with in the exported directory

Regards,
Muthukumar
Easy to suggest when don't know about the problem!
Honored Contributor
Posts: 624
Registered: ‎07-14-1999
Message 4 of 5 (2,426 Views)

Re: NFS problem - file has 1 other link -- unchanged

the link can be found on the exported server .

either export the linked directrory as well or create the links locally .
Honored Contributor
Posts: 4,874
Registered: ‎09-20-2002
Message 5 of 5 (2,426 Views)

Re: NFS problem - file has 1 other link -- unchanged

Ok, thanks all -
I finally found the stale file with simple command: find / ".nfs*" :-)
(Sometimes it's good to sleep over a problem)

With fuser I found the process of this stale file and I killed it.
RJ's solution worked, but didn't show the stale file.

Muthukumar and Ashwani:
It was not a export problem, but nevertheless thanks

V.
*thread closed*
*** Say 'Thanks' with Kudos ***
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.