About 7 months ago I bought a DS420+ NAS and 4 WD 8 TB RED Plus drives. Prior to the synology, I had a Freenas machine with 5 2TB WD Red's and never once had an issue with drive failures and it ran 24/7 for 7 years. Immediately on the Synology, I had one drive with 10,000 + bad sectors so I RMA'd it with Newegg. Move your iTunes library to another computer. If you get a new computer, you can transfer your iTunes library by connecting computers or by using iPod or a portable drive. See the Apple Support article Back up and restore your iTunes library on your PC. It should be noted that a NAS is a great device to back your music library up to, and also to stream audio out to devices from. However, I would never, ever, ever, ever, ever be willing to put up with the misery of actually managing an iTunes library on my NAS.
It's been over 7 years that I've been running my Plex server off my trusty old 2011 Mac Mini. With it's SSD starting to fail, the time has come to retire it and move my Plex server to my new Synology DS918+, with an upgraded 8GB of RAM. With nearly a decade worth of watch history and friends who are using the server on the regular, it was key to not loose any of the history and libraries.
Given this would be the first time moving Plex from Mac to Linux, instead of Mac to Mac, the migration would require a bit more work. Luckily, I came across a great post by Mo_Gas on the Plex forums, making this process quite painless.
First, we need to get Plex up and running on your Synology NAS.
As I have a DS918+, thus an Intel based NAS, I wanted to make sure that I can take full advantage of hardware transcoding, so I downloaded the Intel 64bit PlexPass version from the Plex website.
I then proceeded to install this by going to the Package Center app and selecting Manual Install and selecting the file I just downloaded.
With the installation of Plex Media Server completed, go through the setup wizard , but don't add any folders to any library. It is also key to make sure to disable empty trash and automatic library updates in the server's Library settings.
With the new server initiated, it's time to stop it. Simply go to the Package Center, look for the Plex Media Server app and press Stop.
Your Synology NAS is now ready for you to import your existing Plex data.
Now that your Synology is ready, it's time to get your existing Plex data off Mac.
As a first step, go to your existing Plex Server's configuration, under Library, once again disable Empty trash automatically after every scan
and Scan my library automatically
as well as Scan my library periodically
. Save these changes.
Simply stop your Plex Media Server on your Mac.
If you are storing your Plex content locally on your Mac, this is the moment where you may want to transfer it to your NAS. Keep in mind, that your content should be accessible by your Synology at the end of this.
Time to pack it up! In a terminal window, package up your Plex Server data, excluding the Plug-ins folder, by running the following commands:
You can change the ./backup.tar.gz
part of the command above to store your backup elsewhere besides the folder itself. I actually ended up saving it to a mounted drive on the NAS, allowing me to access it directly from the NAS.
In my case, the command above took several hours to complete due to the large amount of small files.
If you store it locally as per the command above, copy the backup.tar.gz
file over to your NAS once the command completes.
Now we need to make sure we get the Plex Media Server identifiers, so that we can have your new Synology Plex server maintain the same identity and shares.
Start with converting your Plex configuration file into a readable format by executing the following command in Terminal: plutil -convert xml1 com.plexapp.plexmediaserver.plist
Now open the com.plexapp.plexmediaserver.plist
file in a text editor and look for MachineIdentifier
and ProcessedMachineIdentifier
entries and copy their value to temporary document. We'll get back to these later.
We've finally gotten to the step where we are restoring Plex onto your Synology NAS.
The easiest here is to do the following steps through SSH, however it's also possible to do this via the Synology Web Interface.
My Plex was installed on volume1
and I had copied the backup.tar.gz to my user's home directory, however you may have to slightly adapt the file paths in the commands below. Run them one at a time:
This will now start unpacking your data into your Plex Server directory. Once that's done, run the following command:
This will make sure your Plex Server has the correct access to these files.
Now that your data has been restored, you'll need to restore the identifiers.
Open Preferences.xml
under [PATH_TO]/Plex/Library/Application Support/Plex Media Server/
. Look for the MachineIdentifier
and ProcessedMachineIdentifier
in that file and change values to the values you have copied from your Mac into your temporary document before.
Now that all your data has been restored and configured, you can fire up Plex. In Package Center, start the Plex Media Server app again.
Now you should be able to go to your Plex dashboard and find your Synology NAS with all the same data as your old Mac.
As your file paths for your library's data have changed, you will now have to go into every Library's configuration and add the new filepaths. Do NOT remove the old ones just yet.
Once you've done that for all your libraries, manually refresh all your Libraries. Double check if all your files are showing up in your libraries and are playing.
Now that you have mapped all your folders again and refreshed your library, you can remove those old folder locations.
Now refresh your libraries once more.
Once that is complete, give your library another check. You may see some items with a red trash can. I'd recommend checking those items. In my case these were some files that had 2 paths originally that now only had 1, but always worth double checking.
Now that all data has been restored, you can go back to the Library
server configuration and re-enable automatic library updates and the Empty Trash functionality if you want to use those features.
The following step only applies to the Intel based Synology devices and PlexPass users. If that's you, I would highly recommend that you enable hardware accelerated transcoding.
For this, head to the Transcoder section in your server settings, hit Show Advanced
at the top and select Use hardware acceleration when available
.
This will enable hardware transcoding, which will significantly decrease your CPU load for video transcoding.
That is all! By now you have hopefully successfully migrated your Plex Media Server from your Mac OSX machine to your Synology NAS.
Personally, I've been very happy over the last few days with my DS918+, not really experiencing any issues when it comes to transcoding 1080p content.