[Samba] samba share is symlink, symlink gets updated, samba doesn't catch the change
bjquinn at seidal.com
Mon Feb 2 15:23:26 MST 2015
I have a couple of samba shares that point to symlinks. Basically these are last night's copy of a bunch of data. The path changes every night (YYMMDD is in the path name), so I've just got one symlink that gets updated to the path with the latest date every night.
I was using an old Samba on OpenSolaris for a long time and this process was working. Using 3.6.23 on RHEL and although the symlink is getting updated to the new path every night, the share itself continues to go to what the link used to point to. The new server is about a week old, and so the data I see is from the night the server was built. That folder is still physically on the disk, but it's not what the symlink points to anymore. I've tried a service smb reload, and that didn't change anything. I also have a share that is a couple levels higher in the directory structure. When I navigate to the same symlink through that share and click on it, I get the contents of the updated link, not the old data. Seems that Samba's caching the absolute path of the symbolic link for the share and not updating it?
More information about the samba