System Administration
Showing results for 
Search instead for 
Do you mean 

NFS problem - file has 1 other link -- unchanged

SOLVED
Go to Solution
Honored Contributor Honored Contributor

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 ***
1 ACCEPTED SOLUTION
Honored Contributor Honored Contributor

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
4 REPLIES
Honored Contributor Honored Contributor

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 Honored Contributor

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 Honored Contributor

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 Honored Contributor

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 ***