Posted by burt.lo on April 12, 2011 at 10:31pm
So, i'm trying a hack, but need some input.
Rather than serve all my file attachments (all mp3s) from my primary host, I want to "archive" some to a slower machine, thus saving space for more current content on my primary host.
I just tried changing the files.filepath to a full URL value pointing to my archive host, but displaying the node shows the new path appended to my default public files path.
Any suggestions?

Comments
You can see the current
You can see the current result here: http://higherviews.info/vmr/content/ebay-radio-show-397-segment-9-powers...
That results in a path for the file attachment of: http://higherviews.info/vmr/sites/default/files/http://archive.voicemark...
Project Management: http://www.sagetree.net
Coaching Services: http://burtlo.info
I'd use the OS facilities and
I'd use the OS facilities and cross mount directories. Export from the slow host, mount on the fast host somewhere into the sites/default/files hierarchy.
In /etc/exports of the slow server add something like: (note that IP address restricts hosts which can mount)
/opt 172.18.64.0/255.255.248.0(rw,async)
Run the command "exportfs -a" as root.
In /etc/fstab of the main server add something like:
172.16.117.19:/opt /var/www/html/sites/default/files/slowfiles nfs rw,bg,hard,nosuid,intr 0 0
Run the command "mount -a" as root and verify you can read and write files as the httpd/www/apache user account, whichever applies.
HTH
--
Christoph Weber