I’ve installed an SSD to house the Plex database, Metadata and Cache folders, transferred the data over and created symlinks to the new location, and it’s working.
My question is, should I also migrate the “Media/localhost” folder - that’s where all the bundles are stored - or should I have moved the entire “Library/” structure?
I know there’s a forum post on the moving of the whole thing, but I thought I could just move individual folders and symlink them, unless this is bad practice?
Just looking for some clarity from the gurus, thank you for all you do and your thoughts on this matter
Ack! I forgot to include the “Plug-in Support\Database” folder was also part of the migration, so it’s on the SSD as well. I’ll modify the original post
EDIT on second check, the database is actually in the original post
If you have moved the Cache folder, then it is likely the Transcode folder has also been moved (Cache\Transcode) and if this is on the SSD, you could actually wear out your SSD prematurely.
This has happened to quite a few people.
Unless you already know, the Cache\Transcode folder is written to very heavily with potentially thousands of little chunks of vids that are being transcoded, and it is this that could wear the SSD.
The best solution around this, would be to create a RAM Drive and then SymLink the Cache\Transcode folder to the RAM Drive.
Actually, I’ve just remembered why I did it with a SymLink… Because conversions don’t follow the Settings > Transcoder > Transcoder temporary directory setting… Well, at least it didn’t a few years back!
Setting PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR is the preferred method because it moves everything…
What you’re not aware of is that path-relative, symlinks exist in the Media and Metadata directory trees. If things get to carved up, symlinks won’t be valid.
One clarification, should I set the ENV variable inside my *nix box, or is there a place in Plex to put it (like the XML file, or will that get overwritten potentially)?
There is a redirect in place but that won’t last forever.
I decided long ago to make the transition because there are times when I still have to work with init-based systems. This way helps retain my last bits of sanity.
If you’ll forgive the funky QNAP directory naming structure, here’s a bit of a trick – Reading and writing in one shot with no intermediate file… (if you are brave)
[/share/vtmp] # cd /share/CA*/.qpkg/Ple*
[/share/CACHEDEV2_DATA/.qpkg/PlexMediaServer] #
[/share/CACHEDEV2_DATA/.qpkg/PlexMediaServer] #
[/share/CACHEDEV2_DATA/.qpkg/PlexMediaServer] # ls Library/
Plex Media Server/ tmp/
[/share/CACHEDEV2_DATA/.qpkg/PlexMediaServer] # mkdir /share/CACHEDEV2_DATA/chuck-test
[/share/CACHEDEV2_DATA/.qpkg/PlexMediaServer] # tar cf - ./Library/ | (cd /share/CACHEDEV2_DATA/chuck-test/ ; tar xf -)
[/share/CACHEDEV2_DATA/.qpkg/PlexMediaServer] #