I installed latest PMS on my CentOS 7 server. Now need to know how can I change storage location of the Plex Media Server data files? They are filling up my drive very fast that I must change the directory. I have plenty of space on other drives to store these files - I just do not want them on my OS drive. Normally something like this would be in settings and I can not find it, nor does searching produce any answers. Storing all this data on the main OS drive just does not work for me.
#
# Customize Plex's config
[Service]
#Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plexdata/Library/Application Support"
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/www/html/fs1/data/plex/plexmediaserver/Library/Application Support"
#
# These values are only needed if you wish to change user & group
#User=chuck
#Group=strange
User=plex
Group=plex
#
# This is needed to change the default umask
UMask=0002 # this must be 4 digits of octal
when i installed plex first, as you know it was default location which is
You only need to list those things you want to change. Comments # are always helpful
Given it didn’t pick up your change, lets repeat the steps to activate
sudo systemctl daemon-reload
sudo systemctl status plexmediaserver
#
# Verify you see the override listed as **Loaded** status in the systemctl output
#
sudo systemctl start plexmediaserver
[root@localhost ~]# systemctl status plexmediaserver
â—Ź plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─override.conf
Active: active (running) since Wed 2019-02-27 14:24:42 EST; 13min ago
Process: 18201 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
Main PID: 18205 (Plex Media Serv)
CGroup: /system.slice/plexmediaserver.service
└─18205 /usr/lib/plexmediaserver/Plex Media Server
Feb 27 14:24:42 localhost.localdomain systemd[1]: Starting Plex Media Server for Linux...
Feb 27 14:24:42 localhost.localdomain systemd[1]: Started Plex Media Server for Linux.
[root@localhost ~]#
But still i can’t access the server when i go to ip:32400/web/index.html
All my folders and files permission is set to root. is that a problem? Last night it was set to plex:plex, but as it wasn’t working and last working permission was root:root, I set that back to root. now I cannot even access my portal. do you think it is wise to use other user than root?
Thanks
** I donno if I should have mentioned this but when I installed PMS very first time, it was under root.
Without knowing the exact state of your metadata and where everything is, I can’t give “copy/paste” instructions. It would require I make some time and see if we can work something out during my off hours. Might this be possible?
@ChuckPa I’m pretty good with CentOS 7, I think I’m just missing something stupid, but when I try to create a new override file in the location of the service file, it won’t let, please tell me what I’m missing, I’m pulling my hair out, lol