I have just installed OMV 4.x. My previous installation was 2.x where I had plex running for many years.
I have backed up the Library folder and as soon as I've installed Plex onto the new system I've specified the old Library location to be on a data partition rather than system. So I was hoping it would pick up the existing DB.
Despite seen this set in the OMV GUI and in the OMV config file:
Code
<plexmediaserver>
<db-folder>/srv/dev-disk-by-label-DATA/plexmediaserver</db-folder>
</plexmediaserver>
I got a warning via email from Plex while it was scanning the media. After a brief investigation I can see that the Library is instead created in the default Plex location:
So I've run a search:
Code
find / -name *.service | grep plex
/etc/systemd/system/multi-user.target.wants/plexmediaserver.service
/lib/systemd/system/plexmediaserver.service
The first one is a link to the second so you can edit either.
Basically once open modify the line
Code
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/raid/plexmediaserver/Library/Application Support"
With the actual Library location.
Restart Plex
HTH