Moving Plex to a new volume and the Plex share

First-time Plex user.

Synology DS415+ @ 6.2.3-25426 Update 3.

1> Manual installation of Plex 1.21.4.4079-1b7748a7b, specified existing volume2
2> Enjoyed Plex for 24 hours

Wanted to move Plex to new volume7. I like my apps on separate volumes. I made a mistake the first time around, choosing volume2.

3> Uninstalled Plex. Also btrfs subvolume delete Plex on volume2
4> Manual installation of Plex 1.21.4.4079-1b7748a7b, specified volume7

Package Center says Plex is on volume7, but the Plex folder and subfolders were created on volume2.

Seems like in certain circumstances the share will not be removed by uninstallation. That’s cool. 99.9% of the time you don’t want to touch the share. In my situation, though, I wanted a completely fresh installation, and it turns out that the share was the problem for me.

Removing the Plex share prior to the 3rd installation got it done for me. Everything’s on volume7 now.

Here’s what clued me in, finding a SynoShare dump after 2nd installation, when the files went to the wrong volume:

root@box:~# synoshare --get Plex
SYNOSHARE data dump:
         Name .......[Plex]
         Comment ....[Plex metadata storage]
         Path .......[/volume2/Plex]
         Deny list ..[]
         RW list ....[]
         RO list ....[]
         fType ......[2]
         fBrowseable [yes]
         FTPPrivilege[7]
         Status .....[0x1880]
         WinShare .....[yes]
         ACL ..........[yes]
         Skip smb perm.[yes]
         Permit .......[yes]
         RecycleBin....[no]
         RecycleBinAdminOnly....[no]
         HideUnreadable ........[no]
         Snapshot browsing .....[no]
         On Cold Storage Volume.....[no]
root@box:~#

Did you initially install Plex on /volume7 ?

I ask because the installer uses the variable given by Package Center
$SYNOPKG_PKGDEST_VOL. (this is the dropdown in Package Center where to install). I only use it if a new Plex share is being created otherwise I use the existing path.

If you are familiar with bash, here’s my code.

# Determine status of Plex share
synoshare --get Plex 2>&1 > /dev/null
if [ $? -eq 0 ]; then
  echo "Found existing Plex share"

  # find out where it is and save its location
  PLEX_LIBRARY_PATH="$(synoshare --get Plex | grep Path | awk -F\[ '{print $2}' | awk -F\] '{print $1}')"

  # Export library location to the rest of script & environment
  export PLEX_LIBRARY_PATH

  # Make certain the share description is updated
  synoshare --setdesc Plex "Plex metadata storage"

else
  # Check for interfering files on selected volume

  # Does a file exist?  If so, delete it.  It will stop Plex from installing
  if [ -f $SYNOPKG_PKGDEST_VOL/Plex ]; then
    echo "Found stray file.  Deleting"
    rm -f $SYNOPKG_PKGDEST_VOL/Plex
  fi

.
.
.
  # Establish PLEX_LIBRARY_PATH
  export PLEX_LIBRARY_PATH="$SYNOPKG_PKGDEST_VOL/Plex"

  # Create share and add basic permissions here
  echo "Creating Plex share."
  synoshare --add Plex "Plex metadata storage" $PLEX_LIBRARY_PATH "" "plex,admin" "" 1 7
  synoshare --setuser Plex RW = plex,admin

Hi there…
I have been fighting with a simular problem for a long time…
I have moved my data to another place/HD on my NAS and after that Plex won’t update the media in these folders… big problem…
Do you know where to find some easy understanding help, to find the places where I can change what’s needed?
rgds Henning / DK

Thank you @ChuckPa - my initial install was to /volume2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.