I have a Ruby script written by someone else that creates hard links for files located in the main folder, placing them into the subfolder using:
File.link('/mnt/server10/file1.lzo', '/mnt/server10/subfolder10/file2.lzo')
I have 10 identical Windows servers' shares mounted on the Linux server and 9 out of 10 mount points have no issues with the above command. However, one mount point is having an issue with the above command and generates the following error:
Hardlink failed: No such file or directory - /mnt/server10/file1.lzo or /mnt/server10/subfolder10/file1.lzo
I have no problem creating the link manually:
ln /mnt/server10/file1.lzo /mnt/server10/subfolder10/file1.lzo
All permissions and settings are identical.
The Ruby script that creates hard links is the same for all mount points. The mount points have identical permissions on the Linux and Windows sides.