How does Primocache handle Symbolic Links?
Posted: Wed Jul 20, 2016 8:27 pm
I've been doing some re-configuring of cache tasks, and knowing I have some symbolic links between my boot drive (spindle HDDs in RAID) and my SSD drive (the target, G:), I wondered how Primocache handled them. Supposedly symlinks are transparent to the OS.
My source folder is on the SSD drive (since it is the faster of the two), and the symlink folder is on the C: drive. I can't move the original location for the folder away from C: since the software expects it to be there (like so many programs do).
When the software goes to read those files, it is redirected to G: to get the data. But Primocache is intercepting the reads/writes, so does it know about symlinks? Will it cache blocks it *thinks* are on the C: drive, or will it know and cache blocks from the SSD (G:) drive instead?
I'm asking primarily since I have a L2 Task to cache the C: drive, which uses a small partition on the SSD for L2. That's the same drive that the symbolic link points to. So Primocache goes to C: for data, is redirected to G: (the SSD), and might put the information into L2 - which is also on the SSD. That seems like a very inefficient roundabout way for the data to travel, since it ends up being copied to the same physical disk.
If Primocache is smart enough to know it's being redirected, then it wouldn't ever cache the data from the symbolic link folder into L2. I just don't know if that's true in this case.
My source folder is on the SSD drive (since it is the faster of the two), and the symlink folder is on the C: drive. I can't move the original location for the folder away from C: since the software expects it to be there (like so many programs do).
When the software goes to read those files, it is redirected to G: to get the data. But Primocache is intercepting the reads/writes, so does it know about symlinks? Will it cache blocks it *thinks* are on the C: drive, or will it know and cache blocks from the SSD (G:) drive instead?
I'm asking primarily since I have a L2 Task to cache the C: drive, which uses a small partition on the SSD for L2. That's the same drive that the symbolic link points to. So Primocache goes to C: for data, is redirected to G: (the SSD), and might put the information into L2 - which is also on the SSD. That seems like a very inefficient roundabout way for the data to travel, since it ends up being copied to the same physical disk.
If Primocache is smart enough to know it's being redirected, then it wouldn't ever cache the data from the symbolic link folder into L2. I just don't know if that's true in this case.