Ok thanks, I'll try those Samba options tomorrow.

I did follow your approach for NFS. It works except because the underlying
document is stored without an extension, the client's (OSX) don't correctly
work out how they should be opened (OSX doesn't seem to care the symlink
uses .pdf and instead looks through to the linked file). For example,
clicking on an indexed PDF symlink, OSX attempts to open this using the
Terminal.  Even opening the underlying PDF directly doesn't work (using
Preview). Manually adding a .PDF, it opens fine.  A bug with Preview
perhaps.

On 9 Nov 2012, at 21:51, Roberto Rosario <[email protected]>
wrote:

Hi Evan,

For Samba you need to disable unix extensions and enable wide links so that
clients follow the symlinks to the real document entry in the
document_storage folder.  This is the FAQ entry for this:
http://mayan.readthedocs.org/en/development/faq/index.html#document-sharing

NFS handles symlinks differently, they are resolved at the client, not on
the server, relative to the client's filesystem.  Try mounting the
document_storage folder too on the clients along side the mirrored index in
a local hierarchy so that the relative path of the document symlinks
resolves to an entry on the client document_storage mount point.

Ref:
http://docstore.mik.ua/orelly/networking_2ndEd/nfs/ch06_04.htm
http://uw714doc.sco.com/en/SDK_sysprog/_Using_Symbolic_Links_with_NFS.html

--Roberto

On Thursday, November 8, 2012 7:28:47 AM UTC-4, Evan Davey wrote:
>
> Hi,
>
> I have successfully turned on index mirroring and have then shared the
> mirror with NFS and Samba.  However, as the mirror is just symlinks to the
> underlying files, I can't access them on my clients.  I have tried also
> sharing the document store and then using a local symlink on
> /usr/share/mayan/mayan/document_storage to this mounted share.  This
> partially works but since the underlying files do not have an extension, my
> clients (OSX) won't open them as PDFs.  Also, this is not a particularly
> elegant solution as each client will need this symbolic link.
>
> What is the correct procedure for mirroring an index and the underlying
> document store?  (this detail appears to be missing from the documentation)
>
> Regards
> Evan
>
>
>  --

-- 



Reply via email to