It’s totally ok. If you put everything in /home/plexdata, I can take it from here.
We first make sure all the permissions in /home/plexdata are correct for user plex
sudo chown -R plex:plex /home/plexdata
Now we tell systemd where the data has been moved to by using this file (copy/paste this)
a. sudo mkdir /etc/systemd/system/plexmediaserver.service.d
b. Using the editor of your choice, as root, create file /etc/systemd/system/plexmediaserver.service.d/override.conf
c. Put the text from the block below into it and save
# Move data directory to /home/plexdata
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plexdata/Library/Application Support"
d. With the text above saved and in that file, tell the system it’s there
sudo systemctl daemon-reload
e. Rename the old Library directory so we can easily verify it’s no longer being used.
cd /var/lib/plexmediaserver
sudo mv Library Library-old
f. Start plex
sudo systemctl start plexmediaserver
If everything is correct, PMS will now come up and run normally with all the existing data.
We verify this by typing ls -la /var/lib/plexmediaserver and making certain no new Library directory has been created.
When verification is complete, remove the old copy of the metadata sudo rm -rf /var/lib/plexmediaserver/Library-old
well im pretty sure all that worked! i just didn’t delete Library-old, in case i dunno that the world ends
i just got 2 more questions.
in web browser http://127.0.0.1:8888/web or localhost:8888/web gave me an unable to connect error, but with :32400 it took me to the log in page server setup and asks me to give a name to the server and point to my media folder.
i’m confused, shouldn’t i see my old windows server unavailable and my ‘old windows’ libraries instead of making a new server?
i think i have one last thing to do before i can update my libraries (once i get to see them again) Plex doesnt see my media folders. i found this guide you wrote Linux Tips - #2 by ChuckPa
and i believe thats what i need to do for plex to be able to see my HDDs.
basically, (i think) i took my 3 internal HDD and made one. all my media is on /dev/md0
Create a more humanly readable AND easier to type directory name somewhere. How about what I recommend in the guide? I will use name md0 only because it’s the first raid volume. You can make it name name you want. Only /dev/md0 is required to be named that way.
sudo sh
mkdir /raid
mkdir /raid/md0
chmod -R 755 /raid
We do this because /run is reserved to the desktop’s file manager. Plex can’t get there (default linux security will block plex from seeing your files). We create an easily accessible & common place that makes sense. Since this is a raid volume, why not use /raid ?
As for the options:
defaults = all normal default options for xfs
auto = mount automatically at system start
bg = push the mount to the background (don’t make the whole system hang if there is a major problem (used in conjunction with nofail)
nofail = Tells Linux not to fail startup if the volume doesn’t start. If startup did fail, you would find yourself at a console-only “Rescue” prompt. It’s very ugly and cumbersome. This option tells it to skip mounting the raid volume if there’s a problem. You’ll spot something is wrong and can then address it.
Once mounted, you refer to /raid/md0 for all subsequent command and usage in PMS.