How do I move the Plex Data folder to SSD Drive?

Hello,

I am new to using a QNAP NAS, and I’ve just installed Plex Media Server.

Can someone tell me how to firstly locate the Plex Data folder, and then move that folder to the SSD drive?

I have a MAC OS and I have seen on here that you can use Terminal to access the Data folder, but beyond that I know know what to do.

Any help is much appreciated.

Thanks,
Leon

To move the PMS Library directory on QNAP, you have some keyboard (typing) to do.
I will write out the instructions presuming /share/CACHEDEV2_DATA/Plex is where we will move PMS to. Please edit appropriately

  1. Create the shared folder you want on the SSD. I recommend something without spaces. e.g. “Plex”
  2. Stop PMS
  3. open a SSH session.
cd /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer
tar cf - ./Library | (cd /share/CACHDEV2_DATA/Plex ; tar xf - )
mv Library Library.save
ln -s /share/CACHEDEV2_DATA/Plex/Library .

The steps above do the following

  1. get in the Plex directory
  2. Create a copy of Library on /share/CACHEDEV2_DATA/Plex/Library
  3. Rename the Library directory in this directory (get it out of the way and keep as a temporary backup )
  4. Link the new location to here where Plex expects it

When this is complete without errors, Start PMS
When you are happy with the results, you can delete Library.save with rm -rf /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library.save

Be advised, if you uninstall PMS, this will be deleted and you will need to be redone.

2 Likes

Followup note:

I do not know how your QNAP is setup.

Q11 of the QNAP FAQ will tell you how to find where PMS is actually stored. This is the directory you use in the cd command above (Step 1)

Hi ChuckPA,
Thanks for your support. Much appreciated.
Before I try this method can I make sure that this only moves the data folder. I want to keeps all my movies, tv shows on my normal HDD drive. The Library directory suggests that this is my entire media Library?
Thanks,
Leon

As you can see by the commands I’ve listed, only the Library in ~/.qpkg/PlexMediaServer is relocated. Nothing else is moved.
PMS’s executables remain in their default installation location. Your media is not touched. It would take a lot more commands to move that around :wink:

Hi Chuck,
Thanks for the help.
My PMS is stored on CACHEDEV1_DATA. However, I don’t know how to create a share on my SSD drive. Do you know how to do this, so i can actually follow your steps? I’ve attached a screenshot of my QNAP storage below:



I can’t seem to create a new volume i.e my SSD drive, and I think I need to do this so i can create a shared folder.

Thanks

First create a share on the SSD .

Now you have both the CACHEDEV path and the share (destination directory) to put your Library in.

There is an added bonus to doing this. From this point forward, you’ll be able to get your PMS logs directly by opening that share and drilling down to the Logs directly in File Station

The commands, for me, with PMS stopped and the Plex share created on DataVol3, would be

cd /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer
tar cf - ./Library | (cd /share/CACHEDEV3_DATA/Plex ; tar xf -)
mv Library Library.orig
ln -s /share/CACHDEV3_DATA/Plex/Library .

After verifying everything is as I like, Delete Library.orig to reclaim that space

Thanks.
Almost there. I get this when I go to create a share. I just have one disk volume, and don’t know how to create another disk volume for my SSD:


So, in theory, this would be my ‘DataVol2’.
I’ve gone into Storage Manager but don’t know how to do this.

When you go into Storage Manager, you want to create a new volume (single static) on the SSD physical device.

I done this, and then i got the following message:

Available disks 0/6. I’ve create a RAID5 on my 4 HDD drives. And switched on Cache acceleration on my SSD drives.
It won’t allow me to select the SSD device.

Oh, so you are out of available devices?

If you have both SSD as cache volumes, you can’t create data volumes on them concurrently. QTS doesn’t support us partitioning devices this way. It also doesn’t let us cache on the system volume (for the same partitioning reasons)

Edit: IIRC, you can cache multiple volumes on a single SSD if you create it that way

Yes, that’s correct.

Ok, so best to switch cache acceleration off if I want to create a volume on SSD?

Yes, turn off caching of your main volume (for now).
Add that SSD as a new volume and place the share on it.
Later, when you have the extra time/funds, drop a 250/500 GB SSD in another slot

Hi
I’m a bit stuck.
Do you know how I add SS as a new volume?
Storage Manager is not allowing me to create a new volume on the SSD.
Thanks

Please read above again.

If the SSD is part of a CACHE, it’s already allocated. You must turn off caching first.
After it is free (unallocated), you may create a volume on it

Many thanks. I forgot that last step.

When I create a new share on the new volume, I’m assuming I should name this something like ‘Plex2’ for now, and then rename it to ‘Plex’ after I’ve copied from original location? It turns red as I write ‘Plex’.

Make the first PMS share manually, point it to wherever PMS is currently installed (enter path manually) and make a ZIP backup of the Library you find there.

I did the following (with PMS stopped).

  1. Made a backup (ZIP) of the existing Library through FileStation (For me, the path is /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library)
  2. Made a directory on the new volume
  3. Edit the Plex share definition and make it point to the new location on your SSD
  4. Unzipped the Library there (my new path is /share/CACHDEV4_DATA/PlexMediaServer/Library
  5. Verified I didn’t get /share/CACHEDEV4_DATA/PlexMediaServer/Library/Library … This would cause it to fail .
  6. Deleted the original library (rm -rf /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library)
  7. Created a symbolic link (ln -s /share/CACHEDEV4_DATA/PlexMediaServer/Library /share/CACHEDEV1_DATA/PlexMediaServer/Library)
  8. Start PMS

Ok, I’ve stopped PMS.
However, how do I make a backup (ZIP) within FileStation? Can’t see that file path. I can see the Plex folder.
Forgive me if I’m being slow. I’m not used to this.

Thanks

Show me how you have the Plex share defined? It should be pointing into your existing PMS installation (wherever all apps are stored by default)